Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gif image size problem #1858

Closed
Lucuz91 opened this issue Apr 22, 2016 · 2 comments
Closed

Gif image size problem #1858

Lucuz91 opened this issue Apr 22, 2016 · 2 comments

Comments

@Lucuz91
Copy link

Lucuz91 commented Apr 22, 2016

##I have a strange problem.
Simply open a GIF and safely without further changes.
The saved image size becomes much bigger , more than double than the original.

I used Python 2.7.11 and Pillow 3.2

from PIL import Image
import os

image = Image.open("randomlogo.gif")
print (image.info)
print (os.stat("randomlogo.gif").st_size)

image.save("out.gif")
image2 = Image.open("out.gif")
print(image2.info)
print(os.stat("out.gif").st_size)

 {'duration': 0, 'background': 0, 'transparency': 255, 'version': 'GIF89a'}
29069

{'duration': 0, 'background': 0, 'transparency': 213, 'version': 'GIF89a'}
66438 
@radarhere radarhere added GIF and removed GIF labels Apr 22, 2016
@radarhere
Copy link
Member

Have a look at #617

@radarhere
Copy link
Member

Since you've reacted positively to the presence of the other issue, are you happy for this issue to be closed as a duplicate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants