- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 3.3k
 
Description
What is the bug or the crash?
The 'Import Geotagged Photos' processing tool does not find the geolocation information in HEIC images. Two errors are given in the tool's log: 'Could not open path/to/file' or 'No metadata found in path/to/file'.
The first error does not seem to be an operating system related permissions issue as all files are owned by a user that QGIS can read/write other file types from. Other tools, e.g. exiftool and Gimp, have no problem finding the EXIF data for the HEIC. When an HEIC is exported to JPG from Gimp, the 'Import Geotagged Photos' tool is able to read the location information. However, when that same JPG is converted back to HEIC by Gimp 'Import Geotagged Photos' gives the 'Could not open' error.
The second, 'No metadata' error is given after images are converted to JPG in the shareware GraphicConverter.
By the way, I have already found out that this issue is not related to GDAL see this closed issue. E.G. gdalinfo will give the EXIF data if the -mdd EXIF switch is used.
Steps to reproduce the issue
- Open the 'Import Geotagged Photos' tool and navigate to the images in the zip folder attached below.
 - Run the tool.
 - One photo will be imported correctly and three errors will be reported in the log.
a. Imported correctly
i. heic_to_jpeg_gimp.jpg
This is the original HEIC file that has been exported from Gimp as a JPG.
b. 'Could not open path/to/file' for files:
i. heic_exif_read_by_gdal_using_-mdd EXIF.heic
This is the original HEIC file for which gdalinfo requires the '-mdd EXIF' switch to report the EXIF.
ii. heic_to_jpeg_gimp_to_heic.heic
This file was exported from Gimp as a JPG (see 3.a.i above) and then converted back to HEIC in Gimp.
c. 'No metadata found in path/to/file'.
i. heic_to_jpeg_graphic_converter.jpg
The original HEIC file was converted to JPG using the shareware program GraphicConver. 
The attached file contains 4 images for reproducing the issue:
HEIC_EXIF_not_read_by_ImportGeotaggedPhotos.zip
Versions
<style type="text/css"> p, li { white-space: pre-wrap; } </style>| QGIS version | 3.42.0-Münster | 
|---|---|
| QGIS code revision | 8f66da6 | 
| Libraries | |
| Qt version | 5.15.2 | 
| Python version | 3.9.5 | 
| GDAL version | 3.3.2 | 
| PROJ version | 8.1.1 | 
| EPSG Registry database version | v10.028 (2021-07-07) | 
| GEOS version | 3.9.1-CAPI-1.14.2 | 
| SQLite version | 3.35.2 | 
| PDAL version | 2.3.0 | 
| PostgreSQL client version | 12.3 | 
| SpatiaLite version | 5.0.1 | 
| QWT version | 6.1.6 | 
| QScintilla2 version | 2.11.5 | 
| OS version | macOS 14.7 | 
| Active Python plugins | |
| processing | 2.12.99 | 
| grassprovider | 2.12.99 | 
| db_manager | 0.1.20 | 
| MetaSearch | 0.3.6 | 
Libraries
Qt version
5.15.2
Python version
3.9.5
GDAL version
3.3.2
PROJ version
8.1.1
EPSG Registry database version
v10.028 (2021-07-07)
GEOS version
3.9.1-CAPI-1.14.2
SQLite version
3.35.2
PDAL version
2.3.0
PostgreSQL client version
12.3
SpatiaLite version
5.0.1
QWT version
6.1.6
QScintilla2 version
2.11.5
OS version
macOS 14.7
Active Python plugins
processing
2.12.99
grassprovider
2.12.99
db_manager
0.1.20
MetaSearch
0.3.6
Supported QGIS version
- I'm running a supported QGIS version according to the roadmap.
 
New profile
- I tried with a new QGIS profile
 
Additional context
No response