Skip to content

try to make cgifsave easier to read #2853

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

Merged
merged 2 commits into from
Jun 12, 2022
Merged

try to make cgifsave easier to read #2853

merged 2 commits into from
Jun 12, 2022

Conversation

jcupitt
Copy link
Member

@jcupitt jcupitt commented Jun 10, 2022

And fix a few memory errors and leaks with reoptimise.

Speed seems the same.

$ valgrind vipsthumbnail 3198.gif[n=-1] -o vips-13.gif --size 224
$ valgrind vipsthumbnail 3198.gif[n=-1] -o vips-13.gif[reoptimise] --size 224

Both pass cleanly. You can use --vips-info to get a bit of debugging output:

$ time vips copy sample.gif[n=-1] x.gif[reoptimise] --vips-info
VIPS-INFO: 18:17:19.094: cgifsave: 301 frames
VIPS-INFO: 18:17:19.094: cgifsave: 215 unique palettes

real	0m17.583s
user	0m24.593s
sys	0m0.477s

and fix a few memory errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant