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

Thumbnail file size

3 Answers 62 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Caleb
Top achievements
Rank 1
Caleb asked on 08 Jan 2009, 10:19 PM
Hello,

I have the lite editor working in my WSS 3 site, but I noticed a small issue.

I uploaded a 1024x1024 JPG that's about 134 KB. When I use the editor to create a thumbnail (200x200), the created thumbnail's file size is larger than the original file! The thumbnail has a file size of 213 KB.

My guess is that the original JPEG was created using a low quality setting and that RAD Editor created the thumbnail using a higher quality setting.

Is there a way to change a global setting for image resizing, or to expose a control that allows users to specify the level of quality when creating the thumbnail?

On a related note, it would be awesome to be able to change both image type (JPEG, PNG, etc.) and quality setting (if applicable). Is this a feature of the full version? I didn't see it in the demos.

Thanks,
Caleb

3 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 12 Jan 2009, 10:03 AM
Hi Caleb,

I tested the issue, but I was not able to reproduce it. Could you please give us an url to the image so we will be able to reproduce the problem on our side.

Thank you.


Sincerely yours,
Stanimir
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Caleb
Top achievements
Rank 1
answered on 12 Jan 2009, 02:48 PM
Hi Stanimir,

Here are some links to the original file and the produced thumbnail.

Original: http://gfsmesh.com/images/BlueMarble.jpg
Thumbnail: http://gfsmesh.com/images/BlueMarbleThumbnail.jpg

In Firefox, if you right click the image and click properties, the original is listed as type JPEG with a size of 134.15 KB (137371 bytes) and the thumbnail is type BMP with a size of 213.5 KB (218624 bytes).

The source of the original image is the NASA Earth Observatory. The article is here:
http://earthobservatory.nasa.gov/Features/BlueMarble/

And the original link is here:
http://earthobservatory.nasa.gov/Features/BlueMarble/Images/BlueMarble_2005_SAm_09_1024.jpg

I picked the image at random to test the thumbnailing feature and other image handling features. I suspect the problem is specific to this image, but I don't know what about the file would cause the thumbnailer to encode it as a BMP instead of JPEG.

Thanks,
Caleb
0
Stanimir
Telerik team
answered on 15 Jan 2009, 09:15 AM
Hi Caleb,

I tested the issue with the provided images and was not able to reproduce it. Indeed there might be a problem with the image. The RadEditor uses the framework engine to create thumbnails and by default the new image file extension is the same as the original one. I really can not imagine what would be the reason for converting .jpg to .jpg.bmp . For the time being, I suggest you to try to open for editing the image with some software and save it as the same type. I think that this might solve your problem.


Greetings,
Stanimir
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
WebParts for SharePoint
Asked by
Caleb
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Caleb
Top achievements
Rank 1
Share this question
or