Friday, August 29, 2008     | Register
To start or answer a thread you will need to login...


Forum Guidelines

Please ensure you follow the bug-raising guidelines (e.g. post the full error from your Event Viewer) if you are raising a support call. To request a feature in a module, please use Feature Requests (unless you want to discuss it here in more detail first). If you have an urgent feature that you would like to see in the product then you should consider a Sponsored Enhancement.

 

First Time User? Make sure you have read the Module Config Guide in the documents folder of each module. Also check out this handy Module Deployment Guide (written by a Smart-Thinker customer!)

Configuration issues and no time to read the Forums/Documentation? See our DotNetNuke Premium Support Service.

 
 
  Forums  DotNetNuke  Smart-Thinker U...  Maintaing Aspect Ratio of Profile Picture??
Previous Previous
 
Next Next
New Post 10/18/2007 4:38 AM
  Danny Tam
8 posts
5th Level Poster


Maintaing Aspect Ratio of Profile Picture??  (N/A)

Hello,

Just began tinkering with the User Profiles module and I am quite impressed..

However, I am having a few issues.. One, I need to define a max width and height for the uploaded image and it seems to confine the image to both those specs, rather than treating the width or height as max dimension and maintaining the aspect ratio. What I am essentially saying is that, by having to set both, it is actually "squishing" the image or "stretching" it to confine to the dimensions.

Ventrian News Articles can be seen to get an example of what I am getting at.. I don't know if this feature is already inherent, but if it is, I sure have no idea how to get it done. Any help is appreciated!

 

Cheers,
Danny

 
New Post 10/18/2007 5:35 PM
  Rodney Joyce
2608 posts
www.DNNDir.com
1st Level Poster




Re: Maintaing Aspect Ratio of Profile Picture??  (Australia)

Hi Danny,

The image upload code was written a long time ago, so I'll hav another look at it when I start work on the UserProfil module, but generally the profile aspext ratio is fixed. This means all UserProfile photos will be the same size (or less) but yes, I can see how you might want it to not stretch. Can you raise this as a feature request please (I don't consider it a bug).

I'm not sure by what you mean - "Ventrian News Articles can be seen to get an example of what I am getting at.." - do they do image uploading with just one size attribute?


Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
New Post 10/19/2007 5:57 PM
  Ivan
58 posts
3rd Level Poster




Re: Maintaing Aspect Ratio of Profile Picture??  (N/A)

I second that. It should be fairly easy to maintain the aspect ratio while resizing. Another good feature will be to automatically create a thumb image as well (same way you have a smaller pic for the default image).

 

Rodney, I know that you don't want to touch this functionality because you are waiting on the core to support pictures.......but I just don't have a good feeling that this is on top of their priority list.

 
New Post 12/4/2007 1:33 PM
  Ezra Klug
10 posts
4th Level Poster


Re: Maintaing Aspect Ratio of Profile Picture??  (United States)

This is something that I agree needs to be added to the product.

And waiting for the core to offer it for some of us isn't an option unless they add this feature to older versions like 4.5.5. My sites run fine on this DNN version and unless there is a securtiy issue I have no reason to upgrade.

Great products and I hope you can update this function soon.

 
New Post 6/5/2008 8:33 PM
  Rodney Joyce
2608 posts
www.DNNDir.com
1st Level Poster




Re: Maintaing Aspect Ratio of Profile Picture??  (Australia)

Ok - this is going into the next UserProfile version (4.3.11).

 

With regards to the ImageHandler (profile.ashx) - how should width and height be handled? Currently if you do not add either of these it gets the thumbnail as-is. If you add a width OR a height it resizes it to that speicifcation, or if you add both it applies both - should you only need to supply one and the missing dimension scales accordingly?


Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
New Post 6/5/2008 8:56 PM
  Ivan
58 posts
3rd Level Poster




Re: Maintaining Aspect Ratio of Profile Picture??  (United States)

Now that your upload will be working correctly you will have profile pictures with different aspect ratios.

Right now the ashx file uses the W & H as absolute values and forces the image to that dimension - so if you are using it you will get some stretched/squished images again.

The way the new code handles the picture resize on upload, the same way the W & H resize should work on display - just at max values/not absolutes.

The logic for when you enter only W can be simple - it will use just a max width with no max heigh......however still keeping the original aspect ratio. If it is simpler, another option will be to use the default Height in the picture upload setting.

 
New Post 6/7/2008 6:40 AM
  Rodney Joyce
2608 posts
www.DNNDir.com
1st Level Poster




Re: Maintaining Aspect Ratio of Profile Picture??  (Japan)

This is now fixed - I am dogfooding the latest version on PokerDIY.com and should be able to release this tomorrow if there are no issues when I wake up ;)


Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
Previous Previous
 
Next Next
  Forums  DotNetNuke  Smart-Thinker U...  Maintaing Aspect Ratio of Profile Picture??
Top Threads
In the past 1 week, we have 11 new thread(s) and 25 new post(s)
The most popular thread has been Re: Make RSVP Public Comment not mandatory
The most active thread has been error in the page user profile
Smart-Thinker is powered by DotNetNuke - please support us and DotNetNuke - DotNetNuke Powered!
© 2008 Smart-Thinker   |  Privacy Statement  |  Terms Of Use