DonationCoder.com Software > Post New Requests Here
GIMP script to batch split + rotate TIFF images
Ehtyar:
Perhaps if you supplied a sample image we'd be more able to help you with actual command lines.
Ehtyar.
Nod5:
I'm attaching a mockup file that roughly illustrates the format of the input (I used imagemagick to join two tiffs together... so I'm slowly learning something :D)
ewemoa:
Don't know if the following is of any help, but after looking at:
http://www.imagemagick.org/Usage/crop/#crop_percent
I tried the following (with success locally) to get at the right-half of an image:
convert inputimage.extension -gravity east -crop 50%x100% outputimage.extension
--- End quote ---
FWIW, I noticed a "Offsets in geometry" section in:
http://imagemagick.org/script/command-line-processing.php#geometry
and a bit on -gravity at:
http://imagemagick.org/script/command-line-options.php#gravity
The following page had some pointers to groups of examples:
http://www.imagemagick.org/Usage/
Nod5:
TIFFRotateSplitMakePDF v090314, http://nod5.dcmembers.com/tiffrotatesplitmakepdf.html
by Nod5, with help from ewemoa
input: multiimage file.tif with two scanned pages per image (= a bookspread, tilted 90 degrees)
what the script does: rotate 90 degrees, split each image in two (L/R page), output file.pdf with all split images in page order
tiffrotatesplitmakepdf.zip contains .exe , .ahk (source) and md5 hashes. made in Autohotkey. requires: http://www.imagemagick.org/
Thank you ewemoa! :Thmbsup:
ewemoa:
Congratulations! Glad that it's working for you :)
(Thanks to Ehtyar for bringing up ImageMagick -- it's been years since I've used it -- didn't know there was a Windows port!)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version