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: introduce max image size of 1 mebibyte #14

Merged
merged 1 commit into from
Mar 6, 2024
Merged

Conversation

chrisnewtn
Copy link
Owner

In the event an image larger than 1 mebibyte is processed, it will be converted to a JPEG in the built site, leaving the original git-only.

Converted images are also checked to see if they are less than 1 mebibyte. If they exceed the limit, an error is thrown.

Also added is a check for if the image is already an optimized format. If it is, then a JPEG version is outputted as a fallback for older browsers.

In the event an image larger than 1 mebibyte is processed, it will be
converted to a JPEG in the built site, leaving the original git-only.

Converted images are also checked to see if they are less than 1
mebibyte. If they exceed the limit, an error is thrown.

Also added is a check for if the image is already an optimized format.
If it is, then a JPEG version is outputted as a fallback for older
browsers.
@chrisnewtn chrisnewtn merged commit f39cf30 into main Mar 6, 2024
@chrisnewtn chrisnewtn deleted the max-image-size branch March 6, 2024 13:38
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