Create progressive JPEGs with graphicsmagick in Node.js
25 May 2016 by @ddprrt | Posted in: Node.js, JPEG, Performance
We want to convert all our header images to progressive JPEGs to give a good impression of the content to come, rather than having everything line by line. If you’ve installed GraphicsMagick you can use the excellent gm Node.js bindings to do so. This is some sample code, with an additional check if the conversion went well:
You can even use this in your builds. gulp-gm for instance makes these API bindings available in your Gulp builds.
Comments? Shoot me a tweet!