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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to display an image in small size but the rate between width and heght is same?How to display an image in small size but the rate between width and heght is same?
Previous
 
Next
New Post
6/26/2008 1:01 PM
 

When the module displays images in a small size, please tell me how to keep the rate between width and heght same. I know that we can use tool such as Paint to stretch or skew it. But I also see that we can do it by code. Please tell me how to do it.

Thank in advance.

 
New Post
6/30/2008 5:09 PM
 

You will need to use a thumbnail method that will keep the proper aspect ratio when resizing.

Many code samples can be found for how to do this.

Simply search for "Image resizing".  The Coding4Fun section of MSDN has a great example that I like.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
6/30/2008 7:50 PM
 

Take a look at my open source DNN Forge project "Image Editor Control" which is available at www.codeplex.com/imageeditor. In particular, study the source code in the file ImageUtilities.vb. There you will find a wealth of methods for loading, saving, resizing, cropping, rotating, and otherwise enhancing bitmapped images. If you are looking to dynamically resize images and output them to the response stream, you will find many (similar) methods in the code for the DynamicImage.ashx HttpHandler.


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
7/1/2008 9:45 PM
 

Thank you for your helps. I can use makethumbnail.aspx in DNN module to resize image.

I also download imageeditor. However, it seem that I have to upgrade DNN to 4.8.4 while I am using version 4.7.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to display an image in small size but the rate between width and heght is same?How to display an image in small size but the rate between width and heght is same?


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