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:
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:
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?
<
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?