-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
feat: introduce max image size of 1 mebibyte
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.
1 parent
cc5c0a8
commit f39cf30
Showing
1 changed file
with
109 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters