0

Possible Duplicate:
How do I add exif data to an image?

exif_read_data() is for reading exif data, but what function is for embeding exif data?

Community
  • 1
  • 1
Sokol
  • 9
  • 1

3 Answers3

0

Looks like there's no built-in support for that (?). However I found something called phpExifRW which seems to do the job. I haven't tried it.

Grzegorz Oledzki
  • 23,614
  • 16
  • 68
  • 106
0

There's no native means of writing EXIF data (although you can natively write IPTC data via iptcembed which might be sufficient).

However, you might want to take a look at the pel library - it's actively developed and has good examples, etc.

John Parker
  • 54,048
  • 11
  • 129
  • 129
0

I would use Imagick. It's very fast and powerfull and has it's own PHP extension. It has a setImageProperty method.

Example from the docs:

$image = new Imagick();
$image->newImage(300, 200, "black");

$image->setImageProperty('Exif:Make', 'Imagick');
echo $image->getImageProperty('Exif:Make');

PEL seems fine though, just used to do it with Imagick.

DrColossos
  • 12,656
  • 3
  • 46
  • 67