Toms Posted January 4, 2006 Author Report Posted January 4, 2006 (edited) man toch nepaliidz. meegjinaaji ar tiem manis dotajiem bilzhu failiem? Varbuut man kkas ne taa... P.S. kaa lai nosaka vai taam bildeem vajadziiga speciaala apstraade? "Labajaam" JPEG bildeem negribas laist shito virsuu. Tas aiznjem laiku.. Edited January 4, 2006 by Toms
Delfins Posted January 4, 2006 Report Posted January 4, 2006 Es tev saku,... man viss iet.. ar TAVĀM bildēm
v3rb0 Posted January 4, 2006 Report Posted January 4, 2006 $r = imagecreatefromjpeg() // returns an empty string on failure if ($r == '') { // nelaba bilde. }
Toms Posted January 4, 2006 Author Report Posted January 4, 2006 kkas nav man pa vagu. Nevari nodemonstreet kaa tu to bildi apstraadaa?
Delfins Posted January 4, 2006 Report Posted January 4, 2006 <?php error_reporting( 32 ); header( 'Content-Type: image/jpeg' ); $imgPath = 'att.jpg'; // Atdod atpakaļ GD_ImageResource function imageCreateFromJpegEx($file) { $data = file_get_contents($file); $im = @imagecreatefromstring($data); $i = 0; while (!$im) { $data = substr_replace($data, "", -3, -2); $im = @imagecreatefromstring($data); } return $im; } $im = imageCreateFromJpegEx($imgPath); imagejpeg( $im ); ?>
Toms Posted January 4, 2006 Author Report Posted January 4, 2006 Stulbu kjuudu biju pieljaavis. Tagad viss straadaa pateicoties Delfins!
Recommended Posts