PHP Image Manipulation
Why would you want to mess with images in code?
Store uploads photos – dynamically resized by system so consistent
Display Cropped Version as Profile Pic
Add text over images as watermark, create thumbnails
Create Image Files Create a blank canvas Draw: Lines Shapes Text Set colors Save it as image file
Step 1: Create a canvas
Allocate Colors RGB Values can be Integers (0-255) Or can be Hex values (stick 0x in front of value)
Draw, Save, & Clean Up Default background color is black
Save as Different File Types
Drawing Options
More Drawing Options Additional Functions: http://php.net/manual/en/book.image.php
Working With Existing Graphic
Get Width and Height of Pic
Create Thumbnail Version