Open pchevali opened 4 months ago
Uploading a jpg image with Location exif will update the resource bbox and other metadata
The metadata of the document remains unchanged
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]))
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
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
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]))