Convert Multiple Images Into One Single PDF
A lot of manga series found online are in image format, like JPG or PNG and it's one image for one page. Mac's Preview app can read them if needed, but that's not very convenient. It would be nice to convert them into one single PDF file so that it can be read in any device and easily shared with others. This can be accomplished with a command-line tool ImageMagick on Mac.
Take screenshot
On Mac, there are a few ways to take a screenshot:
Command + Shift + 3
will take a snapshot in PNG for the entire window displayed on the mac, saving the image to ~/Desktop.
Command + Shift + 4
will turn the cursor into an "aim" sign. Pressing Space Bar
will highlight the entire area under the current browser window and the aim
sign will turn into a camera
sign. Pressing the camera sign will take the snapshot of the highlighted area within the browser window, saving the image to ~/Desktop
.
Install ImageMagick
ImageMagick is a powerful image processing tool for command-line.
On Mac, install ImageMagick with brew.
brew install imagemagick
Combine images into PDF
First rename the screenshot images into something with an easily identifiable standard name.
-rw-r--r--@ 1 zire staff 3090 Jun 2 11:30 demo_1.png
-rw-r--r--@ 1 zire staff 426672 Jun 2 11:30 demo_2.png
-rw-r--r--@ 1 zire staff 798611 Jun 2 11:30 demo_3.png
Then move them into a separate folder. cd into this folder. Then convert them into a single PDF file.
convert demo*.png demo.pdf
Here you go. Hello, demo.pdf!
-rw-r--r-- 1 zire staff 986119 Jun 2 11:33 demo.pdf
-rw-r--r--@ 1 zire staff 3090 Jun 2 11:30 demo_1.png
-rw-r--r--@ 1 zire staff 426672 Jun 2 11:30 demo_2.png
-rw-r--r--@ 1 zire staff 798611 Jun 2 11:30 demo_3.png
References
Like it? A donation or tip would go a long way.
14DYUJw7SYszhDtn3UHhRwV9WpmGWeFAve
0xCfB04B53C05488Ac0aC4F47C9550e8Ca1eaA476e
d80bd36baca1a0166e812c0f669ffaa222a7c6b6f2a8e3f5c690bafe251aaf4b