Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreThumbnail JPG image qualityThumbnail JPG image quality
Previous
 
Next
New Post
11/3/2009 5:55 AM
 

How can I improve the image quality ;
The quality of the image is reduced by using Thumbnail.

thanks.

 
New Post
11/5/2009 10:24 AM
 

Hi,

The Store module already use the highest quality available in GDI+ (HighQualityBicubic). May be it's related to the color palette in your imagges? Did you try with a web safe palette?

Gilles


We (team members) are Humans offering their knowledge, their work and their spare time FOR FREE to benefit the community. It would be so particularly appreciated that your messages begin with "Hello" and end with "Thank you" or any other form of politeness. Ask yourself what your reaction would be, if you were approached by me (a total stranger) on the street to ask you something without saying "Hello" nor "Thank you"? After several years of services dedicated to the community, I begin to be tired to read requests without any form of politeness.
 
New Post
11/8/2009 4:43 PM
 

Hi,

I noticed how absent is the System.Drawing.Imaging.EncoderParameters in

thumb.Save (memStream, imageformat) in order to have the best quality.

//encoderParameters.Param[0] = new EncoderParameter(Encoder.Quality, 100L);
//thumbnail.Save(Response.OutputStream, imageformat, encoderParameters);
 

thanks.

 
New Post
11/9/2009 11:15 PM
 

Hi,

You'r right about encoders, but this sample works with jpeg format. The Quality refer to the compression level using a long value between 0 and 100. I'm not sure than bmp file format authorize a compression setting, because this format is not compressed. The Store module allow to use all file formats supported by GDI+ (BMP, GIF, PNG, TIFF, ...). For a better image quality, you should use PNG-8 if you need transparency with IE 6 or PNG-24. This format do not degrade the source image, while jpeg degrade quality because the compression algorythm used. I can't force users to use only jpeg file format because some of them need transparency support. Moreover, some encoder steeings can cosume more cpu. I have to think about performances because it"sdifficult to use caching method in this case. Remember than thumbnails are resized 'on the fly' each times the image is called. If your Store Catalog module display 50 images at a time, then the thumbnail.aspx page will be called 50 times!

On the other hand, I could add a 'Quality' setting, but if I do it for jpeg I have to do it for each file format and each supported values! Is it really a requirement to make things harder if you could just use another file format? :-) Image optimization is detailed in the Templating Guide (chapter 5).

Gilles


We (team members) are Humans offering their knowledge, their work and their spare time FOR FREE to benefit the community. It would be so particularly appreciated that your messages begin with "Hello" and end with "Thank you" or any other form of politeness. Ask yourself what your reaction would be, if you were approached by me (a total stranger) on the street to ask you something without saying "Hello" nor "Thank you"? After several years of services dedicated to the community, I begin to be tired to read requests without any form of politeness.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreThumbnail JPG image qualityThumbnail JPG image quality


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out