IPTC data revisited
Sivakatirswami
katir at hindu.org
Thu Jul 19 21:25:18 EDT 2007
Mark Smith wrote:
>
> On 19 Jul 2007, at 23:35, Sivakatirswami wrote:
>
>>
>> Right, i'll look into that again... I also downloaded the spec from
>> adobe: you have
>> to be able to (and know how to) write to any particular image
>> format... it looks
>> like a binary addition...
>
> You can use ImageMagick from the command line (shell).
>
> Getting metadata from images seems to be fairly straightforward. This
> gets all available exif data:
>
> put shell("/opt/local/bin/identify -format %[EXIF:*] ~/Desktop/JB.JPG")
Right, reading is not difficult, in fact a low level read
in Rev will deliver the XMP packet... something like
offset(tJpegdata,"<x:xmp" etc.. gets us the packet (see below)
but writing to the file.. that's the trick...
it's a non-trivial pursuit to be sure.
On the ImageMagick forum it seems the puzzle of
inserting XMP data into a file was still an open question
as of March of 2007...
... tests:
I entered some data in Bridge for JPEG file and opened the jpeg file
in a text fld in Revolution:
viola: there, embedded in all the binary code, in pure, human readable
ASCII is this
little xml packet:
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Public XMP Toolkit Core 3.5">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about=""
xmlns:tiff="http://ns.adobe.com/tiff/1.0/"
xmlns:exif="http://ns.adobe.com/exif/1.0/"
xmlns:xap="http://ns.adobe.com/xap/1.0/"
xmlns:aux="http://ns.adobe.com/exif/1.0/aux/"
xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/"
xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
tiff:Make="NIKON CORPORATION"
tiff:Model="NIKON D50"
tiff:Orientation="1"
tiff:ImageWidth="3008"
tiff:ImageLength="2000"
tiff:PhotometricInterpretation="2"
tiff:SamplesPerPixel="3"
tiff:XResolution="300/1"
tiff:YResolution="300/1"
tiff:ResolutionUnit="2"
exif:ExifVersion="0221"
exif:ExposureTime="1/800"
exif:ShutterSpeedValue="9643856/1000000"
exif:FNumber="4/1"
exif:ApertureValue="4/1"
exif:ExposureProgram="0"
exif:DateTimeOriginal="2007-06-16T05:25:27.00-10:00"
exif:DateTimeDigitized="2007-06-16T05:25:27.00-10:00"
exif:ExposureBiasValue="0/6"
exif:MaxApertureValue="40/10"
exif:MeteringMode="5"
exif:LightSource="0"
exif:FocalLength="550/10"
exif:SensingMethod="2"
exif:FileSource="3"
exif:SceneType="1"
exif:FocalLengthIn35mmFilm="82"
exif:CustomRendered="0"
exif:ExposureMode="0"
exif:WhiteBalance="0"
exif:SceneCaptureType="2"
exif:GainControl="0"
exif:Contrast="1"
exif:Saturation="0"
exif:Sharpness="1"
exif:SubjectDistanceRange="0"
exif:DigitalZoomRatio="1/1"
xap:ModifyDate="2007-06-16T05:25:27.00-10:00"
xap:CreatorTool="Ver.1.00"
xap:MetadataDate="2007-07-19T11:09:51-10:00"
aux:LensInfo="550/10 2000/10 40/10 56/10"
aux:Lens="55.0-200.0 mm f/4.0-5.6"
aux:ImageNumber="2570"
crs:AlreadyApplied="True"
photoshop:ColorMode="3"
photoshop:ICCProfile="sRGB IEC61966-2.1">
<tiff:BitsPerSample>
<rdf:Seq>
<rdf:li>8</rdf:li>
<rdf:li>8</rdf:li>
<rdf:li>8</rdf:li>
</rdf:Seq>
</tiff:BitsPerSample>
<exif:ISOSpeedRatings>
<rdf:Seq>
<rdf:li>200</rdf:li>
</rdf:Seq>
</exif:ISOSpeedRatings>
<exif:Flash
exif:Fired="False"
exif:Return="0"
exif:Mode="2"
exif:Function="False"
exif:RedEyeMode="False"/>
<dc:description>
<rdf:Alt>
<rdf:li xml:lang="x-default">Swadhyaya Youth parade in Washington
with banners</rdf:li>
</rdf:Alt>
</dc:description>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>
<?xpacket end="w"?>
> Best,
>
> Mark
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
--
Om shanti
(In Peace)
Sivakatirswami
www.himalayanacademy.com
Get Hinduism Today Digital Edition. It's Free!
http://www.hinduismtoday.com/digital/
More information about the use-livecode
mailing list