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

Filenames For Cached Image #264

Closed
pxwee5 opened this issue Jul 4, 2019 · 1 comment
Closed

Filenames For Cached Image #264

pxwee5 opened this issue Jul 4, 2019 · 1 comment

Comments

@pxwee5
Copy link

pxwee5 commented Jul 4, 2019

Is there a way to not use md5 hash on the output of the cached filenames?
I'm looking to generate both test.jpg and test.webp at the same time. Filename must be the same but different ext.

The cache filenames can also be test-200w-100h.jpg and test-200w-100h.webp for different size params.

Is this possible with the 1.x version of Glide?

BTW, this is required based on Google's recommendation on serving webp images with Content Negotiation. https://developers.google.com/speed/webp/faq , where the server searches for a .webp file of the same name first before falling back to the original file.

@tgalopin
Copy link
Member

Not currently possible AFAIK but planned in the next major of Glide (#288)

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

No branches or pull requests

2 participants