Silverlight - partial or progressive loading large images for thumbnails? -
I have some large images (in MB) which I want to quickly see in the form of thumbnails (KB ) In. I would like to avoid storing 2 images on the server (one for a larger image and one for thumbnails).
- Images are stored with Ezur Blobs
- Seen in deep zoom, it does not seem to handle dynamic images.
EDIT: The content type of images on blue is "application / octet-stream" maybe it will help change?
Any thoughts?
The option to download does not store the full image and on a supplementary thumbnail A thumbnail will be generated while flying on the server. It would be expensive to guess but I doubt what you really mean that you do not want to provide two images for the provider of images
Here is a part of a code which I Use server-side to scale an image: -
Personal bitmap scale image (image img, int divisor) {int toWidth = Math.Max (IMG. / Separator, 1); Int toHeight = Math.Max (img.Height / divisor, 1); Bitmap result = new bitmap (toWidth, toHeight); (Using the graphics canvas = graphics.frame image) {canvas.DrawImage (img, 0, 0, toWidth, toHeight); } Return results; }
You can add return image to some blob stream in the same way: -
img.Save (someStream, ImageFormat.Jpeg);
Comments
Post a Comment