Posts Tagged “thumbnail”

Seems that my thumbnail generation tutorial was somehow appreciated by community and somebody posted an article on Zend Developer Zone describing my tutorial as “Advanced Thumbnail Trickery with PHP“.

First, thank you!
Second, I never had so many visitors coming from the same referred. When I saw my statistics I thought that my internal statistics tool went crazy and I checked my google analytics account. Seems that it’s true.

I promise I will elaborate the topic and make a class with it. I will also try to do the same thing with ImageMagick as a visitor suggested.

Tags: , ,

Comments No Comments »

No, it’s not yet another PHP thumbnail generation tutorial! I recently needed a function to:

  • create square thumbnails
  • don’t crop the initial image, but scale it and fill with white background
  • center the thumbnail in the square
  • call the function in a loop to process an entire folder

I found no suitable example and I decided that instead of digging too much it’s better to create my own function and a class for it.

Let’s start with a photo that we need to create a thumbnail for:

Nice kid, huh?

Nice kid, huh?


… and what we want to achieve:
danut_thumb


First step would be the thumbnail generation snippet:
Read the rest of this entry »

Tags: , , , , ,

Comments 27 Comments »