heic-convert icon indicating copy to clipboard operation
heic-convert copied to clipboard

Browser vs Server Side Support

Open LeoWW opened this issue 2 years ago • 1 comments

Hi, was wondering if this library was meant for Server-Side usage or Browser usage? Thanks!

LeoWW avatar Jul 13 '21 17:07 LeoWW

It should work fine for both, as long as you are compiling with something webpack/rollup/etc. to provide proper browser fallbacks.

Though, it is worth mentioning that this module is not really optimized for small bundle size for browsers. You might be better off using heic-decode and then encoding the data using canvas. In addition to not bundling some bulky modules, that would also actually work faster than using jpeg-js and pngjs.

catdad avatar Jul 13 '21 21:07 catdad