Skip to content
ISBN: 1861008368
ISBN13: 9781861008367

PHP Graphics Handbook

$26.29List Price: $39.99
Save $13.70!
ISBN: 1861008368
ISBN13: 9781861008367
Formats

Conditions

A read copy that remains in clean condition.

Formats

Conditions

A read copy that remains in clean condition.

See all 1 editionsfrom $26.29

Book Overview

PHP is an insanely popular, easy-to-learn language that you can use to create dynamic webpages in double-quick time. Whether the PHP webpage you create is for business or pleasure, you obviously want your webpage to be as attractive as possible (though not at the expense of your website's performance!). In the PHP Graphics Handbook, we show you cunning graphical techniques that will make your website stand out from the crowd.

Here's an example. Say you wanted to display data from an online poll - the results of which were changing all the time - in a professional-looking graph. You could regenerate an image of the graph periodically, by using a spreadsheet application and updating the data values it contains every so often by hand. But who really wants to waste time like that? Wouldn't it be much better to store the poll data in a database, and then get PHP to link to that, pull out the data, and use a graphics library to display the poll directly in the browser? We show you how.

Here's another. Many websites display thumbnails of images that you click on to display the full size image, or perhaps as a link to another page. Of course, we don't want to have to create thumbnails of all these images ourselves, and then store the thumbnails and full size images too. A much more effective way to handle thumbnails is to generate them "on the fly" from the original image, which we can do several ways using PHP. But which approach would produce the best quality thumbnails? And which would create them the fastest? We tell you.

Both of these examples involve generating images or charts dynamically (on the fly). This is the main benefit of using PHP to generate graphics, so it's the thread that links all of the topics we discuss in the book. With the knowledge you pick up from the book, you'll be able to enhance the appearance and functionality of your website dramatically.

The book teaches you how to apply all of the following techniques on the fly using your PHP code:

- Creating new image files in various formats and drawing on blank images
- Merging, blurring, cropping, copying and cutting-up images
- The most effective ways to generate thumbnails and store images
- Manipulating color, grayscaling and duotone, adjusting brightness
- Adding transparency, soft and hard shadows, and watermarks
- How to add text to images: handling fonts and text layout
- How to create professional-looking charts and graphs
This description may be from another edition of this product.

Format:
Paperback
Language:
English
ISBN:
1861008368
ISBN13:
9781861008367
Publisher:
Wrox Press Limited
Length:
304 Pages
Weight:
0.90 lbs.
Dimensions:
0.7″ × 6.0″ × 9.1″
ComputersComputers & TechnologyDatabase DesignDatabasesEducation & ReferenceGraphics & MultimediaLanguages & ToolsPHPProgrammingSoftware Design, Testing & EngineeringStructured DesignWeb DesignWeb Development & Design

More by Allan Kent

Customer Reviews

1 customer rating | 1 review
Write a Review

Employers like me now

This book covers image manipulation using PHP pretty well. It will take a method such as resizing, explain the functions required, give you some example code how to scale, and the explain the code. It covers just about everything that you would ever want to do, including using ImageMagick (which many servers do have!). The book does, however, have some dead spots. Twards the end it starts talking about different kinds of graphs. It will give you huge chunks of code and not explain it very well; and it doesn't come with a CD so you would have to re-type it. This book has got many jobs though. Employers that don't know that PHP can do these things to images are shocked that I know how to do it. And odds are good that none of the other people applying will have something like that. Putting some sample functions on you portfolio will certainly impress them! In conclusion, I would buy this book again as long as it was under $20. Anything more and I would just find some documentation online. But knowing how to manipulate pictures with PHP is one of the things I am most proud of on my portfolio.

0