archux Posted March 8, 2007 Report Share Posted March 8, 2007 Nu ta esmu sastapies ar thumb izveidi... Man ir ta, ka failu ielade vis ir ok, bet kaa, lai es tam failam uztaisu thumb, piemeram izmeros 150 x 150 ??? Link to comment Share on other sites More sharing options...
blackhalt Posted March 8, 2007 Report Share Posted March 8, 2007 Samazini ar http://lv.php.net/manual/en/function.imagecopyresampled.php vai http://lv.php.net/manual/en/function.imagecopyresized.php Link to comment Share on other sites More sharing options...
rpr Posted March 8, 2007 Report Share Posted March 8, 2007 (edited) iesaku labaak izmantot image magic (im) imagick_scale() im buus labaaka kvalitaate un vairaak iespeeju. saakumaa varbuut liekas, ka tur taas daudzaas funkcijas nav vajadziigas, bet beigaas izraadiisies, ka im ir gan eertaaks, gan kvalitatiivaaks, gan ar visaadaam noderiigaam fiichaam. Edited March 8, 2007 by rpr Link to comment Share on other sites More sharing options...
archux Posted March 8, 2007 Author Report Share Posted March 8, 2007 Bet ar to resampled tak nebuus failu!!! A man vajag pie upload, lai izveidojaas arii mazaas thumiņas... Link to comment Share on other sites More sharing options...
archux Posted March 8, 2007 Author Report Share Posted March 8, 2007 atkal viss kaartiibaa atkodu pats :) Link to comment Share on other sites More sharing options...
Paulinjsh Posted March 9, 2007 Report Share Posted March 9, 2007 Lietojam gatavu klasi http://phpthumb.sourceforge.net/ Link to comment Share on other sites More sharing options...
archux Posted March 9, 2007 Author Report Share Posted March 9, 2007 hmm man viens jautaajums: Kaa vareetu izdariit, lai man bildes platumu liktu 150px a garumu vinjsh aprekinatu izejot no lielas bildes, lai saglabatu proporcijas Link to comment Share on other sites More sharing options...
andrisp Posted March 9, 2007 Report Share Posted March 9, 2007 http://lv.php.net/imagecopyresampled piemēros apskaties. Link to comment Share on other sites More sharing options...
archux Posted March 9, 2007 Author Report Share Posted March 9, 2007 nu ja! es jau līdzīgu, ka shis izmantoju, bet tu saproti, ka man vinjsh create jaunu failu, nevis kaut kaa tur lapa parada. nu tad pasakiet ka, lai izdaro sho? rinda ir shada $new_width = $width * $percent; bet vajag $new_width = $x / $width * $percent; Shita vinjsh nestradas, ta nevar! A kaa jadara, lai vinjsh stradatu? Link to comment Share on other sites More sharing options...
Paulinjsh Posted March 9, 2007 Report Share Posted March 9, 2007 iekavas saliec, kur tev vajaga Link to comment Share on other sites More sharing options...
archux Posted March 10, 2007 Author Report Share Posted March 10, 2007 uztaisiiju ar * $imgratio :) Link to comment Share on other sites More sharing options...
Recommended Posts