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 tags don't update bbox #11971

Open
pchevali opened this issue Feb 19, 2024 · 1 comment
Open

EXIF tags don't update bbox #11971

pchevali opened this issue Feb 19, 2024 · 1 comment

Comments

@pchevali
Copy link

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

  • GeoNode version: 4.1.3
  • Installation type (vanilla, geonode-project): geonode
  • Installation method (manual, docker): docker
  • Platform: linux (ubuntu 22.04)
  • Additional details:

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
Copy link
Author

pchevali commented Jun 3, 2024

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

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

2 participants