Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


<< Start < Prev 1 2 3 4 5 Next > End >>
Re:Square User Avatar
Date: 2008/02/18 01:06 By: ffaabbss Status: User  
Karma: 5  
Gold Joomlapolitan

Posts: 290
graphgraph
I DID IT:
NO STRETCHING, NO DISTORTIONS
no matter whether the image is smaller than the maximum set size or bigger. Now all images will have the same size after upload and will be cropped to a square.
SO will the thumbnails!! Just set your sizes in CB backend that is it.

So now all you need to do is advice ur users that on the iamge they want to upload they should be either more or less in the center or if they really want full control they need to upload an image with the exact dimensions you specify.

Just replace your imgToolbox.class.php in administrator/components/com_comprofiler/
with the following file (unpack first):

File Attachment:
File name: imgToolbox.zip
File size:5831 bytes
Click here to see the profile of this user The administrator has disabled public write access.

Re:Square User Avatar
Date: 2008/02/18 05:11 By: ffaabbss Status: User  
Karma: 5  
Gold Joomlapolitan

Posts: 290
graphgraph
BIG PROBLEM:
the gd2 function we hacked is also used by nants profile gallery. SO pictures that are uploaded to profile gallery are also affected and altered...
Can somebody provide some hack to circumvent that?

maybe a solution would be to include the function twice and make profile gallery use the second unaltered version somehow. can that be done?

or is there any other solution maybe?

PLEASE SOMEONE...
already getting headaches here... no idea what to do
Click here to see the profile of this user The administrator has disabled public write access.

Re:Square User Avatar
Date: 2008/02/25 17:35 By: nmcleod Status: CB Doc subscriber  
Karma: 0  
Junior Joomlapolitan

Posts: 27
graphgraph
Having spent the entire weekend trawling the internet for a snippet of code to do this, I finally come across a gem of a link to this thread on Joomlapolis.

One word: Genius. Not me, you.

ffaabbss wrote:
I DID IT:
NO STRETCHING, NO DISTORTIONS
no matter whether the image is smaller than the maximum set size or bigger. Now all images will have the same size after upload and will be cropped to a square.
SO will the thumbnails!! Just set your sizes in CB backend that is it.

So now all you need to do is advice ur users that on the iamge they want to upload they should be either more or less in the center or if they really want full control they need to upload an image with the exact dimensions you specify.

Just replace your imgToolbox.class.php in administrator/components/com_comprofiler/
with the following file (unpack first):

File Attachment:
File name: imgToolbox.zip
File size:5831 bytes
Click here to see the profile of this user The administrator has disabled public write access.

Re:Square User Avatar
Date: 2008/02/25 23:03 By: ffaabbss Status: User  
Karma: 5  
Gold Joomlapolitan

Posts: 290
graphgraph
unfirtunately not THAT genius.. I still need someone to help me out, so that NANTS PROFILE GALLERY does NOT also use that altered toolbox function and leaves the images without squaring them...
please someone HELP HELP!!
Thans
Fabs
Click here to see the profile of this user The administrator has disabled public write access.

Re:Square User Avatar
Date: 2008/03/15 23:42 By: ffaabbss Status: User  
Karma: 5  
Gold Joomlapolitan

Posts: 290
graphgraph
bump... noone a fix for that ... please?
Click here to see the profile of this user The administrator has disabled public write access.

Re:Square User Avatar
Date: 2008/04/01 11:23 By: Masochist Status: CB Doc subscriber  
Karma: 0  
Fresh Joomlapolitan

Posts: 5
graphgraph
Hello... It's working for me just fine but at the same time, I didn't want to resize the profile picture also.. I just want to make the thumbnail squared not both of them.. is this possible?

Great job anyway, I spent a whole week trying to find such a solution... keep it up
Click here to see the profile of this user The administrator has disabled public write access.

<< Start < Prev 1 2 3 4 5 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC3, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login