Combine two images not always work correct.

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
Darknet
Posts: 18
Joined: 2014-01-15T10:52:19-07:00
Authentication code: 6789

Combine two images not always work correct.

Post by Darknet »

When combining Handle multiple (two images) with combosite, he is the first that can not always be 100% together correctly. It remains a gray background.
Why is that?
shell_exec("/usr/bin/convert converting/hintergrund.jpg output/'".$pic."' -gravity center -composite ".$gallerie."/'".$pic."'");

Image
Last edited by Darknet on 2014-09-09T08:25:40-07:00, edited 1 time in total.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Combine two images not always work correct.

Post by snibgo »

Please give an example that other people can try.
snibgo's IM pages: im.snibgo.com
Darknet
Posts: 18
Joined: 2014-01-15T10:52:19-07:00
Authentication code: 6789

Re: Combine two images not always work correct.

Post by Darknet »

snibgo wrote:Please give an example that other people can try.
See picture

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

Re: Combine two images not always work correct.

Post by Bonzo »

It looks like the code is ending before the image is complete; possibly not an Imagemagick problem but a server one.

As snibgo says you need to upload the image that failed - is it always the same image that fails?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Combine two images not always work correct.

Post by snibgo »

The command has two input images. Please supply them both.
snibgo's IM pages: im.snibgo.com
Darknet
Posts: 18
Joined: 2014-01-15T10:52:19-07:00
Authentication code: 6789

Re: Combine two images not always work correct.

Post by Darknet »

The first picture The picture which has not been completely loaded.

The second ist the loge on the right side at bottom.

No there are always different pictures.

Sometimes none at all
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Combine two images not always work correct.

Post by snibgo »

I'll try once more, then I give up.

You have supplied one image. Perhaps this is the output image.

Please supply both input images so we can try to understand the problem.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Combine two images not always work correct.

Post by fmw42 »

As user snibgo said, we need you to post any pair of input images (in particular the ones you used to make your posted image) and your resulting output (posted image) from the pair of inputs. We need to use your images, so we can test with them to be sure they are not corrupt or have some other issue.

Also it would be better if your example used the exact names of the input images and output image rather than variables. Can you try without the variables using the exact images, to be sure something did not get fouled up in your code. Something like

Code: Select all

convert path2/image1 path2/image2 -gravity center -composite path2/result
or better put these images in your working directory so you do not need paths

Code: Select all

convert image1 image2 -gravity center -composite result
Also it is always a good idea to list your version of IM and platform.
Post Reply