bergben / ng2-img-max

Angular 2 module to resize images down to a certain width and height or to reduce the quality to fit a certain maximal filesize - all in the browser.
MIT License
83 stars 46 forks source link

Migration to exifr lost PNG support #47

Open Salketer opened 4 years ago

Salketer commented 4 years ago

Hello, I am receiving a "Unknown file format" when using this with some PNG files. My guess is it works if there is no need to compress the PNG passed, but crashes otherswise.

The error comes from exifr, and there is an open issue to allow for PNGs : https://github.com/MikeKovarik/exifr/issues/19

I suggest we just skip the exif read if it is a png for now?

MikeKovarik commented 4 years ago

Hello, I'm currrently working on png support. It will be available in the next exifr version. After that you could just bump version

MikeKovarik commented 4 years ago

Exifr 6.0.0 is now released