Thumbnail creation while uploading

Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.

  1. #1

    Default Thumbnail creation while uploading

    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

    VincentRommelaars Guest

  2. Similar Questions and Discussions

    1. [PHP] PDF Thumbnail with PHP?
      Unfortunatly, that's not what I'm trying to do. That function will add an image to a PDF file as a thumbnail. What I want to do, is read a PDF...
    2. ASP thumbnail creator?
      I need a simple function to generate and save a thumbnail from a picture. It would require : Source Picture Fileame Thumbnail Height and Width...
    3. PDF Thumbnail with PHP?
      Does anyone know if there is a way to generate a thumbnail of the 1st page of a PDF document using PHP. I have an application that archives PDF...
    4. Image Thumbnail
      Create ACDSee style image Browser, only one minute. download sample from http://www.viscomsoft.com/imagethumbnail.htm
    5. Thumbnail Behaviors where to put them?
      Hi All I'm creating a new Product Review table in my MS Access database with a field for thumbnails for publishing on my web site. When a user...
  3. #2

    Default Re: Thumbnail creation while uploading

    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:
    [url]http://www.interaktonline.com/Solutions/For-dynamic-sites/Details/Image+upload+with+resize.html?id_sol=12[/url]
    [url]http://dmxzone.com/search.asp?SearchString=smart+image+processor&STyp eId=0&Action=Search&Submit=Go[/url]

    --
    Enjoy,
    Danilo Celic

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

    Those who aren't looking often have their eyes open widest.
    danilocelic *TMM* Guest

  4. #3

    Default Re: Thumbnail creation while uploading

    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);
    ?>
    ************************************************** ***************
    Ron Rowell Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139