hi there,
at first, sorry for my bad english. i could better read then write
i have problem with the creation of images in php.
i upload a zip file wich contains jpeg picture. on the server i extract the files contained in the zip file an store it on the server but i need 2 version of these files (the original and a tumbnail). the simple way is to store the files and after that open them and create a tumbnail but i will put this in one step.
i became the file with zip_entry_read and store it with fopen/fputs/fclose ...
that i will is to take the data that i get with "zip_entry_read" and use it with the image-functions.
i try to use it directly like
imagecopyresampled($targetImg, $src, 0, 0, 0, 0, 200,100,$originalWidth , $originalHeight);
but it does not work. after that i try it with
$img = imagecreatefromstring($src);
but it also does not work.
in booth cases $src are the result from "zip_entry_read"
has anybody an idea whats my failure or which function i need to use the result of "zip_entry_read" as an image-resource ???
thx for help