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

A way to disable image fingerprinting #164

Open
1 task done
migvidal opened this issue Jan 7, 2025 · 3 comments
Open
1 task done

A way to disable image fingerprinting #164

migvidal opened this issue Jan 7, 2025 · 3 comments

Comments

@migvidal
Copy link

migvidal commented Jan 7, 2025

What is your Hugo Extended Version

0.123.8 extended darwin/arm64

What is your Go Version

1.21.3 darwin/arm64

What is your Node.js Version

22.6.0

What is your Operating System

MacOS

Check for Existing Issues

  • I have searched and found no relevant issues.

Expected Behavior

A way of keeping the original image names after they are processed. Is it documented? This is useful when using headless CMSs, which keep track of file names.

Steps to Reproduce

  1. Add images to assets/images
  2. Use them through the "image" partial
  3. Start up your site and inspect the images, you will find a long name with a hash instead of the original filename

Code Reproduction URL

No response

Additional Information

No response

@tfsomrat
Copy link
Contributor

tfsomrat commented Jan 8, 2025

I don't think there is any way to do that, here is the original doc: https://gohugo.io/content-management/image-processing/

let me know if you find a way to do that.

@migvidal
Copy link
Author

migvidal commented Jan 8, 2025

I think I've found a workaround here. To apply it I need to edit the "image" partial. Where is it? I can't seem to find it

@cybardev
Copy link

@migvidal I think this is what you're looking for: github.com/gethugothemes/hugo-modules/images

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

3 participants