-
-
Notifications
You must be signed in to change notification settings - Fork 703
Add jpeg restart_interval option. #2468
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
Conversation
This allows saving a jpeg with MCU restarts.
If I should adds tests, some advice on where to do it would be welcome. |
Hi @manthey, this is very cool, I'll have a look. Tests go here: https://github.com/libvips/libvips/blob/master/test/test-suite/test_foreign.py#L145 I suppose you'd want to test you can save and load, and that enabling restart increases the size of the saved object by a few bytes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great patch, very clean. I added a couple of small comments. Could you add a line to the main changelog too, please?
Thanks, @jcupitt. Let me know if you'd like any other changes. |
That's great! Thanks again. This will be in 8.12, due fairly soon, hopefully. |
... I added a test that images with MCU restarts can be loaded correctly. |
Thank you. |
This allows saving a jpeg with MCU restarts.