Please resave the image in RGB mode. If it’s not RGB then GD library cannot process the opacity.
it is already rgb, i tried
– save normally
– change to 32-bit and save
– save for web (transparent)
all result in black background
to be precise, if i don’t do scaling, the background will become white, if i do scaling fit to width, the background will become black
In the end, this is strictly related to GB library on your server and we can’t do anything about it. Recently we discovered this RGB mode issue which seems to work
This is the reason why we are working on a cloud processing where we have control over the infrastructure
I tried to run on my local server which works perfectly fine, and i compare my hosting and local server, the only difference of the GD library is that my local server is running 1.6.x libPNG while my online hosting is running 1.2.1 libPNG version, I guess this could be reason however i am unable to test because no idea how to downgrade my local host and my share hosting unable to upgrade that. consider a case close
This could be the exact reason. 1.2 to 1.6 is a big gap and they probably fixed this issue. If you are interested you could read the changelog https://github.com/libgd/libgd/releases