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

Exif data on jpeg images is lost before sending images to the server #974

Closed
dam2k opened this issue May 23, 2017 · 2 comments
Closed

Exif data on jpeg images is lost before sending images to the server #974

dam2k opened this issue May 23, 2017 · 2 comments

Comments

@dam2k
Copy link

dam2k commented May 23, 2017

Hi there.
I setup HTML, CSS and JS on my static page and all is very cool! The problem occurs when I upload one or more jpeg images to the server.

After I catch the images server side with PHP I realize that the images are smaller (may be ok due to the client auto resize) and they lost all EXIF metadata, so I cannot rotate them, for example, based on their orientation on my server app.

The rotation works perfectly client side on the thumbnail so the image exif data is not a problem.

I think this is a feature request, but it could also be a bug.

I have this problem with mobile (android) or desktop (firefox or chrome on linux). I also tested it on Windows (firefox and ie11) with the same problem.

Is there a way to keep all (or just Orientation) EXIF data on jpeg images?
Thank you.

@aperla
Copy link

aperla commented May 23, 2017

I have the same problem

@kartik-v
Copy link
Owner

kartik-v commented May 24, 2017

Actually if you are resizing the image - the plugin uses HTML5 canvas to resize and the HTML5 canvas does not read or maintain exif data for the images.. and hence the resized image will not have this information. The exif data will be received on server if you set the plugin to work without image resize and you receive image on client AS-IS without client level modifications (or compression).

Seems some enhancement needs to be done to auto orient these images via the canvas itself OR use an exif client plugin to embed exif data in modified image... before they are sent to the server. Waiting for any other suggestions to enhance.

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

3 participants