Imagemagick script for printing proxies

Hello,
I would like to share some of my findings
Feel free to comment, improve, post your own tips !
Aim: printing numerous proxies from HQ pictures
Methods:
- transformation of the HQ pictures so that their print size matches the size of a real mtg card,
- creation of N "contact-sheet"-like pages (A4 format) with 9 cards on each,
and (optional),
- creation of a multi-pages PDF file ready to be carried on a USB drive to your favorite 'print-shop'
Tools:
You may use two softwares. Either Imagemagick (natively installed on my Ubuntu distrib) or Graphicsmagick for Windows.
Command-lines:
1)convert -filter Lanczos -resize 744x1038 *.jpg resized_picture
2)montage -density 300 -tile 3x3 -geometry +2+2 *.jpeg montage.jpg
3)convert montag*.jpg montage.pdf
Explanations:
The convert instruction is used to change the number of pixels of the original file to a number of pixels that will produce a picture of the size of a conventional mtg card when printed at the 300 DPI resolution. A mtg cards measures 2.48x3.46 inches. At 300 DPI it gives 2.48x300=744 pixels. If the original number of pixels of the picture is less than 744, it means that the program will enlarge the picture. According to the Imagemagick's manual, the filter 'Lanczos' is a good comprise (time/result) for this transformation (see filters in IM).
The montage instruction is used to create a contact sheet of card pictures arranged in 3 rows and 3 columns (option tile), separated by 2 pixels (option geometry), at a resolution of 300 DPI (option density). For each pool of 9 cards (3 by 3 cards) you will obtain a file named 'montage-X.jpg'. X increases from 0 to a multiple of 9 depending of the total number of card pictures you have in the directory.
The last line make the program create one PDF file gathering all the contact sheets created before.
Weblinks for the softwares:
Imagemagick: http://www.imagemagick.org
Graphicsmagick: http://www.graphicsmagick.org/
I would like to share some of my findings
Feel free to comment, improve, post your own tips !
Aim: printing numerous proxies from HQ pictures
Methods:
- transformation of the HQ pictures so that their print size matches the size of a real mtg card,
- creation of N "contact-sheet"-like pages (A4 format) with 9 cards on each,
and (optional),
- creation of a multi-pages PDF file ready to be carried on a USB drive to your favorite 'print-shop'
Tools:
You may use two softwares. Either Imagemagick (natively installed on my Ubuntu distrib) or Graphicsmagick for Windows.
Command-lines:
1)convert -filter Lanczos -resize 744x1038 *.jpg resized_picture
2)montage -density 300 -tile 3x3 -geometry +2+2 *.jpeg montage.jpg
3)convert montag*.jpg montage.pdf
Explanations:
The convert instruction is used to change the number of pixels of the original file to a number of pixels that will produce a picture of the size of a conventional mtg card when printed at the 300 DPI resolution. A mtg cards measures 2.48x3.46 inches. At 300 DPI it gives 2.48x300=744 pixels. If the original number of pixels of the picture is less than 744, it means that the program will enlarge the picture. According to the Imagemagick's manual, the filter 'Lanczos' is a good comprise (time/result) for this transformation (see filters in IM).
The montage instruction is used to create a contact sheet of card pictures arranged in 3 rows and 3 columns (option tile), separated by 2 pixels (option geometry), at a resolution of 300 DPI (option density). For each pool of 9 cards (3 by 3 cards) you will obtain a file named 'montage-X.jpg'. X increases from 0 to a multiple of 9 depending of the total number of card pictures you have in the directory.
The last line make the program create one PDF file gathering all the contact sheets created before.
Weblinks for the softwares:
Imagemagick: http://www.imagemagick.org
Graphicsmagick: http://www.graphicsmagick.org/