Page 1 of 1
Artifacts around logo when used imagick compositeimage
Posted: 2014-03-30T21:05:12-07:00
by trangtv04110
Line code: $top->compositeImage($logo, Imagick::COMPOSITE_OVER, $left_padding, $top_padding);
When I used composite method, it appear strange things around source image
Please see links:
http://screencast.com/t/8aBR7d9J
http://screencast.com/t/SmfaGfN3B
Help me !!!
Re: Artifacts around logo when used imagick compositeimage
Posted: 2014-03-30T22:18:16-07:00
by fmw42
What version of Imagemagick and what version of Imagick are you using? Can you provide links to your two input images? You can upload them to dropbox.com (public folder) and put links here. What are your exact argument values? What are your input and output format? If jpeg, then you could be seeing compression artifacts?
Re: Artifacts around logo when used imagick compositeimage
Posted: 2014-03-30T23:38:47-07:00
by snibgo
The white arrows are pointing to jpeg artifacts. Solution: don't use jpeg for images that have areas of flat colour.
Re: Artifacts around logo when used imagick compositeimage
Posted: 2014-03-31T00:53:28-07:00
by trangtv04110
Thanks for your help.
I think it is because jpeg. If I used png, it not happens.
But I want to use jpeg, not png. Is there a solution here?
Re: Artifacts around logo when used imagick compositeimage
Posted: 2014-03-31T01:55:27-07:00
by snibgo
"-quality 100" may reduce the problem.
Why do you want to use jpeg? It isn't designed for this type of image. A PNG is probably smaller than jpeg quality 100.