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

bug: capawesome file-picker #347

Open
7 of 28 tasks
C-AAEN opened this issue Dec 10, 2024 · 5 comments
Open
7 of 28 tasks

bug: capawesome file-picker #347

C-AAEN opened this issue Dec 10, 2024 · 5 comments

Comments

@C-AAEN
Copy link

C-AAEN commented Dec 10, 2024

Plugin(s)

  • Android Foreground Service
  • Android Battery Optimization
  • App Review
  • 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
  • Speech Recognition
  • Speech Synthesis
  • Torch
  • Zip

Version

6.0.0

Platform(s)

  • Android
  • iOS
  • Web

Current behavior

When I select an image from the phones gallery and upload it to the server which create a thumbnail, if the phone has been rotated, the created thumbnail will also be rotated. The full image is not rotated. The EXIF data is also different on orientation when the image comes from gallery. The reason I see this as an issue, is if I use the phones camera with the capacitor camera plugin and take images with different rotations, the thumbnail will not get rotated, it will simply get the correct dimentions fx portrait mode will show the thumbnail in portrait.
When I look at the EXIF data of the image from camera directly it shows orientation Standard portrait, however the same image from gallery will have 180 degree rotated on orientation.

Expected behavior

I expect the images from gallery have the correct orientation similar to the images that are taken from the phone

Reproduction

i dont have

Steps to reproduce

should be clear from description

Other information

No response

Capacitor doctor

?

Before submitting

  • I have read and followed the bug report guidelines.
  • I have attached links to possibly related issues and discussions.
  • I understand that incomplete issues (e.g. without reproduction) are closed.
@C-AAEN C-AAEN added bug/fix Something isn't working needs: triage labels Dec 10, 2024
@robingenz
Copy link
Member

Can you reproduce this issue on all 3 platforms (Android, iOS, Web) or only on a specific one?

@C-AAEN
Copy link
Author

C-AAEN commented Dec 10, 2024

Hello, thank you for the fast response.

Yes.

Note I have also tried version 6.2.0 and its still an issue

Copy link
Contributor

This issue has been labeled as needs: reproduction. This label is added to issues that need a code reproduction.

Please provide a Minimal, Reproducible Example using this template in a public GitHub repository so we can debug the issue.

If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for us to reproduce the issue.

@C-AAEN
Copy link
Author

C-AAEN commented Dec 13, 2024

I have looked at this problem a little more and found that problem does not occur if I use the pickimages, that the camera plugin provides .

So to sum up. using FilePicker.pickImages results in the orientation in the EXIF data being "90 degree rotated" but if I use the pickImages from the camera plugin it will be 1 , 3, 6 for the orientation. The camera plugin also have an input param correctOrientation. what I also found is that they seem to use different galleries. I would suggest you to take inspiration from that plugin for the pickImages in this plugin

@robingenz
Copy link
Member

First I need to be able to reproduce the problem. Please help me to help you and create a Minimal, Reproducible Example using this template. This will speed up the whole process.

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