Robis Posted April 23, 2004 Author Report Share Posted April 23, 2004 Izdariiju kaa tu teici! Uz 700Kb bildi vinjsh raadiija to pashu iepriekshmineeto erroru, tachu pameegjinot uz 253Kb bildi, vinjsh izmeta shaadu erroru: <br /> <b>Warning</b>: imagejpeg(): Unable to open '/home/virtual/site/var/www/html/pictures/thumbs/pic_11.jpg' for writing in <b>/home/virtual/site/var/www/html/pictures/pict_thumb.php</b> on line <b>44</b><br /> Mazās bildes saglabāšanas problēmas Esmu neizpratnee! ??? Link to comment Share on other sites More sharing options...
Aleksejs Posted April 23, 2004 Report Share Posted April 23, 2004 Nav rakstīšānas tiesību Apache lietotājam... Link to comment Share on other sites More sharing options...
Robis Posted April 23, 2004 Author Report Share Posted April 23, 2004 Uzliku rakstiishanas tiesiibas Apache, palaidu skriptu, norisinaajas Successful, bet bilde no 253Kb paarveertaas uz 13Kb un kvalitaate vienkaarshi drausmiiga, lai gan pie imagejpeg() ir uzlikta kvalitaate uz 100%. Vispaar kraasas gandriiz zudushas... Link to comment Share on other sites More sharing options...
Aleksejs Posted April 23, 2004 Report Share Posted April 23, 2004 Pievērs uzmanību funkcijai ImageCreateTrueColor Link to comment Share on other sites More sharing options...
darklow Posted December 12, 2004 Report Share Posted December 12, 2004 man ir tieshi taapati probleema ar imagecreatfromjpeg un memory erroru, php.ini ir uzlikts: memory_limit = 15M ; Maximum amount of memory a script may consume (15MB) tad es testa peec izveidoju failinju kur ir tikai sekojoshas rindinjas: $img=$PTH.'test.jpg'; $image = imagecreatefromjpeg($img); test.jpg aiznjem ~3 MB palaizham scriptu un sanjemam: Fatal error: Allowed memory size of 15728640 bytes exhausted (tried to allocate 12140 bytes) in test_image_resize.php on line 12 (rindinja kuraa tiek izmantots imagecreatefromjpeg()) secinoshi: nav nekaadu ciklu, liidz imagedestroy nemaz netiekam, jo Fatal error nokillo scriptu, vai kaads var izstaastiit kadelj 3MB failu verot ar imagecreatejpeg(), rada vairaak kaa 15 MB memory vietu??? no ideas Link to comment Share on other sites More sharing options...
darklow Posted December 12, 2004 Report Share Posted December 12, 2004 beigas atradaam, kadelj 3 MB attelam nepietiek ar 16 M atminjas: http://qdig.sourceforge.net/Support/AllowedMemorySize lidz ar to, pec rakstaa mineetas formulas pie mana attela (3035x2048x24bit): 3 x 3035 x 2048 x 24 =18,647,040 bytes = 18,210 MBytes !!! kas paarsniedz 16 M memory atminjas Link to comment Share on other sites More sharing options...
orion Posted December 12, 2004 Report Share Posted December 12, 2004 Pamēģini manu variantu: http://paste.php.lv/1460 Galerijai 1,5MB bildes 5-as pēc kārtas thumbnailjo tā ka prieks! Link to comment Share on other sites More sharing options...
darklow Posted December 12, 2004 Report Share Posted December 12, 2004 2 orion - tas pats errors pie lielaka attela - kaa jau mineeju scripts ir pareizs, un nav starpiiba ir cikls vai nav, bet tikko ir imagecreatefromXXX (jpeg, png, pat imagecreatfromstring() meeginaaju, tam nav starpiibas), pie 1,5 MB vel viss ir ok. risinaajumi: 1) vai nu tas memory_limit jaaliek lielaaks par 16 M, ko ne iipashi gribes dariit admins 2) visdrizak tiks uzlikts un izmantots: http://www.imagemagick.org/ <b>convert</b> pasakums, kas itkaa pat kvalitaates zinjaa ieliek imagecreatefromjpeg un ari performances zinjaa sevi jau ir pieradijis Link to comment Share on other sites More sharing options...
Recommended Posts