Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

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 ForumsGalleryGalleryImages Compressed Too MuchImages Compressed Too Much
Previous
 
Next
New Post
10/15/2010 11:03 AM
 
I installed and tested the Gallery module and everything works great.  However I noticed that the images are compressed quite a bit.  In fact I find that the images (not the thumbnails) are compressed to the point of affecting image quality more than I would like.  I understand that the images need to be compressed, it just seems to me that they are a little too compressed.

Is there a parameter in gallery that allows a host user to set the "quality" vs "compression" ratio?

Thanks for a great product!

Best regards,
Kevin
 
New Post
10/15/2010 4:14 PM
 
I would also would like to know that. For the moment make sure you already send the images resized and compressed with an external pc software !
 
New Post
10/15/2010 8:35 PM
Accepted Answer 
The DNN Gallery module utilies the .Net GDI+ methods to resize and save image bitmaps to the file system. As I recall, the default compression (Encoder.Quality) for JPG images is either 70 or 80% which (along with the loss of pixels when resizing) does further reduce image quality. There is no setting provided to use other than the default Encoder.Quality parameter.

As you indicated, a partial work around is to resize images prior to uploading to the gallery. If the uploaded image size is smaller than the fixed or preview size specified in the module settings, no resizing and recompression will take place upon saving the image on the server. However, when using the image viewer after making any modification to the image (rotation, brightness, etc.), the image will undergo recompression prior to being streamed or when it is saved.

Although I think that including a setting for JPG image Encoder.Quality is a great one and although I am just about ready to submit a gallery module upgrade (mostly bug fixes including those that are showstoppers for ASP.Net 4.0 and DNN 5.5.x and above), I don't think I'll include this enhancement as it will involve changes in several code files and considerable re-testing.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
10/15/2010 9:42 PM
 
Thanks Bill.  I was not aware that resizing the images could side step the compression routine.  It's a counter intuitive idea, but it makes sense with you think about it.  I'll go with that approach for now.  Thanks for considering the quality parameter... and the quick response.

Best regards,
Kevin
 
New Post
10/25/2010 11:31 AM
 
I have included a configuration option for JPEG encoder quality (10-100) in Gallery v 04.03.03 RC which is now available for testing from it's CodePlex project downloads page: http://dnngallery.codeplex.com/releas.... The default for this setting is 80.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryImages Compressed Too MuchImages Compressed Too Much


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