callstack / react-native-image-editor

A library providing an API for cropping images from the web and the local file system.
MIT License
383 stars 118 forks source link

feature: Add compression quality prop #130

Closed retyui closed 10 months ago

retyui commented 10 months ago

Summary

Allow to change quality of the resulting image via passing quality: number prop. Used the default values without making any breaking changes.

Test plan

Example:

https://github.com/callstack/react-native-image-editor/assets/4661784/81212d46-6e45-4f1c-bd18-fffa5fbf341d

ionflow commented 10 months ago

Can you add quality to the ImageCropData type interface? @react-native-community/image-editor/src/index.ts

Object literal may only specify known properties, and 'quality' does not exist in type 'ImageCropData'.ts(2353)
(property) quality: number
retyui commented 10 months ago

@ionflow Thank for letting me know