Image Dialog Customization

2 posts, 0 answers
  1. digitall
    digitall avatar
    169 posts
    Member since:
    Jun 2006

    Posted 15 Jul 2013 Link to this post

    When I use the RadEditor's Image Dialog control to insert an image I can specify a size for the image to display which generates the following HTML:

    <img src="picture.jpg" height="250" width="250" />


    As with other editing tools, this can't resize the image itself and instead just tells the browser to restrict the size accordingly even though it downloads the whole image - this is expected and not an issue. The only thing I'm curious is if it's possible to somehow make the dialog return HTML for that image that looks like this:

    <img src="picture.jpg?height=250&width=250" height="250" width="250" />


    I can then put an HTTP Handler in the directory where images are served up that automatically resizes images on the fly to take the static file, read the query string's height/width values and send back an image in that size. 

    Is something like this possible?
  2. digitall
    digitall avatar
    169 posts
    Member since:
    Jun 2006

    Posted 16 Jul 2013 Link to this post

    Nevermind - I didn't even realize you all had an image editor that could save thumbnails. I'll stick with that.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top