different results with the same command?
Posted: 2007-09-30T06:01:42-07:00
Hi folks,
my Problem is as follows. I want to take a picture, cutout a selection and create this:
Therefore I use this command:
convert ( input.jpg -crop 764x245+0+0 -resize 764x245! ) ( ( -size 764x105 xc:white ) ( input.jpg -crop 764x245+0+0 -resize 764x105! -flip -paint 1 ) ( userprofil_top_bg_mirror_mask.png ) -alpha on -composite ) -append test.jpg
I take the picture (first parantheses), crop it and resize it to the right width and height. (in this case, the cutout ist exactly as big as desired). Then I take a white canvas with 764x105, load the picture again, crop it again the same way and resize it to 764x105, flip it and put an effect onto it. I load a mask image and compose these three ingredients alltogether. At the end, both pictures in the image stack are appended vertically.
BUT: If i use another input image as the one used for the example above the reflection part is rendered not correctly:
It seems to depend on the input image!
I tried a lot of things, but I did not came up with a solution that works so far. Could this be a bug in ImageMagick?
Or is there a bug in my command?
Thanks for your help,
knedl
my Problem is as follows. I want to take a picture, cutout a selection and create this:
Therefore I use this command:
convert ( input.jpg -crop 764x245+0+0 -resize 764x245! ) ( ( -size 764x105 xc:white ) ( input.jpg -crop 764x245+0+0 -resize 764x105! -flip -paint 1 ) ( userprofil_top_bg_mirror_mask.png ) -alpha on -composite ) -append test.jpg
I take the picture (first parantheses), crop it and resize it to the right width and height. (in this case, the cutout ist exactly as big as desired). Then I take a white canvas with 764x105, load the picture again, crop it again the same way and resize it to 764x105, flip it and put an effect onto it. I load a mask image and compose these three ingredients alltogether. At the end, both pictures in the image stack are appended vertically.
BUT: If i use another input image as the one used for the example above the reflection part is rendered not correctly:
It seems to depend on the input image!
I tried a lot of things, but I did not came up with a solution that works so far. Could this be a bug in ImageMagick?
Or is there a bug in my command?
Thanks for your help,
knedl