I noticed hugo doesn’t handle progressive jpeg files.
<$img.Resize>: error calling Resize: resize /Images/GOAT2.jpg: invalid JPEG format: missing 0xff00 sequence
In fact it’s not even seen as an image. When renamning it as pjpg, it’s not seen as an image anymore and it’s .Height that throws an error. It’s one thing that jxl don’t work (not your fault) but coughing on jpg because they have a progressive feature ? Nasty.
Hugo does handle progressive JPEG images, but apparently is having a problem with your image. Please provide a link to the original image file, and your Hugo version.
Here’s an example of image processing with a progressive JPEG:
git clone --single-branch -b hugo-forum-topic-55781 https://github.com/jmooring/hugo-testing hugo-forum-topic-55781
cd hugo-forum-topic-55781
hugo server
Examing the progressive.jpg
image used in the example above…
$ exiftool -encodingProcess -T assets/images/progressive.jpg
Progressive DCT, Huffman coding
$ identify -verbose assets/images/progressive.jpg | grep Interlace
Interlace: JPEG