Hi,

is anybody here who could answer my question I asked
one week ago?

Thanks

Baghira

baghira schrieb:
> Hi,
>
> if have a Problem with reading Data from a jpeg. I
> have written the following code to check which data
is
> already readable:
>
>       $jpeg = new
PelJpeg($path."images/".$fileName);
>       $pre_exif = $jpeg->getExif();
>       $tiff = $pre_exif->getTiff();
>       $ifd = $tiff->getIfd();
>       $next = true;
>       $num_ifd = 0;
>       while($next)
>       {
>         $subifds = $ifd->getSubIfds();
>         $num_sub = 0;
>         foreach ($subifds as $sub) {
>           $tags = $sub->getValidTags();
>           $num_tag = 0;
>           foreach ($tags as $tag)
>           {
>             print
> $num_ifd.".".$num_sub.".".$num_tag.".
> ".PelTag::getTitle($sub, $tag).":";
>            
>             $entry = $sub->getEntry($tag);
>             if ($entry) {
>               print $entry->getText();
>             }
>             print "<br>";
>             $num_tag++;
>           }
>           $num_sub++;
>         }
>         $num_ifd++;
>         if( $ifd->isLastIfd() ){
>           $next = false;
>         } else {
>           $ifd = $ifd->getNextIfd();
>         }
>       }
>
> I get the following output for one first image:
>
> 0.0.0. Exposure Time:1/500 sec.
> 0.0.1. FNumber:f/3.0
> 0.0.2. Exposure Program:Normal program
> 0.0.3. Spectral Sensitivity:
> 0.0.4. ISO Speed Ratings:
> 0.0.5. OECF:
> 0.0.6. Exif Version:Exif Version 2.21
> 0.0.7. Date and Time (original):2007:10:21 11:45:05
> 0.0.8. Date and Time (digitized):2007:10:21 11:45:05
> 0.0.9. Components Configuration:Y Cb Cr -
> 0.0.10. Compressed Bits per Pixel:
> 0.0.11. Shutter speed:90/10 sec. (APEX: 22)
> 0.0.12. Aperture:f/3.0
> 0.0.13. Brightness:
> 0.0.14. Exposure Bias:0.0
> 0.0.15. Max Aperture Value:32/10
> 0.0.16. Subject Distance:
> 0.0.17. Metering Mode:Pattern
> 0.0.18. Light Source:Unknown
> 0.0.19. Flash:Flash did not fire, auto mode.
> 0.0.20. Focal Length:6.0 mm
> 0.0.21. Maker Note:1644 bytes unknown MakerNote data
> 0.0.22. User Comment:
> 0.0.23. SubSec Time:
> 0.0.24. SubSec Time Original:
> 0.0.25. SubSec Time Digitized:
> 0.0.26. Windows XP Title:
> 0.0.27. Windows XP Comment:
> 0.0.28. Windows XP Author:
> 0.0.29. Windows XP Keywords:
> 0.0.30. Windows XP Subject:
> 0.0.31. FlashPix Version:FlashPix Version 1.0
> 0.0.32. Color Space:sRGB
> 0.0.33. Pixel x-Dimension:1024
> 0.0.34. Pixel y-Dimension:768
> 0.0.35. Related Sound File:
> 0.0.36. Flash Energy:
> 0.0.37. Spatial Frequency Response:
> 0.0.38. Focal Plane x-Resolution:
> 0.0.39. Focal Plane y-Resolution:
> 0.0.40. Focal Plane Resolution Unit:
> 0.0.41. Subject Location:
> 0.0.42. Exposure index:80/1
> 0.0.43. Sensing Method:One-chip color area sensor
> 0.0.44. File Source:DSC
> 0.0.45. Scene Type:Directly photographed
> 0.0.46. CFA Pattern:
> 0.0.47. Custom Rendered:
> 0.0.48. Exposure Mode:
> 0.0.49. White Balance:
> 0.0.50. Digital Zoom Ratio:
> 0.0.51. Focal Length In 35mm Film:
> 0.0.52. Scene Capture Type:
> 0.0.53. Gain Control:
> 0.0.54. Contrast:
> 0.0.55. Saturation:
> 0.0.56. Sharpness:
> 0.0.57. Device Setting Description:
> 0.0.58. Subject Distance Range:
> 0.0.59. Image Unique ID:
> 0.0.60. Interoperability IFD Pointer:
> 0.0.61. Gamma:
>
> So some Information is readable. But the
> WindowsXP-Title isn't, although it is given in the
> file.
>
> Is it a bug or is something wrong with my code?
>
> Thank you
>
> baghira
>
>
>        __________________________________ Ihr erstes
Fernweh? Wo gibt es den schönsten Strand?
www.yahoo.de/clever
>
>
>
-------------------------------------------------------------------------
> SF.Net email is sponsored by: The Future of Linux
Business White Paper
> from Novell.  From the desktop to the data center,
Linux is going
> mainstream.  Let it simplify your IT future.
>
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
> _______________________________________________
> PEL-devel mailing list
> PEL-devel@lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/pel-devel
>


Bis dann

Heike

Meine Homepage:

http://www.informatik.uni-oldenburg.de/~baghira


        __________________________________  Ihr erstes Baby? Holen Sie sich 
Tipps von anderen Eltern.  www.yahoo.de/clever


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
PEL-devel mailing list
PEL-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pel-devel

Reply via email to