Bugs item #1730993, was opened at 2007-06-04 22:26
Message generated for change (Comment added) made by mgeisler
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=650322&aid=1730993&group_id=108380

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: Parsing
>Group: PEL Version 0.9
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: jackchen (jackiechen858)
Assigned to: Nobody/Anonymous (nobody)
>Summary: Fatal error when handling Exif

Initial Comment:

Hi,

I am using the following code to add exif data on a image:

         require_once('PelJpeg.php');
         $jpeg = new PelJpeg($tmpfile);
         $exif = $jpeg->getExif();
         if ( $exif != null )
         {
            $jpeg1 = new PelJpeg($bigfile);
            $jpeg1->setExif( $exif);
            file_put_contents($bigfile, $jpeg1->getBytes());
         }

It works for most images, but when I try to load exif data from the attached 
image:


the Pel library threw out a fatal error:

br />
<b>Fatal error</b>:  Uncaught exception 'PelDataWindowWindowException' with 
message 'Window [1002, 712] does not fit in window [0, 712]' in 
/websites/docs/newtest/php_inc/PelDataWindow.php:175
Stack trace:
#0 /websites/docs/newtest/php_inc/PelDataWindow.php(222): 
PelDataWindow->setWindowStart(1002)
#1 /websites/docs/newtest/php_inc/PelIfd.php(530): 
PelDataWindow->getClone(1002, -290)
#2 /websites/docs/newtest/php_inc/PelIfd.php(248): 
PelIfd->safeSetThumbnail(Object(PelDataWindow), 1002, 14812)
#3 /websites/docs/newtest/php_inc/PelTiff.php(164): 
PelIfd->load(Object(PelDataWindow), 8)
#4 /websites/docs/newtest/php_inc/PelExif.php(121): 
PelTiff->load(Object(PelDataWindow))
#5 /websites/docs/newtest/php_inc/PelJpeg.php(244): 
PelExif->load(Object(PelDataWindow))
#6 /websites/docs/newtest/php_inc/PelJpeg.php(315): 
PelJpeg->load(Object(PelDataWindow))
#7 /websites/docs/newtest/php_inc/PelJpeg.php(163): P in 
<b>/websites/docs/newtest/php_inc/PelDataWindow.php</b> on line <b>175</b><br />
~

----------------------------------------------------------------------

>Comment By: Martin Geisler (mgeisler)
Date: 2007-10-22 08:03

Message:
Logged In: YES 
user_id=1264592
Originator: NO

I have not yet tried your test image with PEL, but please tell me: does
the image work with other Exif readers? That is always nice to know before
starting to debug PEL... :-)

----------------------------------------------------------------------

Comment By: jackchen (jackiechen858)
Date: 2007-06-04 22:27

Message:
Logged In: YES 
user_id=1808100
Originator: YES

forgot to mention I amd using pel-0.9.1 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=650322&aid=1730993&group_id=108380

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
PEL-devel mailing list
PEL-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pel-devel

Reply via email to