| | |
problem with gd
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
hi all
i problem rotate image (png)
code :
i problem rotate image (png)
code :
PHP Syntax (Toggle Plain Text)
$myimage=imagecreatefromjpeg('test.jpg'); $mypng=imagecreatefrompng('opera.png'); $sizepng= getimagesize('opera.png'); $jpgwidth=imagesx($myimage); $jpghieght=imagesy($myimage); $pngwidth=imagesx($mypng); $pnghieght=imagesy($mypng); $pngwidth1=$sizepng[0] / 10; $pnghieght1=$sizepng[1] / 10; imagerotate(mypng,50,1); imagecopyresized($myimage,$mypng,0,0,0,0,$pngwidth1,$pnghieght1,$sizepng[0],$sizepng[1]); header("Contents-type: image/jpeg"); imagejpeg($myimage); imagedestroy($myimage); imagedestroy ($mypng);
•
•
•
•
....
PHP Syntax (Toggle Plain Text)
imagerotate(mypng,50,1); imagecopyresized($myimage,$mypng,0,0,0,0,$pngwidth1,$pnghieght1,$sizepng[0],$sizepng[1]); header("Contents-type: image/jpeg"); imagejpeg($myimage); imagedestroy($myimage); imagedestroy ($mypng);
" Of all the things I've lost,
I miss my mind the most...."
Mark Twain
I miss my mind the most...."
Mark Twain
![]() |
Similar Threads
- Problem with Windows Update and WinXP (Web Browsers)
- Installing Windows 98 On VMware. Floppy problem (Windows 95 / 98 / Me)
- Windows XP keeps restarting since a new video card (Windows NT / 2000 / XP)
- Redhat Linux 6.2 - ipop3d problem? (*nix Software)
- Problem with T720 (Cellphones, PDAs and Handheld Devices)
- Connection Problems (Networking Hardware Configuration)
- Encoding (Unicode) problem in IE 6.0 (Web Browsers)
- .htaccess mod_rewrite problem (Linux Servers and Apache)
- Javascript/HTML problem!!! (JavaScript / DHTML / AJAX)
Other Threads in the PHP Forum
- Previous Thread: Why is PHP good for making a website?
- Next Thread: Is Online chatting done with php?
| Thread Tools | Search this Thread |
advanced ajax apache api array basics beginner binary broken cakephp check checkbox class cms code combobox cookies cron curl database date datepart display dynamic echo email error file files folder form forms function functions google head href htaccess html image include includingmysecondfileinthechain insert integration ip java javascript job joomla js limit link login mail menu mlm multiple mysql oop parse password paypal pdf php problem procedure query radio random recursion regex remote script search server sessions smarty smash sms soap source space sql stored syntax system table traffic tutorial unicode up-to-date update upload url validator variable video web xml youtube





