Hi there,
I have checked the forums, mailing lists and the web, but in my luck at this time can find nothing about why when I add dropshadows to images, they work fine for .png but the gradient is lost for .gif or .jpeg? The drop shadow becomes more or less solid (instead of gradient) for .gif!?
I have searched on alpha/transparency settings, and remain confused.
Works fine if I use another program to convert the .png to .gif. (drop shadow colors copy over).
Using Imagick ver 6.4.1 for PHP 5.2.0.
Cheers.
Saving as .gif or .jpeg lack colours, but .png is okay?
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Saving as .gif or .jpeg lack colours, but .png is okay?
GIF only allows fuly transparent or opaque. as such semi-transparent shadows are lost.
JPEG does not allwo transparency at all.
In either case 'flatten' your image onto some background color as per IM examples for those formats
http://www.imagemagick.org/Usage/formats/#jpg_trans
http://www.imagemagick.org/Usage/formats/#bgnd
JPEG does not allwo transparency at all.
In either case 'flatten' your image onto some background color as per IM examples for those formats
http://www.imagemagick.org/Usage/formats/#jpg_trans
http://www.imagemagick.org/Usage/formats/#bgnd
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: Saving as .gif or .jpeg lack colours, but .png is okay?
Thanks, excellent reply. Works great!