6
1 Comment

express-imgwiz: Resize, format, sharpen, etc... images on-the-fly for expressjs

Hey guys, I've been format and resize images often. Mostly to optimize websites for PageSpeed or GTMetrix recommendations.

I wrote this express-imgwiz to make it easy for the job, it can:

  • Format image to .jpg, .png, .tiff, or .webp (lighter and recommeded by PageSpeed)
  • Resizes height, width with position option (convenient to optimize for responsive websites)
  • Sharpen or blur

Demo url: https://wiz.saltar.co/photos/?url=https://i.imgur.com/MBDUWNw.jpg&sharpen=true&fm=webp&h=50

The library provides both as middleware or handler for expressjs.

Available on npm (as express-imgwiz) or on github: https://github.com/hieunc229/express-imgwiz

Feedbacks are welcome and appreciated!

on December 27, 2019
  1. 1

    I'm keen on using image converter on-the-fly. Thanks for the library!