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: Options for resizing and changing image quality when using FilePicker #298

Closed
3 of 20 tasks
webfletch opened this issue Sep 26, 2024 · 1 comment
Closed
3 of 20 tasks
Labels
duplicate This issue or pull request already exists feature Feature request needs: triage package: file-picker wontfix This will not be worked on

Comments

@webfletch
Copy link
Contributor

Plugin(s)

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

Current problem

Need the ability to resize and reduce the quality of images selected from the image library.

Images taken on phone camera's are usually very high resolution and therefore very large to store or upload.

Preferred solution

The official Capacitor Camera plugin allows you to pass through parameters to resize and reduce the quality of the images returned, so something similar to that would be great:

const options: PickImageOptions = {
   quality: 0.8,
   maxWidth: 400,
   maxHeight: 200
 };

const images = await FilePicker.pickImages(options);

Alternative options

No response

Additional context

No response

Before submitting

@webfletch webfletch added feature Feature request needs: triage labels Sep 26, 2024
@robingenz
Copy link
Member

robingenz commented Sep 26, 2024

That's what the File Compressor plugin is for. Changing the image quality is already possible. For resizing, there is already a feature request: #128 I close this issue as duplicate.

@robingenz robingenz closed this as not planned Won't fix, can't repro, duplicate, stale Sep 26, 2024
@robingenz robingenz added duplicate This issue or pull request already exists wontfix This will not be worked on package: file-picker labels Sep 26, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists feature Feature request needs: triage package: file-picker wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants