I’ve been posting photos by using the “Copy HTML” option and pasting into a new post, but that results in the img tag using the original/full image size (and a heavy page with images being 1-2MB each). I started going back and adding the “-m” to the photo URL, but of course that’s a manual process. Is there a best practice or automated way to default to the medium size?
I saw this suggestion, but it predates the newer way images are resized with -m and -s in the filename.
Good question, we may want to update the default “Copy HTML” behavior to use the medium-sized image when it’s available. We could also use srcset to include both sizes, but that also makes the HTML a lot more verbose and clunky to copy/paste.
I still think Hugo’s render hooks are nifty. We could use them to automatically generate srcset and other enhancements without adding extra verbosity when using Markdown syntax.