Page 1 of 1
page in parenthesis goes global!
Posted: 2009-05-28T23:46:29-07:00
by anthony
-page goes global with parenthesis...
This works properly, positing the rose on the logo:
Code: Select all
convert granite: -page +20+50 rose: -flatten show:
But this pages BOTH the rose: and the logo: images, when 'page' should only be applied to the rose:
Even more so as parenthesis was used!
Code: Select all
convert granite: \( -page +20+50 rose: \) -flatten show:
Something is definitely not right!
Re: page in parenthesis goes global!
Posted: 2009-05-29T06:06:51-07:00
by magick
We can reproduce the problem and have a fix in the Subversion trunk. Since the -page behavior has changed you should check it against your web site to see if any of your existing commands depended upon the previous behavior.
Re: page in parenthesis goes global!
Posted: 2009-05-31T20:27:11-07:00
by anthony
magick wrote:We can reproduce the problem and have a fix in the Subversion trunk. Since the -page behavior has changed you should check it against your web site to see if any of your existing commands depended upon the previous behavior.
Now setting -page for an input images fails.
Code: Select all
convert granite: -page +5+10 balloon.gif -page +35+30 medical.gif -flatten show:
However strangely it works fine for overlaying built-ins
Code: Select all
convert granite: -page +5+10 rose: -page +35+30 rose: -flatten show:
Re: page in parenthesis goes global!
Posted: 2009-06-01T06:16:32-07:00
by magick
Try this (with the latest subversion):
- convert -respect-parenthesis granite: \( -page +20+50 rose: \) -flatten show:
It seems that -respect-parenthesis should be the default setting meaning anything within the parenthesis by default should be local to forgotten once the parens end.
Re: page in parenthesis goes global!
Posted: 2009-06-01T17:43:22-07:00
by anthony
-page however should only be used to assign new images (read or specifically created)
The parenthesis should not matter in this case!
In any case -respect-parenthesis is about what settings are in place AFTER the parenthesis has finished, not before. As such again it should not matter what -page setting being done within parenthesis!
Re: page in parenthesis goes global!
Posted: 2009-06-01T18:43:57-07:00
by magick
Grab the latest from SVN. It appears to fix the problem.
Re: page in parenthesis goes global!
Posted: 2009-06-01T20:32:28-07:00
by anthony
Yes it is now working correctly. passing all IM examples, including the previous examples it was originally failing with.