#16106 closed defect (bug) (duplicate)
Error reading EXIF data from uploaded image
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.5 |
Component: | Media | Keywords: | has-patch |
Focuses: | Cc: |
Description
When the user uploads an image file with EXIF data, that data is saved to the database. exif_read_data() reads the EXIF headers from a JPEG or TIFF image file. This way you can read meta data generated by digital cameras.
In this case the EXIF 'ISOSpeedRatings' key had an array for a value, but a string was expected. So the subsequent trim() call failed.
Patch attached.
Attachments (2)
Change History (11)
#4
@
14 years ago
- Keywords needs-patch added
Apparently some cameras do provide more than one ISO value (HI and LO). In any case I checked the ISO specification (http://www.exif.org/specifications.html) and multiple values are permitted for isoSpeedRatings:
ISOSpeedRatings Indicates the ISO Speed and ISO Latitude of the camera or input device as specified in ISO 12232. Tag = 34855 (8827.H) Type = SHORT Count = Any **This means multiple values acceptable** Default = none
Think this could be done without defining a new function however.
Note: See
TracTickets for help on using
tickets.
Patch for Ticket #16106 - image.diff