On 04/04/2017 11:54 AM, Steve Kinney wrote:
> You may also find this useful, as you are working with a Linux OS:
>
> https://www.imagemagick.org/Usage/crop/
>
> Imagemagick is a very versatile tool for doing repetitive operations on
> images. In your use case, it would be possible to run the program
> twice, to save cropped copies of the right half of every image, then
> save copies of the left half of every image.
>
> Determining the exact commands to use takes a little digging in the
> documentation, but that's way easier than learning Scheme (or so I
> imagine, not having learned Scheme myself).
>
> If your scans don't need tweaking, and your target output is a PDF
> document, Imagemagick covers that in one operation:
>
> http://www.binarytides.com/convert-pdf-image-imagemagick-commandline/
Oops, that's how to do the opposite thing: Convert PDF to image files
with various tweaks. Here's something more like what I intended:
convert *.jpg [output].pdf
Combining a large number of big images into one PDF file takes a lot of
resources and may even fail if your system is not very powerful. For
those cases, this little script will do the job:
for f in *.jpg;
do
convert "$f" "${f%.jpg}.pdf"
done
pdftk *.pdf cat output combined.pdf/
(Needs the pdftk "PDF toolkit", available in all the major Linux repos.)
:o)
_______________________________________________
gimp-user-list mailing list
List address: [email protected]
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives: https://mail.gnome.org/archives/gimp-user-list