php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #34622 Add image functions to support editing/creating "comments"
Submitted: 2005-09-24 02:21 UTC Modified: 2022-07-11 13:20 UTC
Votes:7
Avg. Score:3.1 ± 1.1
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:1 (50.0%)
From: smc+phpbugs at dogphilosophy dot net Assigned:
Status: Suspended Package: *Graphics related
PHP Version: Next Minor Version OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
2 + 2 = ?
Subscribe to this entry?

 
 [2005-09-24 02:21 UTC] smc+phpbugs at dogphilosophy dot net
Description:
------------
Perhaps more of a "Bundled GD" issue that an PHP issue 
directly - I'd love to have support for reading and 
writing "comments" from images (TEXT records in PNG, 
comments in JPEG).  EXIF support only covers reading 
information, not creating or editing records for images. 
 
Either ability to read and write 
"comments" (imagewritepngtext($image)?  
imagewritejpegcomment($image)?) or even just ability to 
create and write EXIF data in the EXIF functions would be 
nice. 

Reproduce code:
---------------
(N/A)

Expected result:
----------------
Ability to generate (for example) geotag information 
for .jpeg images, or for PNG-format map images generated 
in PHP. 

Actual result:
--------------
(N/A - feature request for new functions) 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-30 23:09 UTC] cmb@php.net
-Package: Feature/Change Request +Package: EXIF related
 [2019-10-18 11:44 UTC] girgias@php.net
-Operating System: Linux (any) +Operating System: Linux -PHP Version: 5.1.0RC1 +PHP Version: Next Minor Version -Assigned To: +Assigned To: kalle
 [2019-10-18 11:44 UTC] girgias@php.net
Assigning to kalle for review as he's the EXIF maintainer.
 [2022-07-10 06:27 UTC] kalle@php.net
-Status: Assigned +Status: Open -Assigned To: kalle +Assigned To:
 [2022-07-11 13:20 UTC] cmb@php.net
-Status: Open +Status: Suspended -Package: EXIF related +Package: *Graphics related
 [2022-07-11 13:20 UTC] cmb@php.net
libgd has still no support for image meta data whatsoever, so
adding this functionality to the GD extension doesn't make sense.
Instead this should be added upstream[1] first, and then we could
add wrappers for that.

Adding write support for EXIF might make sense, but it is
certainly a lot of work, and I'm not convinced that this isn't
better be done in userland, and apparently there are some packages
already available[2].  But frankly, I'm not even sure that this
feature request is about EXIF; there are several competing and
partially overlapping "standards" for adding meta information to
images.

Anyhow, if anybody is still interested in this, please pursue the
RFC process[3].  For the time being, I'm suspending this ticket.

[1] <https://github.com/libgd/libgd>
[2] <https://packagist.org/?query=exif>
[3] <https://wiki.php.net/rfc/howto>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 12:01:31 2024 UTC