You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That solves the time issue, but you are not able to display the image correctly orientated, is it possible to reduce the time without losing the orientation?
The text was updated successfully, but these errors were encountered:
Heshade
changed the title
Compress image a lot of time in android, solve whitout losing the orientation
Compress image takes a lot of time in mobiles, solve whitout losing the orientation
Mar 6, 2019
Heshade
changed the title
Compress image takes a lot of time in mobiles, solve whitout losing the orientation
Compress image takes a lot of time in mobiles, solve whithout losing the orientation
Mar 6, 2019
Heshade
changed the title
Compress image takes a lot of time in mobiles, solve whithout losing the orientation
Compress image takes a lot of time in mobiles, solve without losing the orientation
Mar 6, 2019
You have to preserve image metadata before using compressorjs, then re-attach the exif data back after compressjs does its thing (you could use something like http://www.perry.cz/files/ExifRestorer.js to achieve this). This way, you can let your consuming web server handle file rotation instead of javascript.
EXIF is stored in the beginning part of a file so the following text on the readme If the size of target image is too large (e.g., greater than 10 MB), you should disable this option to avoid out-of-memory crash. doesn't make sense to me if implemented properly.
That solves the time issue, but you are not able to display the image correctly orientated, is it possible to reduce the time without losing the orientation?
Originally posted by @Heshade in #56 (comment)
The text was updated successfully, but these errors were encountered: