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?".
- Posts: 18
- Joined: 2015-12-19T13:16:12-07:00
- Authentication code: 1151
This code works on two servers with different ImageMagick versions.
Code: Select all
exec("convert -size 200x200 xc:transparent -fill 'rgba(255, 87, 34, 0.5)' -draw 'circle 95,95 30,35' \( +clone -background black -shadow 70x3+1+1 \) +swap -background none -layers merge +repage result.png");
Both servers based in Debian operating system.
ImageMagick 6.9.2-7 Q16 x86_64 2015-12-03
ImageMagick 6.8.9-9 Q16 x86_64 2015-01-05
Why the different results?
From first server:
From second server:
- Posts: 26383
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
I can confirm the difference using IM 126.96.36.199 Q16 and 188.8.131.52 Q16 Mac OSX Snow Leopard. I know there was some partial transparency blending changes not too long ago, but do not know if this is related. The change seems to have occurred between 184.108.40.206 and 220.127.116.11.
- Site Admin
- Posts: 11254
- Joined: 2003-05-31T11:32:55-07:00
It appears to be a transient problem which fixed in recent releases of ImageMagick. The current release, ImageMagick 6.9.2-10, returns similar results to your first image, res1.png. The normalized RMSE metric for 6.9.2-10 vs 6.9.2-7 is 5.8503e-06, whereas for 6.8.9-9 vs 6.9.2-7, we get an RMSE of 0.0323784.