SkyD Posted March 23, 2006 Author Report Share Posted March 23, 2006 Nu samazinot man tā bilde galīgi izkjēmojas. Kā pareizi samazināt?!! Link to comment Share on other sites More sharing options...
Blitz Posted March 23, 2006 Report Share Posted March 23, 2006 list($width, $height) = getimagesize("$dir"."/"."$file"); $proporcija=$width/800; $new_width=800; $new_height=$height/$proporcija; sitaa resaizo bildes proporcionali... Link to comment Share on other sites More sharing options...
SkyD Posted March 23, 2006 Author Report Share Posted March 23, 2006 okai. Link to comment Share on other sites More sharing options...
SkyD Posted March 24, 2006 Author Report Share Posted March 24, 2006 Visu laiku čakarējos ar to img resize. Tad, kad kaartiigi zinaashu, kaa vinjam ir pareizi jasamazinaas, tad man viss aizies. Plzz apskataties, un pasakat, kas pa vainu.? Viņam izmērs nesamazinās, bet paliek tāds pats. <?php error_reporting(E_ALL); $filename = "tgal/img_1.jpg"; list($width, $height) = getimagesize($filename); $proporcija=$width/400; $new_width=400; $new_height=$height/$proporcija; $image_p = imagecreatetruecolor($width, $height); $image = imagecreatefromjpeg($filename); imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $new_width, $new_height); imagejpeg($image_p); ?> Link to comment Share on other sites More sharing options...
Blitz Posted March 27, 2006 Report Share Posted March 27, 2006 (edited) $image_p = imagecreatetruecolor($width, $height); seit tu noradi vecaas dimensijas- vajag resaizotaas (new_width, ....) un imagecopyresampled($image_p, $image, 0, 0, 0, 0, $new_width, $new_height, $width, $height); jaraksta sitaa... tai vietaa lai visu laiku cakaretos pietiek atvert 1x php net un apskatities vai visi argumenti sarakstiti pareizi.... :) +++ btw... ja tu gribi to resaizoto bildi vienkarsi izmest uz ekrana tad sitaa padarisana ir diezgan lena Edited March 27, 2006 by Blitz Link to comment Share on other sites More sharing options...
SkyD Posted March 28, 2006 Author Report Share Posted March 28, 2006 Hmm.. Jautaajums taads. Ja uzlieku linku ar ?valoda=lv, un peec tam eju uz citu linku piem. ?poga=1, vajag, lai "valoda=lv" velkaas liidzi un buutu ?valoda=lv&poga=1 Link to comment Share on other sites More sharing options...
v3rb0 Posted March 28, 2006 Report Share Posted March 28, 2006 jā, tieši tā. (bet varbūt pamēģināt vai tā darbojas ir īsāk nekā uzrakstīt jautājumu? :) Link to comment Share on other sites More sharing options...
SkyD Posted March 28, 2006 Author Report Share Posted March 28, 2006 (edited) Nu??!!!:DD Es dariju shitā: <a href="?valoda='.$_GET['valoda'].'&poga=1">Poga [1]</a> Bet taa kautkaa nav eerti... :DD~~ Bet ko darīt, ja ir uzlikts ?valoda=lv&poga=1&kategorija=php Un vajag nomainiit valodu uz ?valoda=en .. Tad pazudiis &poga=1&kategorija=php un buus suudi lieli.. ?!?! Edited March 28, 2006 by SkyD Link to comment Share on other sites More sharing options...
bubu Posted March 28, 2006 Report Share Posted March 28, 2006 SkyD: loģiskā domāšana nestrādā? Vajag izvlikt tos citus GET parametrus vispirms, un veidotjot jauno urli, pielikt tos galā. Un pameklē ar searchu. Dažas dienas atpakaļ tieši par šo pašu prasīja. Link to comment Share on other sites More sharing options...
Recommended Posts