Skip to content

feature: Add compression quality prop#130

Merged
retyui merged 1 commit into
masterfrom
feature/retyui/add-compression-quality-prop
Jan 15, 2024
Merged

feature: Add compression quality prop#130
retyui merged 1 commit into
masterfrom
feature/retyui/add-compression-quality-prop

Conversation

@retyui

@retyui retyui commented Jan 12, 2024

Copy link
Copy Markdown
Collaborator

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:

Screen.Recording.2024-01-12.at.17.34.36.mov

@retyui retyui force-pushed the feature/retyui/add-compression-quality-prop branch from a8350e5 to 4b612ce Compare January 12, 2024 16:56
@retyui retyui marked this pull request as ready for review January 12, 2024 17:06
@retyui retyui requested a review from mateusz1913 January 13, 2024 08:49

@mateusz1913 mateusz1913 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls implement quality value validation

Comment thread ios/RNCImageEditor.mm
@retyui retyui force-pushed the feature/retyui/add-compression-quality-prop branch from 4b612ce to b1cbe15 Compare January 15, 2024 10:05
@retyui retyui requested a review from mateusz1913 January 15, 2024 10:05

@mateusz1913 mateusz1913 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@retyui retyui merged commit 2991821 into master Jan 15, 2024
@retyui retyui deleted the feature/retyui/add-compression-quality-prop branch January 15, 2024 10:25
@ionflow

ionflow commented Jan 20, 2024

Copy link
Copy Markdown

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 added a commit that referenced this pull request Jan 21, 2024
retyui added a commit that referenced this pull request Jan 21, 2024
@retyui

retyui commented Jan 21, 2024

Copy link
Copy Markdown
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants