 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
IBM developerWorks: Getting Graphic with PHP
by Chris Cornutt July 03, 2008 @ 10:20:00
The IBM developerWorks site has a new tutorial posted (registration/login required) talking about image creating in PHP using the GD library.
The purpose of this tutorial is to show you how to get started with the GD library and to provide a variety of techniques you can apply to your Web-page coding. The tutorial doesn't cover every GD function, but it teaches you the basics. The Resources section provides Web sites where you can learn more about using the GD library.
They go through the creation of sample images, working with gradients and lines, adding text, saving the image data out to a file and how to work with existing graphics to modify them.
voice your opinion now!
tutorial graphic gd image gradient text modify lines
DevX.com: Add the Graphics Power of SVG to PHP
by Chris Cornutt February 26, 2008 @ 10:44:00
In this DevX tutorial, Octavia Anghel shows how use PHP to create images based on the SVG libraries available to any browser.
Scalable Vector Graphics (SVG) is an XML specification for producing vector-based graphic content that you can create, modify, and manipulate dynamically from programming languages. Here, you'll explore the most important techniques and libraries for integrating SVG with PHP to create diverse graphic content'"from simple shapes to complex graphs.
They show a few different ways to get the job done including a straight 'echo' call with the output, sending a converted SVG document over with a PHP header or including another (or multiple) SVG documents into another and outputting them. They also talk about tools like the phpHtmlLib library, the PEAR::XML_SVG package and the PEAR::Image_Canvas package.
voice your opinion now!
svg graphic tutorial echo output include dynamic
DevShed: Creating Image Streams from Existing Graphics with the GD Library in PHP
by Chris Cornutt August 20, 2007 @ 11:04:00
DevShed continues its look at using the GD graphics library in PHP with the second part of the tutorial series, this time focusing on the creation of images from existing images (and their streams).
As I stated at the end of the previous article of this series, the GD extension comes packaged with many other useful functions, which indeed deserve a close and detailed look. Thus, in this second tutorial I'll show you how to create different types of image streams from existing graphics, but in this case limiting the process to building GIF, JPG and PNG images.
They work through each of the types (GIF, JPG and PNG) creating an new one from a previous "clouds" image of the same type (a GIF out of a GIF, a JPG from a JPG, etc).
voice your opinion now!
tutorial gd graphic create stream png jpg gif existing tutorial gd graphic create stream png jpg gif existing
The Bakery: introduction to dAuth v0.3
by Chris Cornutt December 18, 2006 @ 17:36:00
On The Bakery blog, there's a new article introducing dAuth:
The authentication (not authorization) system with a focus on security, using techniques such as challenge-response, customizable multiple-stage password hashing, brute force (hammering) detection etc.
The dAuth system is based around a challenge-reponse authentication system and handles ensuring the user is who they say that are, but not that they're authorized to be looking at what they see.
They include a graphic to help explain how the process flows and some talk about the changes made from some of the previous versions including detection of brute-force attempts, preventing the disabling of the fallback, and session hijacking compensation.
There's some brief bits about the installation of the tool and some final words to shove you in the right direction.
voice your opinion now!
dbauth authentication cakephp graphic challenge response dbauth authentication cakephp graphic challenge response
AnyExample.com: Convert RGB from/to HTML hex color
by Chris Cornutt November 16, 2006 @ 07:47:00
On AnyExample.com, there's a quick little tutorial demonstrating how to convert an RGB value passed into a function into the corresponding HTML hex color.
There are actually two functions - one for hex to rgb and the other for rgb to hex (though it's not a far leap to make a wrapper function that handles the value correctly by detecting the format - a string or array). They give the code for both of the functions and a bit of sample code for the PHP it could be embedded in.
The only real place I can think of using something like this is in a web-based graphics application - maybe for color-matching or something. More often than not, though, simple software like Huey for Windows can provide you the same information (and more).
Any other applications you all can think of?
voice your opinion now!
convert rgb hex html color graphic wrapper convert rgb hex html color graphic wrapper
Technobabbler.com: making a radar loop with PHP
by Chris Cornutt September 07, 2006 @ 13:36:21
On the Technobabbler blog, there's a quick look at their creation of a (weather) radar loop they could view on their cell phone.
I used the great mobile site from the NWS, but it still didn't give me the effect I wanted. And hey, I'm already filling a database with weather observations and radar images! So I decided to see what it would take to make a custom radar loop that I could get to at any given moment. The Treo can display animated gif files, so that seemed like the most efficient solution. The question is, how do we create an animated gif using PHP?
To answer the question, he found this script ("GIF images into animated GIF with native PHP class") and used it to create a simple script to grab the GIF images and combine them into a single animated image suitable for viewing in any browser. He includes the script used to generate it as well as an example of the result and how it looks on the phone.
voice your opinion now!
radar loop graphic gif animated class native script radar loop graphic gif animated class native script
|
Community Events
Don't see your event here? Let us know!
|