Bugs item #1730993, was opened at 2007-06-04 20:26 Message generated for change (Tracker Item Submitted) made by Item Submitter 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: None Group: None 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 /> ~ ---------------------------------------------------------------------- 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 DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ PEL-devel mailing list PEL-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pel-devel