AKB Forums

Go Back   AKB Forums > Technical sections > Languages, Compilers and Interpreters > Web Development
Home Register Blogs FAQ Members List Calendar Downloads Arcade Mark Forums Read

Web Development Java/PHP/Perl/ASP and more

Troubles when posting message? Click here! :: Проблемы с отправлением сообщения? Нажмите сюда!

Reply
 
LinkBack Thread Tools Display Modes
Old Oct 10, 2006, 07:54   #1
Кандидат
 
Join Date: Feb 2002
Location: Am
Posts: 1,035
Rep Power: 7
Reputation: 30
Send a message via Skype™ to Arik
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
Arik is offline   Reply With Quote Quote selected
Old Oct 10, 2006, 08:02   #2
...overwined...
 
noone's Avatar
 
Join Date: Mar 2003
Location: ...tortuga...
Posts: 3,395
Rep Power: 6
Reputation: 143
из мануала:
bool imagejpeg ( resource image [, string filename [, int quality]] )
__________________
...let's be gods... let's by ugly...
noone is offline   Reply With Quote Quote selected
Old Oct 10, 2006, 08:04   #3
...overwined...
 
noone's Avatar
 
Join Date: Mar 2003
Location: ...tortuga...
Posts: 3,395
Rep Power: 6
Reputation: 143
http://am.php.net/imagejpeg
__________________
...let's be gods... let's by ugly...
noone is offline   Reply With Quote Quote selected
Old Oct 10, 2006, 08:28   #4
Кандидат
 
Join Date: Feb 2002
Location: Am
Posts: 1,035
Rep Power: 7
Reputation: 30
Send a message via Skype™ to Arik
Liqe Mersiner!!!!!
stacvec..
nenc anjatvacej vor 4ej nkatel et opcianere...
__________________
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
Arik is offline   Reply With Quote Quote selected
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP -> Perl yegdav Web Development 9 Nov 25, 2005 19:17
PHP 4.4.0 Problem... Mesrop Languages, Compilers and Interpreters 24 Nov 9, 2005 09:37
PHP against ASP acid Web Development 1 Aug 6, 2004 21:30
PHP remote vulnerabilities VX Software Security 0 Mar 4, 2002 19:20


All times are GMT. The time now is 01:31.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
This board was founded on September 29, 2001
Powered by Viper Internet

Affordable Web Hosting | ParevNet

Buy text link