-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keep Metadata #164
Labels
Comments
like the 'lastModified' date? |
added option const options = {
maxSizeMB: 1,
maxWidthOrHeight: 1920,
useWebWorker: true,
preserveExif: true,
}
try {
const compressedFile = await imageCompression(imageFile, options);
console.log('compressedFile instanceof Blob', compressedFile instanceof Blob); // true
console.log(`compressedFile size ${compressedFile.size / 1024 / 1024} MB`); // smaller than maxSizeMB
await uploadToServer(compressedFile); // write your own logic
} catch (error) {
console.log(error);
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Might I know that how to keep the metadata during compression image
The text was updated successfully, but these errors were encountered: