andismith / grunt-responsive-images

Produce images at different sizes for responsive websites.
http://www.andismith.com/grunt-responsive-images/
MIT License
719 stars 96 forks source link

Feature request: support output of progressive images #77

Open edwardhorsford opened 9 years ago

edwardhorsford commented 9 years ago

It would be great if you could choose to output progressive jpegs, or have them be progressive by default. Progressive images appear to load faster.

andismith commented 9 years ago

Not had a chance to try it myself, but this may work (let me know if it does). Add an option to your image configuration with:

customOut: 'interlace:plane'

edwardhorsford commented 9 years ago

Thanks for the fast reply. Sadly doesn't work. I get this in the console:

Warning: Command failed: gm convert: Unable to open file (plane) [No such file or directory].

Reading the docs I think you want something like -interlace: Line as opposed to plane.

edwardhorsford commented 9 years ago

Don't think it's inserting the right args. If I add image.interlace('line'); right before the write operation on line 379 it works.

iparr commented 8 years ago

:+1: for supporting this.

johnv-git commented 8 years ago

Take a look at Issue #96 Once customIn is fixed, you can have interlacing for free.