Avatar resizing

16 years 11 months ago #38344 by nant
Replied by nant on topic Re:Avatar resizing
looks good!

tested it and this fix will be included in next release.

thanks alot for your contribution!

Please Log in to join the conversation.

16 years 11 months ago #38354 by wingflap
Replied by wingflap on topic Re:Avatar resizing
There was 1 typo though.

In the line:
[codeif($imginfo[0] > $this->_thumbwidth || $imginfo[1] > $this->_maxheight){
][/code]

Change:
_maxheight
To:
_thumbheight

I am the Wingflap. Goo Goo G'Joob!<br>

How comfortable are you? Visit www.comfortometer.com

Please Log in to join the conversation.

16 years 11 months ago #38368 by nant

Please Log in to join the conversation.

16 years 10 months ago #38838 by lestaticon
Replied by lestaticon on topic Re:Avatar resizing
Thanks a lot. This helped me get things smoothed out on a site I'm working on.

Please Log in to join the conversation.

15 years 9 months ago #69243 by bab2on
Replied by bab2on on topic Re:Avatar resizing
is it make in CB 1.2 ?

because in CB 1.1 it wasn't make :/

Please Log in to join the conversation.

15 years 8 months ago #69400 by beat
Replied by beat on topic Re:Avatar resizing
It didn't make it into CB 1.1 and won't make it either to CB 1.2 for a simple reason: you don't want the original uploaded image file on your website, if it is a maliciously crafted image file, as some browsers and OSes of users can be compromised due to bugs in the image uncompression software.

As a matter of fact, CB 1.1 and 1.2 do by default even resample the normal picture even if it's in the right dimensions, to exclude this sort of attacks.

Resizing them on your webserver, with your up-to-date and trusted software excludes the crafting staying in place.

If you want to have animations staying, best is to use ImageMagic (maybe you can ask your hoster to install it for you, or to give you the path to the program ?).

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.270 seconds

Facebook Twitter LinkedIn