-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Supporting jpg
extension
#64
Comments
I’m confused, we definitely support it on incoming images (in fact, a |
Sorry for the lack of clarity. If I use a For example:
The issue is the Again, apologies for the out-of-context confusion. |
In reading #10 I see the issue around the mime types has come up before. To re-iterate, the issue is not the extension per-say, but allowing the Alternatively, eleventy-img could throw an error when an unsupported |
A ha! I see what you mean. Yeah that seems like a bug to me—thanks for the extra clarity! |
Using |
That was quick, Thanks @zachleat ! And cheers for encouraging better clarity. |
FWIW for anyone using the excellent @zachleat P.S. Thanks for all your hard work on 11ty!! I just started using it last year and have been loving it. Thanks also for your excellent blog and all the web font research—much appreciated! 🙏 |
Couldn't agree more! @zachleat Thank you!!!! |
Thanks, @zachleat for mapping My code:
Using: |
I don't believe
jpg
is an unofficial format - it just wasn't in the initial first choice, but was the required and used extension on Windows at one point. Even though Mac and modern Windows support the 4 character extension, the 3 character version is so ubiquitous I think it's odd to not support it, or at least make a mention of the absence.jpg
is the extension used by most cameras and photo-editing software. I rarely come acrossjpeg
in my day to day.Not to presume the intentions of eleventy-img, but if the goal is to remove some of the hurdles of image formats and the technical knowledge of responsive images on the web, excluding
jpg
because it wasn't the original desired extension seems antithetical.Obviously, there is a coding and maintenance overhead to aliasing one to the other, and I'm not here to try to burden anyone with further OSS maintenance, so I respect that a decision had to be made. Perhaps I note in the docs that acknowledges that there are two common extensions and for simplicity only one is supported?
The text was updated successfully, but these errors were encountered: