You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I load 2 PNGs with transparent backgrounds, it changes to black.
I use small code change from (PNG to GIF converter - https://gist.github.com/gesior/6f5f7d15cb50f59a88fd) and now it works fine for PNGs. Before you add it, you must check, if other coversions still works fine.
EDIT:
I did test it with these PNG as resources.
When I use 'imagepng', it save them with transparent background.
When I use 'imagegif', it save them with black background.
There must be something bad with PHP library that saves same image resource with/without transparency.
The text was updated successfully, but these errors were encountered:
When I load 2 PNGs with transparent backgrounds, it changes to black.
I use small code change from (PNG to GIF converter - https://gist.github.com/gesior/6f5f7d15cb50f59a88fd) and now it works fine for PNGs. Before you add it, you must check, if other coversions still works fine.
Modified part of script:
EDIT:
I did test it with these PNG as resources.
When I use 'imagepng', it save them with transparent background.
When I use 'imagegif', it save them with black background.
There must be something bad with PHP library that saves same image resource with/without transparency.
The text was updated successfully, but these errors were encountered: