Hugo

Convert png to jpeg file?

For my project I’ve patched the figure shortcode to generate a srcset attribute with scaled versions of the original image.

Ideally I’d like to convert the original image (mostly a png) into a jpg for smaller file sizes. Is there any way to create a scaled jpeg image from the original png image?
$img.Resize "600x" seems to always keep the original format.

Thanks!

Nope. :slight_smile: