Image
Image copied to clipboard
black background while resizing gif
Hello,
I have a gif with a transparent background. While re-sizing it with your tool, it applied a black background on it.
I don't get that for png files.
Any idea what could be the cause ? Best regards, Pierre
Hello, What method do you use to resize it? Do you specify the background to be transparent when resizing?
Hello, I use cropresize().
I don't force the background, as the images may have or not transparent background(it's an avatar, so the user decide what he upload).
I tried yesterday, and it seems that I enter in the transparent case. (in GD/doresize method). but it doesn't works. Does it works for you with the image attached ?
Pierre
Hello,
I checked and using "transparent" doesn't change anything.
Pierre
Hi, I tried to apply different tips I found around, but I never find a way to get the gif to work. There was always this black background...
Any different feeback on your side ? Pierre
I have same problem.
Looks like this is more a problem of saving GIFs, because saving it as PNG do preserve the transparency
I have a similar problem also with JPGs when trying to do "zoomCrop" and the width and height settings are the same of the original images. There is a black border on the bottom of the resulting image
This is tre starting image (JPG, 270px x 210px):
and here is the result of zoomCrop('270', '210', 'red')
Everything works correctly if, for example, I try zoomCrop('269', '210', 'red')