composite not working same way in 6.33

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
dlink

composite not working same way in 6.33

Post by dlink »

Hi,
We have been using composite 6.0 like this:

composite -resize 96x74 -gravity center -geometry -3-7 -quality 50 picture.jpg background.jpg picture.jpg

But after upgrading to 6.33 that produces a different result.

Originally it produced a picture in the center of a border image.

Now it does not include the background image file and the image is stage left.

Has the syntax to the composite command changed in 6.33?

Thanks for any help on this.

David,
Valhalla, NY
dlink

Re: composite not working same way in 6.33

Post by dlink »

Hi ImageMagick Community.

I can't believe this problem has received no replies in 3 days.

Do others use composite function? Is 6.33 stable?

Thanks again
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: composite not working same way in 6.33

Post by Bonzo »

An answer: I do not have 6.33 so I do not know.

Looking at your code I am supprised it worked in the first place. -resize is not a recognised composite comand, I usualy put the resize comand next to the item I am going to resize or in ( ). The negative sign in the -geometry -3-7 would move one of the images to the left and up.

It may be the syntax has changed as I belive version 6 was a major change from version 5 and it may have changed again since then.

I would rewrite my code to what is working now; I would also probably use convert instead of composte as you can then use -resize.
dlink

Re: composite not working same way in 6.33

Post by dlink »

Thank you Bonzo,
I now use convert to resize prior to calling composite
and I've removed the resize option from the composite command.
Thanks for your support.
Post Reply