Skip to content

Can you disable image resizing? #104

Answered by jpanther
mjking asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the question. This is a limitation with the theme currently. The next release will change this behaviour so that when an external URL is provided as the image source, there will be no Hugo image processing.

However, if you want to completely disable any theme logic around image processing, you can create a file in your project at layouts/_default/_markup/render-image.html which simply contains the following:

<img src="{{ .Destination }}" alt="{{ .Text }}" title="{{ .Title }}" />

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mjking
Comment options

Answer selected by mjking
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants