Sign up now! · Forgot password?
RSS/Atom feed identi.ca Twitter

Free software for Batch file conversion

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

3 of 4 messages available
Toggle history

Please log in to manage your subscriptions.

606228321.1609649.152726025... 25 May 17:00
  Free software for Batch file conversion baskaran rajaram via gimp-user-list 25 May 14:57
   Free software for Batch file conversion Steve Kinney 27 May 18:24
    Free software for Batch file conversion Steve Kinney 27 May 18:30
baskaran rajaram via gimp-user-list
2018-05-25 14:57:35 UTC (5 months ago)

Free software for Batch file conversion

Dear,
I want to convert batch of more than 500 . jpg,. png files into a single. pdf file. How shall I do using GIMP installation., Shall you pls explain in steps.

Will the. Pdf be OCR enabled, password protected for character searching. Hope there won't be necessary for uploading raw file for convertion.

If not what other free software will do for my task.

Rds, Baskar

Steve Kinney
2018-05-27 18:24:53 UTC (5 months ago)

Free software for Batch file conversion

On 05/25/2018 10:57 AM, baskaran rajaram via gimp-user-list wrote:

Dear,
I want to convert batch of more than 500 . jpg,. png files into a single. pdf file. How shall I do using GIMP installation., Shall you pls explain in steps.

Will the. Pdf be OCR enabled, password protected for character searching. Hope there won't be necessary for uploading raw file for convertion.

If not what other free software will do for my task.

On any (? probably so) operating system you have, Scribus will do the job. Open a new document, select a template with your desired page size and etc., and start adding image frames, importing images to them, and (probably) adjusting the frame to image size (right click for options). Save the file (for re-use, adjustments, etc. as needed, then export it as PDF with your desired options per the menu that comes up.

If you need to add page numbers, captions, or other text Scribus will probably be the way to go.

https://wiki.scribus.net/canvas/Download

A Scribus tutorial:

https://wiki.scribus.net/canvas/Get_Started_With_Scribus:4

Or if you are using an operating system that supports it, and your images are whole pages, imagemagick might do the trick way more simply and quickly. On Linux I have used it to convert scanned pages to PDF. The images will appear as pages in alphabetical order, so add 01, 02, etc to the front of their names if needed. Then...

1. Examine the images, determine a good target width for all of them.

2. Edit images if/as required.

3. If necessary equalize image widths via: mogrify -resize [pixels] *.jpg

*NOTE* Assure that all images have the same DPI value, use "mogrify -density [DPI] *.jpg" (or png, etc.) if required.

4. To convert all images in a directory to one pdf file, do:

convert *.jpg [output].pdf

With a large number of pages, the process tends to hang. In that case, this script has done the trick for me. Copy and save the text below as a plain text file, put it in your home directory's /bin folder and set it as executable (chmod +x [script-name.scr]). Then put the images in one directory (anywhere), open a terminal there and type the name of your script to run it against your images:

#!/bin/sh # convert large number of .jpg files to one PDF file. Equalize widths of .jpg files first via: mogrify -resize [pixels] *.jpg

for f in *.jpg; do
convert "$f" "${f%.jpg}.pdf"
done
pdftk *.pdf cat output combined.pdf/

Steve Kinney
2018-05-27 18:30:35 UTC (5 months ago)

Free software for Batch file conversion

On 05/27/2018 02:24 PM, Steve Kinney wrote:

[...]

Or if you are using an operating system that supports it, and your images are whole pages, imagemagick might do the trick way more simply and quickly. On Linux I have used it to convert scanned pages to PDF. The images will appear as pages in alphabetical order, so add 01, 02, etc to the front of their names if needed. Then...

1. Examine the images, determine a good target width for all of them.

2. Edit images if/as required.

3. If necessary equalize image widths via: mogrify -resize [pixels] *.jpg

*NOTE* Assure that all images have the same DPI value, use "mogrify -density [DPI] *.jpg" (or png, etc.) if required.

4. To convert all images in a directory to one pdf file, do:

convert *.jpg [output].pdf

With a large number of pages, the process tends to hang. In that case, this script has done the trick for me. Copy and save the text below as a plain text file, put it in your home directory's /bin folder and set it as executable (chmod +x [script-name.scr]). Then put the images in one directory (anywhere), open a terminal there and type the name of your script to run it against your images:

#!/bin/sh # convert large number of .jpg files to one PDF file. Equalize widths of .jpg files first via: mogrify -resize [pixels] *.jpg

for f in *.jpg; do
convert "$f" "${f%.jpg}.pdf"
done
pdftk *.pdf cat output combined.pdf/

I forgot: Requires imagemagic (of course) and, if using the script, also pdftk ("PDF Toolkit). You might need to install them, but if so the are in the repos so that should present no problem - use your package manager, or appropriate terminal commands. For instance, on Debian family systems (Ubuntu, Mind) do:

sudo apt-get install imagemagick pdftk

:o)