Hi, I'm developer of the http://www.half-lime.com and I'm looking for a new php/exif library to use instead of old one (not supported anymore).
When I'm trying to use PEL it gives me an exception on one of my test jpegs. The code is: $jpeg = new PelJpeg($path); $exif = $jpeg->getExif(); the file is at http://www.half-lime.com/flash/162810143445e575525f63d.jpg and it is valid jpeg (I can open it in Photoshop and get EXIF there) the exception is: Fatal error: Uncaught exception 'PelDataWindowOffsetException' with message 'Offset -828 not within [0, 843]' in C:\NET\Fund\HL\class\pel-0.9.1\PelDataWindow.php:243 Stack trace: #0 C:\NET\Fund\HL\class\pel-0.9.1\PelDataWindow.php(401): PelDataWindow->validateOffset(-828) #1 C:\NET\Fund\HL\class\pel-0.9.1\PelIfd.php(296): PelDataWindow->getLong(-828) #2 C:\NET\Fund\HL\class\pel-0.9.1\PelIfd.php(311): PelIfd->load(Object(PelDataWindow), 10) #3 C:\NET\Fund\HL\class\pel-0.9.1\PelIfd.php(240): PelIfd->load(Object(PelDataWindow), 214) #4 C:\NET\Fund\HL\class\pel-0.9.1\PelTiff.php(164): PelIfd->load(Object(PelDataWindow), 8) #5 C:\NET\Fund\HL\class\pel-0.9.1\PelExif.php(121): PelTiff->load(Object(PelDataWindow)) #6 C:\NET\Fund\HL\class\pel-0.9.1\PelJpeg.php(244): PelExif->load(Object(PelDataWindow)) #7 C:\NET\Fund\HL\class\pel-0.9.1\PelJpeg.php(315): PelJpeg->load(Object(PelDataWindow)) #8 C:\NET\Fund\HL\class\pel-0.9.1\PelJpeg.php(163): PelJpeg->loadFile('C:\photos\amist...') #9 C:\NET\Fund\HL\class\image.class.php(805): PelJp in C:\NET\Fund\HL\class\pel-0.9.1\PelDataWindow.php on line 243 Any solutions/fixes? I've started to use PEL library on half-lime.com. The code switches to the old exif library, if PEL raises exception. Thanks, Sasha Cooper HALF-LIME Inc. http://www.half-lime.com ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ PEL-devel mailing list PEL-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pel-devel