Skip to content

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

Merged
merged 5 commits into from
Oct 8, 2021
Merged

Add jpeg restart_interval option. #2468

merged 5 commits into from
Oct 8, 2021

Conversation

manthey
Copy link
Contributor

@manthey manthey commented Oct 7, 2021

This allows saving a jpeg with MCU restarts.

This allows saving a jpeg with MCU restarts.
@manthey
Copy link
Contributor Author

manthey commented Oct 7, 2021

If I should adds tests, some advice on where to do it would be welcome.

@jcupitt
Copy link
Member

jcupitt commented Oct 8, 2021

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.

Copy link
Member

@jcupitt jcupitt left a 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?

@manthey
Copy link
Contributor Author

manthey commented Oct 8, 2021

Thanks, @jcupitt. Let me know if you'd like any other changes.

@jcupitt jcupitt merged commit 46a67cf into libvips:master Oct 8, 2021
@jcupitt
Copy link
Member

jcupitt commented Oct 8, 2021

That's great! Thanks again.

This will be in 8.12, due fairly soon, hopefully.

@jcupitt
Copy link
Member

jcupitt commented Oct 8, 2021

... I added a test that images with MCU restarts can be loaded correctly.

@manthey
Copy link
Contributor Author

manthey commented Oct 8, 2021

Thank you.

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.

2 participants