Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Guillotine Script for all layers
#2
I think for something like that I would use the command line application ImageMagick http://www.imagemagick.org

Starting with the PDFs in a 'clean' project folder. Start your terminal there. I am just using 2 PDF as an example.

1. Convert the PDfs to pngs - the 300 is for 300 ppi %03d is the file name 000.png etc
Code:
magick convert -density 300 *.pdf %03d.png

screenshot: https://i.imgur.com/8hWcTQ1.jpg

2. Check the size of the png image for dividing into 3x3
Code:
magick identify 000.png

screenshot: https://i.imgur.com/nPfecpR.jpg

3. Dividing those sizes by (900x1200) 3 to get a command to get individual parts (300x400) as jpeg images
Code:
magick convert *.png -crop 300x400 tile-%04d.jpg

screenshot: https://i.imgur.com/jiGgcfd.jpg
Reply


Messages In This Thread
Guillotine Script for all layers - by mwaxman1 - 01-22-2018, 05:46 PM
RE: Guillotine Script for all layers - by rich2005 - 01-22-2018, 07:33 PM
RE: Guillotine Script for all layers - by Ofnuts - 01-22-2018, 10:17 PM

Forum Jump: