wildlyinaccurate / jekyll-responsive-image

An unopinionated Jekyll plugin for generating and using responsive images
MIT License
332 stars 48 forks source link

Format change #92

Closed CodeSandwich closed 4 years ago

CodeSandwich commented 4 years ago

Situation

I have a set of big source PNG images. It would make sense to have them recompressed as JPG.

Solution

Add to configuration default_format: jpg|png|webm and sizes: [ { ... format: jpg|png|webm }], which would allow controlling the output format. It would play along greatly with https://github.com/wildlyinaccurate/jekyll-responsive-image/issues/91 to provide a non-resized, but recompressed source image.

What do you think about this idea?

wildlyinaccurate commented 4 years ago

I appreciate the suggestion, but I'm trying to keep the scope of this plugin as narrow as possible. I suggest you save your source images in the format that you want them to be delivered as.

phieri commented 4 years ago

It would be a nice workflow to be able to check in uncompressed fullres images and have a Jekyll plugin convert and resize during build.