php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #69045 document exif supported filetypes
Submitted: 2015-02-12 22:03 UTC Modified: 2017-07-08 11:33 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: php at gigagames-fan dot de Assigned: kalle (profile)
Status: Closed Package: EXIF related
PHP Version: 5.6.5 OS: Arch Linux x64
Private report: No CVE-ID: None
 [2015-02-12 22:03 UTC] php at gigagames-fan dot de
Description:
------------
---
From manual page: http://www.php.net/book.exif
---
Manual states for various exif functions "TIFF or JPEG image", implying only those formats are supported. However at least Canon RAW (CR2) works fine so far, most likely also other formats storing EXIF.

Test script:
---------------
<?php
	var_dump(exif_read_data('test.cr2'));
?>



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-10-05 21:45 UTC] cmb@php.net
-Package: Documentation problem +Package: EXIF related
 [2017-07-07 10:25 UTC] kalle@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: kalle
 [2017-07-08 11:32 UTC] kalle@php.net
Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=342647
Log: Update the exif documentation:
 - Reflect new formats added in 7.2
 - Fixed the example in exif_thumbnail() to reflect a better practice without $_REQUEST
 - Fixed bug #69045 (document exif supported filetypes)
 - Better install instructions and other minor changes here and there
 [2017-07-08 11:33 UTC] kalle@php.net
-Status: Assigned +Status: Closed
 [2017-07-08 11:33 UTC] kalle@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.

I've changed the wording to simply just say "image", as the EXIF extension does not care about what extension the file has, but rather if there is EXIF data in the header of the file.
 [2020-02-07 06:06 UTC] phpdocbot@php.net
Automatic comment on behalf of kalle
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=762fd781b63e37a13eb616602f715898dd237955
Log: Update the exif documentation:  - Reflect new formats added in 7.2  - Fixed the example in exif_thumbnail() to reflect a better practice without $_REQUEST  - Fixed bug #69045 (document exif supported filetypes)  - Better install instructions and other minor changes here and there
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 09:01:28 2024 UTC