#!/usr/bin/php Looking for SimpleTest in simpletest/... Looking for
SimpleTest in ../simpletest/... Found SimpleTest version 1.0.1RC1 in
../../simpletest/! All PEL tests Exception 1! Unexpected exception of
type [PelDataWindowOffsetException] with message [Offset -1 not within
[0, 170821]] in [/home/albumes/public_html/pel-0.9.1/PelDataWindow.php
line 243] in testRead in PEL nikon-e950.jpg Tests in
image-tests/nikon-e950.php in Image Tests 1) at
[/home/albumes/public_html/pel-0.9.1/test/image-tests/read-write.php
line 59] in testWriteRead in PEL Byte Read/Write Tests in
image-tests/read-write.php in Image Tests 2) at
[/home/albumes/public_html/pel-0.9.1/test/image-tests/read-write.php
line 60] in testWriteRead in PEL Byte Read/Write Tests in
image-tests/read-write.php in Image Tests 3) Value [NULL] should be type
[PelExif] at
[/home/albumes/public_html/pel-0.9.1/test/image-tests/read-write.php
line 67] in testWriteRead in PEL Byte Read/Write Tests in
image-tests/read-write.php in Image Tests
This is my testing script
<?php
require_once('pel-0.9.1/PelJpeg.php');
$filename = "img/dscf2443.jpg";
$jpeg = new PelJpeg($filename);
$exif = $jpeg->getExif();
$tiff = $exif->getTiff(); // LINE 6
$ifd0 = $tiff->getIfd();
$desc = $ifd0->getEntry(PelTag::IMAGE_DESCRIPTION);
echo 'The description: ' . $desc->getValue(); // LINE 9
$desc->setValue('Edited by.....');
file_put_contents('new-' . $filename, $jpeg->getBytes());
?>
Error msgs varies when $filename changes.... (always jpgs from a Fuji S3 Pro)
PHP Fatal error: Call to a member function getTiff() on a non-object in
/home/domain/public_html/test6.php on line 6
PHP Fatal error: Call to a member function getValue() on a non-object in
/home/domain/public_html/test6.php on line 9
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
PEL-devel mailing list
PEL-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pel-devel