Create thumbnail on image upload

Last post 08-05-2010, 9:57 AM by Adam. 1 replies.
Sort Posts: Previous Next
  •  06-25-2010, 1:15 PM 62005

    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.
  •  08-05-2010, 9:57 AM 63132 in reply to 62005

    Re: Create thumbnail on image upload

    Slaptrout,
     
    If you modify InsertImage pages, it will impact all sites.
     
    For your situations, I sugest you check the following article:
     
     
    It allows you programmatically set this option.
     
    You can also use the thumbnail button in the insertimage dialog.
     
    Hope it helps.
     
    Keep me posted
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML