Skip to content
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

feat(file-compressor): support resizing #128

Open
3 of 16 tasks
stephan-fischer opened this issue Jan 19, 2024 · 1 comment
Open
3 of 16 tasks

feat(file-compressor): support resizing #128

stephan-fischer opened this issue Jan 19, 2024 · 1 comment
Assignees

Comments

@stephan-fischer
Copy link
Contributor

Plugin(s)

  • Android Foreground Service
  • Android Battery Optimization
  • App Update
  • Background Task
  • Badge
  • Cloudinary
  • Datetime Picker
  • File Compressor
  • File Opener
  • File Picker
  • Managed Configurations
  • NFC
  • Photo Editor
  • Screen Orientation

Current problem

Currently i can only compress by percentage, it would be nicer if i can resize (scale) the image.

Preferred solution

to give a max width / height structure

  const { path } = await FileCompressor.compressImage({
    mimeType: 'image/jpeg',
    width: 1000,
    height: 1000,
    path: 'content://com.android.providers.downloads.documents/document/msf%3A1000000485',
    quality: 0.7,
  });

Alternative options

No response

Additional context

No response

Before submitting

@robingenz
Copy link
Member

Yes, this is definitely currently missing.

@robingenz robingenz changed the title feat:(file-compressor): support resizing feat(file-compressor): support resizing Jan 23, 2024
@robingenz robingenz assigned robingenz and unassigned robingenz Nov 4, 2024
@robingenz robingenz self-assigned this Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants