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

feat: add progressive rendering option for static jpeg images #1397

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

samuel-git
Copy link
Contributor

Adds support for progessive rendering of static jpeg images via the formatOptions.
In my testing, progressive jpegs were ~2% smaller in filesize than their non-progressive counterparts.
They also 'feel' faster because they become more sharp while loading instead of loading in rows from top to bottom.

Also updated the section in the docs.

@acalcutt
Copy link
Collaborator

seems like a good addition. can you run 'npm run lint:js:fix' on this to fix the ci lint error

@samuel-git
Copy link
Contributor Author

seems like a good addition. can you run 'npm run lint:js:fix' on this to fix the ci lint error

Thanks @acalcutt for the heads up, updated the commit.

@acalcutt
Copy link
Collaborator

acalcutt commented Oct 6, 2024

The only other comment I have is it would be nice if the readme included an example of what it wants for boolean. Does it want [0 or 1] or [true or false]

@samuel-git
Copy link
Contributor Author

Thanks, updated!

@acalcutt acalcutt merged commit 7606539 into maptiler:master Oct 10, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants