|
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]
|