Sell Back Your Copy
For a $0.20 Gift Card
Trade in
Have one to sell? Sell yours here
PHP Graphics Handbook
 
See larger image
 
Tell the Publisher!
I'd like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

PHP Graphics Handbook [Illustrated] [Paperback]

Jason E. Sweat (Author), Allan Kent (Author), Mitja Slenc (Author)
2.2 out of 5 stars  See all reviews (4 customer reviews)


Available from these sellers.



Book Description

February 25, 2003
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


Product Details

  • Paperback: 304 pages
  • Publisher: Wrox Press; 1st edition (February 25, 2003)
  • Language: English
  • ISBN-10: 1861008368
  • ISBN-13: 978-1861008367
  • Product Dimensions: 9.1 x 6 x 0.7 inches
  • Shipping Weight: 14.4 ounces
  • Average Customer Review: 2.2 out of 5 stars  See all reviews (4 customer reviews)
  • Amazon Best Sellers Rank: #2,608,369 in Books (See Top 100 in Books)

More About the Author

Allan is a born and bred South African who still lives, works and plays in Cape Town. He has been programming in various languages and on diverse platforms for more than 20 years. He's currently the head of AtPlay, the digital division of Saatchi & Saatchi South Africa.

 

Customer Reviews

4 Reviews
5 star:    (0)
4 star:
 (1)
3 star:
 (1)
2 star:    (0)
1 star:
 (2)
 
 
 
 
 
Average Customer Review
2.2 out of 5 stars (4 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

6 of 6 people found the following review helpful:
3.0 out of 5 stars Not bad for the first book on PHP Graphics, June 16, 2004
By 
"cbstimpson" (Fort Collins, CO USA) - See all my reviews
This review is from: PHP Graphics Handbook (Paperback)
I am disturbed by the other reviews as the credentials of the reviewers are not revealed. As a graduate student and researcher I like to explore the facts before forming my opinion and judgement. I am new to PHP programming and have learned a great deal about it. Am I an expert? No, but I am a sensible reader.

For starters, one must understand that PHP is a programming language and that there is no application that does PHP assembly without having to write the code. Front Page does this for HTML, but there is nothing available for PHP in this sense.

PHP is very powerful, yet is weak in graphics capability. In fact, all graphics capability in PHP is only available through third-party libraries. It is not possible to go in great depth of each third-party library without writing a gigantic book. Nor can the authors know each and every library in and out.

This book was a good introduction to graphing with PHP and gave a good exposure to what is available and selected a few solutions to show what is possible to achieve. The examples are good and show possibilities well. Most of the code makes sense and is clear to read. However, I do find an occasional typo that can stall a routine in a heartbeat.

For the only book available on PHP graphics, it is certainly a good exposure and overview, though it is not a detailed and in-depth presentation for the experienced programmer. The manuals for some of these libraries are detailed and very good, in my opinion (I read a few of them).

In short, this book is not for the experienced PHP programmer who is looking for graphing capabilities with in-depth examples and analysis. This book is definitely for the beginning PHP programmer or others who are looking to expand their understanding of graphing in PHP using third-party libraries (the only way to do graphics in PHP).

Be careful when you read the code examples so that you do not fall victim to the ocassional typo. Also be warned that in order for the code to work right, all other installation and configuration requirements for the server, library paths, GD library and PHP should be flawlessly functioning.

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


4 of 5 people found the following review helpful:
1.0 out of 5 stars Disappointment and Frustration, August 10, 2003
This review is from: PHP Graphics Handbook (Paperback)
As indicated by the title, this book was disappointing, and frustrating. For starters, like the previous reviewer stated, it contained several typos and other errors. It also contained extensive sections on only marginally related information, third-party, non-PHP software, and creating MySQL databases, issues which belong in appendices.

This information actually ends up occupying a large portion of the book. This however, was not the real source of my frustrations and disappointment. The layout of the book is disconcertingly difficult to understand - the physical dimensions of the book are smaller than most other programming books, and though code is highlighted with a gray background, it is broken into little chunks by short explanations of what was being done. Large spaces are also taken for screen shots, which considering the size of the book, often took up at least a good 1/3 of the page. Also, the book's organization was decidedly counter-intuitive. Combined, these factors gave me an abysmal reading experience. Finally, the author's profiles were inappropriately placed before the table of contents, in addition to being merely frivolous commentaries that gave me little confidence in their qualifications for writing this book.

Though I did glean some interesting techniques from the book (not all of them graphics related), in the future, will likely consult the online documentation of the GD imaging functions instead, and recommend the same for other programmers as well.

I also found that some of the topics were too basic; considering the topic of the book, the audience could have been assumed to know much of these topics - and they could have been placed in appendices or sidebars, instead.

I wish I could get a refund, or sell the book in good conscience ... as it is, this book is not recommended, and I must wait until O'Reilly comes out with a 'PHP Graphics in a Nutshell' or something similar, because I am unlikely to buy a book from Wrox ever again.

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


1 of 1 people found the following review helpful:
4.0 out of 5 stars Employers like me now, October 29, 2004
This review is from: PHP Graphics Handbook (Paperback)
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.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No

Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews


Only search this product's reviews



Tag this product

 (What's this?)
Think of a tag as a keyword or label you consider is strongly related to this product.
Tags will help all customers organize and find favorite items.
Your tags: Add your first tag
 

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
Search all Amazon discussions
   
Related forums


Listmania!


Create a Listmania! list

So You'd Like to...


Create a guide


Look for Similar Items by Category


Look for Similar Items by Subject