This is a migrated thread and some comments may be shown as answers.

Image Dialog Customization

1 Answer 25 Views
Editor
This is a migrated thread and some comments may be shown as answers.
digitall
Top achievements
Rank 1
digitall asked on 15 Jul 2013, 10:11 PM
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?

1 Answer, 1 is accepted

Sort by
0
digitall
Top achievements
Rank 1
answered on 16 Jul 2013, 09:53 PM
Nevermind - I didn't even realize you all had an image editor that could save thumbnails. I'll stick with that.
Tags
Editor
Asked by
digitall
Top achievements
Rank 1
Answers by
digitall
Top achievements
Rank 1
Share this question
or