Modifying of postscript layers separately after input
Posted: 2012-03-30T12:44:35-07:00
I'm stumped (after many successful years of using IM!)
(infile.ps contains one or two separate layers)
correctly produces> outfile-0.jpg and outfile-1.jpg
The problem is that I want to modify the two layers/images differently before I output them.
This is a pseudo example where "settingX" is the setting I don't know! that sets the currently active image/layer)
What should "settingX" be?
ps:
The following command kinda works, but is 2x slower in performance and duplicates layer 0 as false layer 1 if layer 1 doesn't exist in the infile.ps. My guess is because it calls GhostScript two separate times:
pps: I can get this to work with a script that outputs the multiple jpgs and then reads them back in separately and resaves them again. This is very slow since it's disk intensive and this is a live web-app that I'm working on. (in theory: 2 seconds vs 10 seconds)
Version: ImageMagick 6.6.7-9 2011-02-21 Q16
Windows XP
(infile.ps contains one or two separate layers)
Code: Select all
convert infile.ps outfile.jpg
The problem is that I want to modify the two layers/images differently before I output them.
This is a pseudo example where "settingX" is the setting I don't know! that sets the currently active image/layer)
Code: Select all
convert infile.ps (-settingX 0 -rotate 90) (-settingX 1 -rotate 270) outfile.jpg
ps:
The following command kinda works, but is 2x slower in performance and duplicates layer 0 as false layer 1 if layer 1 doesn't exist in the infile.ps. My guess is because it calls GhostScript two separate times:
Code: Select all
convert ( infile.ps[0] -rotate 90 ) tag.ps[1] outfile.jpg
Version: ImageMagick 6.6.7-9 2011-02-21 Q16
Windows XP