• Resolved mechcalvin

    (@mechcalvin)


    I tried to upload a png with a transparent background, but seems not working, the background become completely black…

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Kuba Mikita

    (@kubitomakita)

    Please resave the image in RGB mode. If it’s not RGB then GD library cannot process the opacity.

    Thread Starter mechcalvin

    (@mechcalvin)

    it is already rgb, i tried
    – save normally
    – change to 32-bit and save
    – save for web (transparent)

    all result in black background

    Thread Starter mechcalvin

    (@mechcalvin)

    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

    Plugin Author Kuba Mikita

    (@kubitomakita)

    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

    Thread Starter mechcalvin

    (@mechcalvin)

    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

    Plugin Author Kuba Mikita

    (@kubitomakita)

    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

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘PNG transparent’ is closed to new replies.