1. marver
  2. General
  3. Monday, March 10 2014, 10:48 AM
Hello,

When I upload an avatar, I can give in the width and height of the image in the backend. I use the avatar-field to let members upload there company logo. What would be the best way to have this set up. Because is I upload the image now, it wil 'zoom' and crop etc. and the logo shows up ugly. Hope you know what I mean. What I can come up with is heaving set the image to a max-width and height auto? But is there a way set this?
Thanks,
Martijn.
Accepted Answer
admin Accepted Answer
Admin
Hi,
in file /administrator/components/com_jsn/helpers/fields/image.php at line 139 and at line 149 replace:
$foo->image_ratio_crop = true;

with
$foo->image_ratio = true;


With this you can set the max-width and max-height of image with "Upload with User Crop & Webcam" disabled
if you don't want max height set this parameter on 10000 (or impossible value that you like).

You must disable (if enabled) Upload with User Crop & Webcam option because this works only when you have valid crop ratio
  1. more than a month ago
  2. General
  3. # Permalink
marver Accepted Answer
Pro
Works great now, thank you!
  1. more than a month ago
  2. General
  3. # 1
marver Accepted Answer
Pro
Hello,
One more question about this one... the change overwrites if update takes place. Can I make a template override somehow?
Thank you,

Martijn
  1. more than a month ago
  2. General
  3. # 2
admin Accepted Answer
Admin
Yes, when you update easy profile you will make these changes.
  1. more than a month ago
  2. General
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.