Automatic Image Thumbnails

GD and GD2 are useful libraries for creating graphics on-the-fly. Discuss your PHP GD and GD2 scripts here.

Moderators: onion2k, General Moderators

Post Reply
FarazYashar
Forum Newbie
Posts: 9
Joined: Tue May 23, 2006 10:05 pm

Automatic Image Thumbnails

Post by FarazYashar »

I am quite familiar with how to automatically create image thumbnails yet I want to take it a step further.

I was wondering if any scripts exist to make "smart thumbnails" like those which can be found on flickr?

Even if there do not exist any, can someone explain the fundamentals of how the script would find out what part of the image to clip?
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

Can you explain what a "smart thumbnail" is for those of us who don't use Flickr?
Li0rE
Forum Commoner
Posts: 41
Joined: Wed Jun 07, 2006 6:26 am

Post by Li0rE »

Yes, php has functions to crop and resize an image proportionally.
FarazYashar
Forum Newbie
Posts: 9
Joined: Tue May 23, 2006 10:05 pm

Post by FarazYashar »

http://flickr.com/

For example here is what it does:

Image

Image


It not only crops and resizes but finds the main part of the image, such as were the central focus is.

How could I use the crop and resize to make this happen?
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

FarazYashar wrote:It not only crops and resizes but finds the main part of the image, such as were the central focus is.

How could I use the crop and resize to make this happen?
Grab a book on machine vision and write some very, very clever code. Extremely tricky stuff. It'd be well beyond my capabilities.
Post Reply