We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Image Sizer Transparency

Development and Programming

pmatos's avatar
pmatos
11 posts
17 years ago
pmatos's avatar pmatos

When The Image Sizer plugin resizes transparent images (png and gif) the background becomes black and they aren’t transparent anymore.

Anybody knows a fix for this?

       
leon_dewey's avatar
leon_dewey
12 posts
17 years ago
leon_dewey's avatar leon_dewey

I’m 90% sure that GD (PHP’s image lib) does not support transparent images

       
leon_dewey's avatar
leon_dewey
12 posts
17 years ago
leon_dewey's avatar leon_dewey

You might be able to do it by using image magic as your image lib.

       
Psychobalancing's avatar
Psychobalancing
1 posts
15 years ago
Psychobalancing's avatar Psychobalancing

—deleted post — EE says: You Are NOt Authorized to Perform this Action

       
ErwinVanLun's avatar
ErwinVanLun
235 posts
15 years ago
ErwinVanLun's avatar ErwinVanLun

same issue. EE should simply do a good job. Users won’t understand that you are allowed to upload images, to resize images, but not all images. They won’t remember and make the mistrake the next time all over again.

Either the resize option should be disabled after uploading an PNG, PNG should not be allowed at all, or - the best solution - it should simply do a good resize job.

       
ender's avatar
ender
1,644 posts
15 years ago
ender's avatar ender

the fault does not lie with PHP/GD2 in this case. I went to a little extra effort to support 8-bit transparency when resizing GIF and PNG images for the Simple S3 Uploader custom fieldtype I created a little while ago and it works pretty well. I’m pretty sure it’s also possible for PHP/GD2 to support 24-bit alpha layer transparency in the case of the PNG-24 format but I didn’t go that far in my code.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.