Thursday, 7 November 2019

Interact with browser JavaScript via command line or local script?

We offer browser-page JavaScript similar to imagemagick that helps people convert images to different sizes and formats. However, it requires webpage interaction.

Is it possible to let people automate this interaction -- without sending images to our server (thus increasing bandwidth cost and server load) and without requiring users to download a headless browser library like Puppeteer?

For instance, is the following flow possible:

  1. Open Chrome via the command line (or local script) to a specific web page.
  2. Upload an image to that web page.
  3. Invoke a script on the web page.
  4. Receive the script results and allow for local manipulation.

Launching Chrome is possible, but it's unclear if you can interact with a specific browser window after launching it.



from Interact with browser JavaScript via command line or local script?

No comments:

Post a Comment