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): keepExif parameter to control over the exif data #117

Open
3 of 16 tasks
stephan-fischer opened this issue Jan 10, 2024 · 4 comments
Open
3 of 16 tasks

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 its not possible to compress the image and keep control over the
exif data.

Preferred solution

A parameter to keep or remove the exif from the new compressed image like:

  const { path } = await FileCompressor.compressImage({
    mimeType: 'image/jpeg',
    keepExif: false,
    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

Hey Stephan, thank you for your request! I will take a look at it at the weekend.

@robingenz
Copy link
Member

Currently its not possible to compress the image and keep control over the
exif data.

Does this problem exist on Android and iOS?

@stephan-fischer
Copy link
Contributor Author

I mean, on both platform it would be nice to decide to strip or not to strip the metadata 😊
Currently i dont know the default behavior. Maybe this should be documented.

@robingenz
Copy link
Member

I've just had a look and it should be possible. However, I'm leaving this feature request open for now as I need to work on some other projects first.

@robingenz robingenz changed the title feat:(file-compressor): keepExif parameter to control over the exif data feat(file-compressor): keepExif parameter to control over the exif data Sep 8, 2024
@robingenz robingenz assigned robingenz and unassigned robingenz Nov 4, 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