Great, that got me going a bit! Rotation: done.
mogrify.exe -rotate -90 "___filepath___"
Split in halfs: problems. This gives me one of the two pages on each image. But crops away the other.
mogrify.exe -rotate -90 -crop 100%x50% "___filepath___"
But I can't yet grasp how to target the right half of the image via the geometry option
http://imagemagick.o...cessing.php#geometryWhen I've sorted the blanks I think this strategy would work (done in steps via AHK):
1. make two copies of the TIFF
2. on copy1 do -rotate -90 -crop 100%x50%
3. on copy2 do __________ [crop that leaves the right hand half of the image]
4. _______ thus combining them like this: copy1subimage1, copy2subimage1, copy1subimage2, ... (or extract them and name the output in that order)
5. make pdf
edit:on second thought, rotate upside down, chop , rotate back should do it.
Tried to put it together in AHK but it is not running. Some error in the AHK code I think. Time to sleep, I'll try again tomorrow. Anyone else spotting errors?
FileCopy, %1%, 1.tiff
FileCopy, %1%, 2.tiff
mogpath = C:\test\ImageMagick-6.5.0-0\mogrify.exe
RunWait, %comspec% /c ""%mogpath%" -rotate -90 -chop 50x0`%
"%A_Scriptdir%\1.tif""
RunWait, %comspec% /c ""%mogpath%" -rotate 90 "%A_Scriptdir%\2.tif""
RunWait, %comspec% /c ""%mogpath%" -chop 50x0`%
"%A_Scriptdir%\2.tif""
RunWait, %comspec% /c ""%mogpath%" -rotate 180 "%A_Scriptdir%\2.tif""