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

"Subrectangles" optimization when writing GIFs #74

Closed
Zulko opened this issue Feb 15, 2015 · 6 comments
Closed

"Subrectangles" optimization when writing GIFs #74

Zulko opened this issue Feb 15, 2015 · 6 comments

Comments

@Zulko
Copy link
Contributor

Zulko commented Feb 15, 2015

Hi there ! So apparently the subrectangles optimization to reduce the size of gifs is broken, but I'm not completely sure what is wrong. Is this something that we must wait for FreeImage to fix, or is there something that could be done at the level of ImageIO ?

Cheers !

@almarklein
Copy link
Member

Optimization for subrectangles is not implemented in FreeImage. Therefore imageio does the subrectangle processing itself (see plugins/freeimagemulti.py).

@Zulko
Copy link
Contributor Author

Zulko commented Feb 15, 2015

Sure, but my question was about the meaning of these lines.

@almarklein
Copy link
Member

Aah. Completely forgot about that. I don't think there is much we can do while FreeImage is broken, unfortunately :(

@darkdragon-001
Copy link

For me, it seems to work. At least setting this option to true results in significantly smaller files...

@almarklein
Copy link
Member

@darkdragon-001, IIRC that is expected, but the visual result can be wrong due to FreeImage not writing the disposal method correctly, i.e. the frames are composed in the wrong way. Could be that its fixed by now though.

All this said, we're about to have a gif writer based on Pillow that supersedes the FreeImage version.

@almarklein
Copy link
Member

Closing this, since the gif writer of the Pillow plugin supersedes the one provided by the FreeImage plugin, and theres not much that we can do about it anyway.

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