Create thumbnail on image upload

  •  06-25-2010, 1:15 PM

    Create thumbnail on image upload

    I want to automatically create a thumbnail version of an image that is uploaded by a user, using either the InsertGallery or InsertImage pages.
     
    I know for the gallery, I can hook into the FileUploaded event of the Uploader control and for the insert image, I can use the CheckUploadData function.  However, I don't always want to create thumbnail.  The InsertImage and InsertGallery are used in various places throughout the site and I only want to create a thumbnail in certain cases.  My questions are:
     
    1) Are these areas the appropriate places to intercept the uploaded file and create the thumbnail image or is there a way to intercept the uploaded file by using the Editor control that made the initial upload call?
     
    2) Are there any concerns I should be aware of when creating the thumbnail (as pertains to the Editor/Uploader)?
     
    3) Is it possible to send parameters or some kind of indicator to let the dialog know that it should or should not create the thumbnail image?
     
    Thanks.
View Complete Thread