I finally upgraded to the latest version of IM, I'm now working through all the changes in command structure..
in im 6.3.8 to overlay and image with a mask, I used this:
convert overlay.gif mask.gif +matte -compose CopyOpacity -composite \( baseimage.gif \) +swap -geometry +100+100 +compose -composite new.gif
It no longer works, the overlay image does not come through.
Can anyone tell me how I'd update this for 6.4.8?
compose/composite changes in 6.3.8 to current
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: compose/composite changes in 6.3.8 to current
Seems overly complex. Can you provide your input and output images so we can see what you are trying to do?dognose wrote:I finally upgraded to the latest version of IM, I'm now working through all the changes in command structure..
in im 6.3.8 to overlay and image with a mask, I used this:
convert overlay.gif mask.gif +matte -compose CopyOpacity -composite \( baseimage.gif \) +swap -geometry +100+100 +compose -composite new.gif
It no longer works, the overlay image does not come through.
Can anyone tell me how I'd update this for 6.4.8?
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: compose/composite changes in 6.3.8 to current
Looks fine to me..
Oh.. +compose changed to not defulat to 'Over' but to the compose stored in the overlay image, and only to 'Over' if no such setting is defined in the image. That is that same as what +label, +background, etc settings also do.
This was to allow for multiple compose settings in PSD photoshop image format Arrrgghhh...
That is the previous compose setting would be used as it stored in the overlay image you generated.
Change +compose to -compose Over and all should be well...
PPS: I got caught by this myself, within IM Examples.
Oh.. +compose changed to not defulat to 'Over' but to the compose stored in the overlay image, and only to 'Over' if no such setting is defined in the image. That is that same as what +label, +background, etc settings also do.
This was to allow for multiple compose settings in PSD photoshop image format Arrrgghhh...
That is the previous compose setting would be used as it stored in the overlay image you generated.
Change +compose to -compose Over and all should be well...
PPS: I got caught by this myself, within IM Examples.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/