DevelopPHP
home Forum gear home

Libraries book

HTML Library CSS Library JavaScript Library PHP Library

Videosbook

PHP and MySQL JavaScript HTML and CSS Vector and 3D Flash Actionscript Android Dev Miscellaneous

Resourcesbook

Website Hosting
<iframe width="560" height="315" src="http://www.youtube.com/embed/u_EjG2quNKU" frameborder="0" allowfullscreen></iframe>
You can embed this video on your blog or web page by copying the video embed code above and pasting it into the source code of your page. Adjust the width and height to specify the size you would like it to display.
Thumb Check GD Library Version and Test Usage : Copy Image and Rotate
Embed Source - http://www.youtube.com/watch?v=u_EjG2quNKU
Publish Date - Mar 14, 2011     Author - Adam Khoury
Check GD Library Version and Test Usage : Copy Image and Rotate
Master PHP Image Processing with Adam Khoury in this Video Textbook Series. In this video we learn to write PHP scripts that target GD info array information to see what is installed on our server. We also fire up a few of the functions to test that GD is working.
Lesson Code
<?php
// Display your GD library info
$gdInfoArray gd_info();
$version $gdInfoArray["GD Version"];
echo 
"Your GD version is:".$version;
echo 
"<hr />";
foreach (
$gdInfoArray as $key => $value) { 
   echo 
"$key | $value<br />"
}
?>

<!-- This is the code used when we copied and rotated an image -->

<?php
// Let's target an image, copy it, rotate it, and save it
$img imagecreatefromjpeg("myPic.jpg");
$imgRotated imagerotate($img45, -1);
imagejpeg($imgRotated"myPicRotated.jpg"100);
?>
<img src="myPic.jpg"/><img src="myPicRotated.jpg"/>

Home   •   Terms of Use   •   Developer Forums   •   T-Shirts   •   RSS   •   Classroom Chalkboard   •   Donate   •   Top ↑
Popular In PHP / MySQL E-Commerce Store Production
Social Network Website Building
Image Upload / Photo Processing
CMS Software Programming
Mass Email Systems
Magic XML Data
Search Programming
Popular In JavaScript JSON Programming
Ajax Programming
Animating Elements
WYSIWYG Programming
Date/Time Programming
DOM Scripting
Object Reference
Popular In HTML Canvas Element
New Form Elements
Audio Element
Video Element
Drag and Drop
Event Handling
Element Grouping
Popular In CSS Custom Font Embedding
Dynamic Fit Backgrounds
Theatre Mode
Box Overlays
CSS Level 1 Properties
CSS Level 2 Properties
CSS Level 3 Properties
©2013 DevelopPHP   |   Navigate to related domains HTML5