Reply to Re: EXIF I have a problem

Your name:

Reply:


Posted by Iv�n S�nchez Ortega on 05/05/07 12:39

Mohawk Mawk wrote:

> imagejpeg(imagecreatefromstring($string),'temp.jpg');
> EXIFALL('temp.jpg');
> unlink ('temp.jpg');
>
> witch creates a temporary.jpg reads it and then deletes it.
> but the function imagejpeg() replaces the important meta data from my
> original image that i want to read.

Try file_put_contents($string,'temp.jpg') instead of
imagecreatejpeg(imagecreatefromstring()).

Remember to use some kind of lock on your temporary files, or give them
random names, to avoid concurrency issues.

Hope that helps,
--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

Q: How do you shoot a blue elephant?
A: With a blue-elephant gun.

Q: How do you shoot a pink elephant?
A: Twist its trunk until it turns blue, then shoot it with
a blue-elephant gun.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация