List Info

Thread: adding IFD GPS




adding IFD GPS
user name
2006-02-07 21:06:35
hi,

i am new to this list and rather new to PHP too so i am a
little bit 
lost in the techie docs...

i found edit-description.php in the examples folder and work
with that 
one in order to get/add EXIF GPS information. getting and
setting of 
already existing GPS info works fine so far with

$gps = $ifd0->getSubIfd(PelIfd::GPS);
$lat = $gps->getEntry(PelTag::GPS_LATITUDE);
$lat->setValue(array(47,1),array(48,1),array(1234,100));

(btw. it took long for me to figure out that the three
arrays are not 
written as a 2-dimensional array whereas it is stored as
such). anyway, 
the problem i have is with the rather classical case of no
GPS section, 
having $ifd0->getSubIfd(PelIfd::GPS) == null. i was
hoping to create one 
with

$gps = new PelIfd();
$ifd0->addSubIfd($gps);
$lat = new PelEntryRational(PelTag::GPS_LATITUDE, 
array(11,1),array(22,1),array(33,1));
$gps->addEntry($lat);

but that doesn't work. what command am i missing here?

thank you for a helping hand and thanks for the API too!

andré


-- 
____________________________________________________________
_______
andre m. winter,
cartography for internet and multimedia applications
a6091 goetzens, tyrol, austria
tel.: ++43.5234.32732
email: <wintercarto.net>

<http://www.vectoreal.co
m/>          SVG consulting and development
<http://www.carto.net/>          online cartography focusing on SVG
<http://www.carto.at/>
    print and online touristic map solutions


-- 
____________________________________________________________
_______
andre m. winter,
 cartography for internet and multimedia applications
 a6091 goetzens, tyrol, austria
 tel.: ++43.5234.32732
 email: <wintercarto.net>

<http://www.vectoreal.co
m/>          SVG consulting and development
<http://www.carto.net/>          online cartography focusing on SVG
<http://www.carto.at/>
    print and online touristic map solutions



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep
through log files
for problems?  Stop!  Download the new AJAX search engine
that makes
searching your log files as easy as surfing the  web. 
DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
PEL-devel mailing list
PEL-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pel-devel

adding IFD GPS
user name
2006-02-07 21:16:06
okay,

answering my own question,the problem was the missing
PelIfd::GPS while 
creating the GPS IFD:


$gps = new PelIfd(PelIfd::GPS);
$ifd0->addSubIfd($gps);
$lat = new PelEntryRational(PelTag::GPS_LATITUDE, 
array(11,1),array(22,1),array(33,1));
$gps->addEntry($lat);


andré



André M. Winter - Carto.net a écrit :

> hi,
>
> i am new to this list and rather new to PHP too so i am
a little bit 
> lost in the techie docs...
>
> i found edit-description.php in the examples folder and
work with that 
> one in order to get/add EXIF GPS information. getting
and setting of 
> already existing GPS info works fine so far with
>
> $gps = $ifd0->getSubIfd(PelIfd::GPS);
> $lat = $gps->getEntry(PelTag::GPS_LATITUDE);
>
$lat->setValue(array(47,1),array(48,1),array(1234,100));
>
> (btw. it took long for me to figure out that the three
arrays are not 
> written as a 2-dimensional array whereas it is stored
as such). 
> anyway, the problem i have is with the rather classical
case of no GPS 
> section, having $ifd0->getSubIfd(PelIfd::GPS) ==
null. i was hoping to 
> create one with
>
> $gps = new PelIfd();
> $ifd0->addSubIfd($gps);
> $lat = new PelEntryRational(PelTag::GPS_LATITUDE, 
> array(11,1),array(22,1),array(33,1));
> $gps->addEntry($lat);
>
> but that doesn't work. what command am i missing here?
>
> thank you for a helping hand and thanks for the API
too!
>
> andré
>
>


-- 
____________________________________________________________
_______
andre m. winter,
 cartography for internet and multimedia applications
 a6091 goetzens, tyrol, austria
 tel.: ++43.5234.32732
 email: <wintercarto.net>

<http://www.vectoreal.co
m/>          SVG consulting and development
<http://www.carto.net/>          online cartography focusing on SVG
<http://www.carto.at/>
    print and online touristic map solutions



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep
through log files
for problems?  Stop!  Download the new AJAX search engine
that makes
searching your log files as easy as surfing the  web. 
DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
PEL-devel mailing list
PEL-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pel-devel

PHP image copy/resize WITH exif info
user name
2006-02-09 10:57:45
hi,

this is only a PEL related question.

i am editing exif data from uploaded images and i am
generating 
thumbnails and other sizes form that same images with
functions relying 
on imagecopyresampled(). the pity with that is that it
ignores *all* 
header info (see 
<http://www.geotrace.net/pix/a666/06_bremga
rten_railway_bridge.jpeg>) 
for an example). i know i could use PEL to tag all those
images again, 
but aren't there PHP-bases functions that include image
headers on 
resize/resample?

thanks,
andré

-- 
____________________________________________________________
_______
andre m. winter,
  cartography for internet and multimedia applications
  schiessstand 4/1, a6091 goetzens, tyrol, austria
  tel.: ++43.5234.32732
  email: <wintercarto.net>

<http://www.vectoreal.co
m/>          SVG consulting and development
<http://www.carto.net/>          online cartography focusing on SVG
<http://www.carto.at/>
    print and online touristic map solutions 




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep
through log files
for problems?  Stop!  Download the new AJAX search engine
that makes
searching your log files as easy as surfing the  web. 
DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
PEL-devel mailing list
PEL-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pel-devel

PelEntryTime unix time vs. ascii
user name
2006-02-09 16:06:20
hi,

i am wondering why PEL makes use of unix time stamps (only?)
for time 
related exif fields. using classical conversion methods
limits 
(depending on the OS) input to a specific year range (eg.
1970-2036) 
whereas pure ascii (yyyy.mm-dd hh:mm:ss) would allow a
broader range. 
(btw the specific fields in the exif spec are ascii, 20
chars). is there 
a way to do

new PelEntryAscii(PelTag:ATE_TIME
_ORIGINAL,$myDateTimeOriginal);

?

andré


-- 
____________________________________________________________
_______
andre m. winter,
  cartography for internet and multimedia applications
  schiessstand 4/1, a6091 goetzens, tyrol, austria
  tel.: ++43.5234.32732
  email: <wintercarto.net>

<http://www.vectoreal.co
m/>          SVG consulting and development
<http://www.carto.net/>          online cartography focusing on SVG
<http://www.carto.at/>
    print and online touristic map solutions 




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep
through log files
for problems?  Stop!  Download the new AJAX search engine
that makes
searching your log files as easy as surfing the  web. 
DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
PEL-devel mailing list
PEL-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pel-devel

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )