Image icon indicating copy to clipboard operation
Image copied to clipboard

black background while resizing gif

Open pmithrandir opened this issue 10 years ago • 7 comments

Hello, magot

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

pmithrandir avatar May 25 '14 20:05 pmithrandir

Hello, What method do you use to resize it? Do you specify the background to be transparent when resizing?

Gregwar avatar May 28 '14 08:05 Gregwar

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

pmithrandir avatar May 28 '14 09:05 pmithrandir

Hello,

I checked and using "transparent" doesn't change anything.

Pierre

pmithrandir avatar May 28 '14 18:05 pmithrandir

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

pmithrandir avatar May 31 '14 15:05 pmithrandir

I have same problem.

maxvanceffer avatar Jan 02 '15 00:01 maxvanceffer

Looks like this is more a problem of saving GIFs, because saving it as PNG do preserve the transparency

Gregwar avatar Jan 02 '15 08:01 Gregwar

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): test

and here is the result of zoomCrop('270', '210', 'red') test-result

Everything works correctly if, for example, I try zoomCrop('269', '210', 'red')

Cene avatar Jan 20 '15 09:01 Cene