Armenian Knowledge Base  

Go Back   Armenian Knowledge Base > Technical sections > Webmaster Zone > Web Development
Register

Reply
 
LinkBack Thread Tools
Old 10.10.2006, 08:54   #1
Магистр
 
Join Date: 02 2002
Location: Am
Posts: 952
Downloads: 0
Uploads: 0
Reputation: 26 | 4
Default PHP/ Ka4estvo photo posle imagejpeg

Zada4a v sleduyushem..
generiruyu photo (proizvoju nakladku odnogo izobrajeniya na drugoe ili umen'shayu v razmerax) posle vivoda v brouzere ka4estva kartinki jelaet bit' ludshe..

dlya vivoda ispol'zuyu imagejpeg function -
(vat takoj code: )

PHP Code:

  $img 
imagecreatefrompng($overfile);
  
$srcimg imagecreatefromjpeg($file);
  if (
$srcimg)
  {
    
imagecolortransparent ($img ,imagecolorallocate($castimg000));
    if( 
imagecopymerge ($srcimg$castimg0ImageSY($srcimg)-ImageSY($castimg), 0,0,  ImageSX($castimg),ImageSY($castimg), 30)){

  
    
header("Content-type: " .image_type_to_mime_type(IMAGETYPE_JPEG));
    
imagejpeg($srcimg);

        }
  } 


naskol'ko ya ponimayu ka4estvo avtomati4eski vistavlyaetca v 50% mojno kak to ulud****? polu4it' bolee ka4estvenuyu kartinku.?
__________________
talent agency casting.am
Center of Internet Projects Support http://www.online.am
Armenian newspapers digest http://www.armpress.com
_ _ _ _ _ _ _
Bud'te proshe i narod k vam potyanetca
Reply With Quote
Old 10.10.2006, 09:02   #2
...overwined...
 
noone's Avatar
 
Join Date: 03 2003
Location: ...tortuga...
Posts: 3,429
Downloads: 3
Uploads: 0
Reputation: 158 | 3
Default

из мануала:
bool imagejpeg ( resource image [, string filename [, int quality]] )
Reply With Quote
Old 10.10.2006, 09:04   #3
...overwined...
 
noone's Avatar
 
Join Date: 03 2003
Location: ...tortuga...
Posts: 3,429
Downloads: 3
Uploads: 0
Reputation: 158 | 3
Default

http://am.php.net/imagejpeg
Reply With Quote
Old 10.10.2006, 09:28   #4
Магистр
 
Join Date: 02 2002
Location: Am
Posts: 952
Downloads: 0
Uploads: 0
Reputation: 26 | 4
Default

Liqe Mersiner!!!!!
stacvec..
nenc anjatvacej vor 4ej nkatel et opcianere...
Reply With Quote
Sponsored Links
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 23:24.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.