GeoNode / geonode

GeoNode is an open source platform that facilitates the creation, sharing, and collaborative use of geospatial data.
https://geonode.org/
Other
1.41k stars 1.11k forks source link

EXIF tags don't update bbox #11971

Open pchevali opened 4 months ago

pchevali commented 4 months ago

Expected Behavior

Uploading a jpg image with Location exif will update the resource bbox and other metadata

Actual Behavior

The metadata of the document remains unchanged

Steps to Reproduce the Problem

  1. Enable EXIF with EXIF_ENABLED=True
  2. Upload a jpg image
  3. Check Metadata to be updated with exif

Specifications

The problem seems to come from the line https://github.com/GeoNode/geonode/blob/master/geonode/documents/exif/utils.py#L77 The filename should actually be doc.files[0] instead of doc.doc_file.path But to be compatible with the "StorageManager" maybe it should be:

img = Image.open(storage_manager.open(doc.files[0]))

pchevali commented 1 month ago

Hello, this issue is still present with 4.3.0

Does the exif metadata update is going to be dropped or is it planned to be kept in further releases ?

Thanks