Thumbnail creation while uploading

Posted: 02-24-2005, 03:00 PM
Hello,

I'm using the Blob upload extension to upload images to my web-page.
When I want to display a thumbnail of the photo, I force scale the uploaded
image to, let's say a 100 pixel width.
But when I want to display a whole gallery this way, the download procedure
take a lot of time.

Is there a way, that when I upload my image, an extension creates a thumbnail
at the same time?

I hope so.

Thanks

kind regards Vincent

Reply With Quote

Responses to "Thumbnail creation while uploading"

danilocelic *TMM*
Guest
Posts: n/a
 
Re: Thumbnail creation while uploading
Posted: 02-24-2005, 03:37 PM
VincentRommelaars wrote:
> Is there a way, that when I upload my image, an extension creates a thumbnail
> at the same time?
What server langauge are you working with?

Maybe these links will help:
http://www.interaktonline.com/Soluti...html?id_sol=12
http://dmxzone.com/search.asp?Search...arch&Submit=Go

--
Enjoy,
Danilo Celic

| Extending Knowledge, Daily
| http://www.CommunityMX.com/

Those who aren't looking often have their eyes open widest.
Reply With Quote
Ron Rowell
Guest
Posts: n/a
 
Re: Thumbnail creation while uploading
Posted: 12-12-2005, 02:59 AM
VincentRommelaars wrote:
> Hello,
>
> I'm using the Blob upload extension to upload images to my web-page.
> When I want to display a thumbnail of the photo, I force scale the uploaded
> image to, let's say a 100 pixel width.
> But when I want to display a whole gallery this way, the download procedure
> take a lot of time.
>
> Is there a way, that when I upload my image, an extension creates a thumbnail
> at the same time?
>
> I hope so.
>
> Thanks
>
> kind regards Vincent
>
First of all, it sounds like your not showing a smaller image
(thumbnail) but the large image in a small cell... to do the thumbnail
properly, you should have two images, one full size, and one that is
small,(the small images load fast especially if you can preload) when
the user clicks on the small image, link the large one to it..

use PHP and create a copy of the image you want to upload after you
select it via PHP code, then upload both images into their respective
folders... etc...
this is an example cut from the PHP5 manual:

************************************************** ***********
<?php
// The file
$filename = 'test.jpg';

// Set a maximum height and width
$width = 200;
$height = 200;

// Content type
header('Content-type: image/jpeg');

// Get new dimensions
list($width_orig, $height_orig) = getimagesize($filename);

if ($width && ($width_orig < $height_orig)) {
$width = ($height / $height_orig) * $width_orig;
} else {
$height = ($width / $width_orig) * $height_orig;
}

// Resample
$image_p = imagecreatetruecolor($width, $height);
$image = imagecreatefromjpeg($filename);
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height,
$width_orig, $height_orig);

// Output
imagejpeg($image_p, null, 100);
?>
************************************************** ***************
Reply With Quote
 
LinkBack Thread Tools Search this Thread Display Modes
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic content creation demboos Macromedia Flex General Discussion 4 02-18-2005 06:12 PM
Acrobat 4.0 creates thumbnail not full size view of page? Susan_Sharman@adobeforums.com Adobe Acrobat Macintosh 1 07-26-2004 09:28 PM
uploading imageready image map susan_sloan@adobeforums.com Adobe Photoshop Mac CS, CS2 & CS3 13 02-15-2004 09:09 PM