How to use JavaScript to extract individual panels from comic book pages
- April 29, 2020
- 1 reply
- 2414 views
Hello,
My name is Freddy Jensen. I am a new user to Photoshop.
I have some jpeg images from some comic books. See
attached file. I would like to extract each panel and save
them as individual jpeg files. I can do it manually by
using the Windows Paint3D cropping tool, but it is
tedious and manual.
I was thinking, there must be a way to automate it by
driving Photoshop with a JavaScript so that you could
launch the script from the command line with the
comic book file as input, and Photoshop would find
and save each panel as individual jpeg files.
As you can see from the comic book image there is
only white space outside each panel and each panel
has a fairly thick black border so it shouldn't be that
difficult to find each panel in the image.
I am not asking for a complete solution, but if
someone could give me a pointer on how to get
started, that would be extremely helpful.
Thank You
Freddy Jensen
