thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.78k stars 2.67k forks source link

Image metadata removed after upload #4902

Open Developer-Nijat opened 4 years ago

Developer-Nijat commented 4 years ago

Version information

Description

I think image upload proses removed metada from images and all images metadata is same. probably standart upload proses working (resizng, cropping etc.) After upload image to media manager now when display on front-end im using exif-js for extract metada from image for example gps coordinates but i can't do it due reason. Please help. How can i solve this problem ?

Steps To Reproduce

Steps to reproduce the behavior:

  1. Go to 'admin/projects'
  2. Create new 'project with image.'
  3. Go to 'front-end page.'
  4. extract meta data from image with exif-js and problem here

Expected behavior

My opinion images must be stored original options

Developer-Nijat commented 4 years ago

Problem solved.

Solution: Store image with file input . Now metadata is not corrupted it is ok. But when store images with image input then metadata corrupted. Maybe helpful to others

MrCrayon commented 4 years ago

That can be used as workaround but I think that if there is no operation asked to be done on images, like cropping etc., images should be saved as is. This should also solve problems with GIF or SVG file types.