Multiply error? Or positioning error? or layer error?
Posted: 2013-03-07T18:13:12-07:00
I'm not sure what is going wrong.
So the command that builds foo1 works, and the command that builds foo2 works, and the command that builds foo3 doesn't. "works" in the sense that I get the results I expect. So this is an extracted test, I'm actually trying to number pages, but for testing, I am using a file of page numbers, and overlaying page 1 and page 2 (in the real code, I use a file of data, and a file of page numbers).
The file of page numbers, for reference, is at http://nevcal.com/temporary/allnumbers.tif. The Batch file above is also at http://nevcal.com/temporary/foo.bat, if that is helpful.
So I start with a white page, and overlay one page number. That works (foo1). I start with a white page, and overlay a different page number, with a slightly variant command. That works (foo2). When I put them together, the second page number doesn't show up. I don't if it is an effect of positioning, if multiply isn't working two times in a row, or if I'm stacking layers badly.
Code: Select all
Convert xc:white -resize 5250x3886! ( allnumbers.tif[0] -gravity center -background white -extent 2375x3885 +repage -repage 5250x3886+0+0 ) -compose multiply -flatten -compress group4 foo1.tif
foo1.tif
convert xc:white -resize 5250x3886! ( allnumbers.tif[1] -crop 2375x3885+125+125 +repage -repage 5250x3886+0+0 ) -compose multiply -flatten -compress group4 foo2.tif
foo2.tif
convert xc:white -resize 5250x3886! ( allnumbers.tif[0] -gravity center -background white -extent 2375x3885 +repage -repage 5250x3886+0+0 ) -compose multiply -flatten ( allnumbers.tif[1] -crop 2375x3885+125+125 +repage -repage 5250x3886+0+0 ) -compose multiply -flatten -compress group4 foo3.tif
foo3.tif
The file of page numbers, for reference, is at http://nevcal.com/temporary/allnumbers.tif. The Batch file above is also at http://nevcal.com/temporary/foo.bat, if that is helpful.
So I start with a white page, and overlay one page number. That works (foo1). I start with a white page, and overlay a different page number, with a slightly variant command. That works (foo2). When I put them together, the second page number doesn't show up. I don't if it is an effect of positioning, if multiply isn't working two times in a row, or if I'm stacking layers badly.