Reply
Thumbnailing and image resizing
Old 05-08-2008, 04:05 PM Thumbnailing and image resizing
Junior Talker

Posts: 1
My friend asked me to help him with image resizing and thumbnailing. I want to ask in general, what is the best way to do this actions? I ask here, because both of us are using PHP.

His site will do many operations in one day(and at the same time, too), so it have to be simple, not CPU loading and fast.

I don't know anything about this issue, so some thoughts will be very helpful.

I was thinking about GD, but I found ImageMagick. It seems that using exec command with ImageMagick's convert utility works well on my local(I optimized resizing command many times talking with experienced users). For the moment I didn't tried APD, so I don't know about speed of command. Moreover, I haven't tried running multiple instances at the same time.

I was wondering how sites like Flickr handle this operations. Does anybody know? Is there other way, how to do this faster?

Has anyone experienced something about this issue? Thanks for any kind of help.
JAM3SoN is offline
Reply With Quote
View Public Profile
 
Sponsored Links (We share ad revenue):
 
Old 05-08-2008, 06:41 PM Re: Thumbnailing and image resizing
addonchat's Avatar
Skilled Talker

Posts: 97
Name: Chris Duerr
I have no experience with ImageMagick, but it's common to use the imagecopyresampled() function to do this with GD. (http://us.php.net/manual/en/function...yresampled.php) Resizing an image properly can be a slow process, sometimes handled by a background daemon, though most apps I've used provide for the option to create thumbnails either following the initial upload (faster load times for the viewers), or on-demand following the first download (saves disk space for thumbnails that may not be used, reduces upload script response time).

I don't know how Flickr does it -- I suppose if I were running a large site that had to do a lot of image manipulation, I'd hand it off to a server farm built uniquely for the task.
__________________
Chris Duerr
AddonChat Java Chat Software
http://www.addonchat.com/ - Affiliate Program
addonchat is offline
Reply With Quote
View Public Profile
 
Sponsored Links (We share ad revenue):
 
Reply     « Reply to Thumbnailing and image resizing
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML


Page generated in 0.13000 seconds with 14 queries