#19210 [Opn]: read_exif_data truncates JPEG comments to 198 characters

From: Date: Tue, 03 Sep 2002 16:12:44 +0000
Subject: #19210 [Opn]: read_exif_data truncates JPEG comments to 198 characters
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-18306@lists.php.net to get a copy of this message
ID: 19210 User updated by: roland@astrofoto.org Reported By: roland@astrofoto.org Status: Open Bug Type: *Graphics related Operating System: RedHat 7.2/Linux 2.4.9 PHP Version: 4.1.2 New Comment: I should have posted a small test sample. I'm putting one up on my web site at http://www.astrofoto.org/people/roland/bug.php. The image being probed can be loaded from the URL http://www.astrofoto.org/people/roland/20020716-1.05.jpg Previous Comments: ------------------------------------------------------------------------ [2002-09-03 12:05:51] roland@astrofoto.org I have a JPEG (*not* from a digital camera) to which I have added a comment block using wrjpegcom. rdjepgcom confirms that the comment is correct in the file. The length of the comment is about 345 characters. When I read the comment back from PHP using read_exif_data, the length is truncated at 198 characters. Note that JPEG comment blocks can be up to 64k(!). The comment in question is all text, no ASCII nulls, so I'm assuming this truncation is happening inside PHP. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19210&edit=1

« previous php.bugs (#18306) next »