Calipers: The Fastest Way to Measure Image Dimensions in Node
lob.com
lob.com
The article mentions "ImageMagick is slow because it does a lot more than just extract image size". So we implemented a complete new solution.
How about: "We added to ImageMagick a new command to just extract image size". So we published a small patch to Imagemagick, and got it done much faster than creating a complete new tool. On top of that, reusing tested Imagemagick data structure would probably reduce a lot maintenance cost.
Maybe I did not see some subtleties ?
which has sync and async methods, supports more image types, but doesnt let you measure pdfs (which requires an external lib here).