Welcome Guest, Not a member yet? Register   Sign In
EXIF data
#1

[eluser]Ignacio[/eluser]
How can I do for save EXIF data from an image?

It could be really useful using it with:

$data = $this->upload->data();

to:

$exif = $this->upload->exif();

and:

$exif['exif_device_model']; //Return ie: "iPhone"
$exif['exif_device_make']; //Return ie: "Apple"
$exif['exif_profile_name']; //Return ie: "Camera RGB Profile"
...
...
...


Is there something like this? Is correct using EXIF data right this?

I'm trying this stuff using this:

Code:
$exif = exif_read_data($data['full_path'], 0, true);
echo $data['full_path'].":<br />\n";
foreach ($exif as $key => $section) {
    foreach ($section as $name => $val) {
        echo "$key.$name: $val<br />\n";
    }
}

return:

Code:
FILE.FileName: 232205172263e659ddea7119b601c152.jpg
FILE.FileDateTime: 1208193826
FILE.FileSize: 18765
FILE.FileType: 2
FILE.MimeType: image/jpeg
FILE.SectionsFound: ANY_TAG, IFD0, EXIF
COMPUTED.html: width="240" height="180"
COMPUTED.Height: 180
COMPUTED.Width: 240
COMPUTED.IsColor: 1
COMPUTED.ByteOrderMotorola: 1
COMPUTED.ApertureFNumber: f/2.8
IFD0.Make: Apple
IFD0.Model: iPhone
IFD0.Orientation: 1
IFD0.ResolutionUnit: 2
IFD0.DateTime: 2007:12:01 19:20:46
IFD0.Exif_IFD_Pointer: 119
EXIF.FNumber: 14/5
EXIF.DateTimeOriginal: 2007:12:01 19:20:46
EXIF.DateTimeDigitized: 2007:12:01 19:20:46
EXIF.ColorSpace: 1
EXIF.ExifImageWidth: 1280
EXIF.ExifImageLength: 960
EXIF.UndefinedTag:0xA500: 11/5

This is what I want, but I need a CI class to handle all the data. Ideas?

Thanks.


Messages In This Thread
EXIF data - by El Forum - 04-14-2008, 11:22 AM
EXIF data - by El Forum - 04-14-2008, 12:42 PM
EXIF data - by El Forum - 04-14-2008, 01:10 PM
EXIF data - by El Forum - 05-02-2008, 01:34 PM
EXIF data - by El Forum - 05-02-2008, 02:29 PM
EXIF data - by El Forum - 05-03-2008, 11:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB