kor icon indicating copy to clipboard operation
kor copied to clipboard

import image EXIF data on upload

Open Diederka opened this issue 7 years ago • 3 comments

am I rigth that Kor (or respectively image magick) automatically reads the file types and displays them eg: File type of the original: image/jpeg

ist it possible to read the exif data and display it ? like fo instance "image width" and "height" and "resolution in dpi"? such technical metadata is very important, and actually given but some collegues didnt't collect them while scanning thus we can't display them ...

Diederka avatar Aug 16 '18 14:08 Diederka

Yes, the mime type is determined by KOR. Its actually the browser that sends the mime/type. KOR just ensures that its correct (for security).

KOR includes a module that can read the EXIF data from JPG and TIF files.

As a feature, I could imagine that the EXIF data is read after an image (mime type image/jpeg or image/tif) is uploaded and then written to fields for the entity type "medium" (if the fields exist).

If you want to have this quickly, have a look at the library https://github.com/remvee/exifr which is included in the KOR bundle. You can use this in a script to regularly add the information for already uploaded images.

moritzschepp avatar Aug 18 '18 06:08 moritzschepp

oh, a feature like this in future times would be great! In the meantimeI will have a look at the library. Thank you!

Diederka avatar Aug 18 '18 17:08 Diederka

cf. https://bugs.coneda.net/issues/455

wuebbena avatar Apr 22 '19 20:04 wuebbena