For our corporate picture the size is 110x140. When uploading to SBS I'm forced to crop the photo to a square image. This does not work for our needs. The upload photo did not function this way in 2.5 but since moving to 3.0 it has caused may problems with our internal deployment.
How can I customize the cropping size?
Hello Curtis,
I wrote up a little guide on this customization for someone once before: http://www.jivesoftware.com/jivespace/message/230580#230580
Please let me know if these steps don't work for you!
Thanks,
Brad
Hi, trying to give this a go on my Jive instance. Do I need to make changes to files on the Linux server or, as you've mentioned the admin console, where on there do I make changes to the ftl files on there?
ie.. extract from linked article : SBS uses these CSS rules to set up the cropping width and height. By default they're swapped (width: 160px; height: 120px;)
Thanks
Hey there,
Sorry for the delayed reply on this. You don't need to edit anything directly on the file system. You can make the appropriate modifications via the Admin Console under System -> Settings tab -> Themes on the left. When you're editing a theme's FTL, to add custom CSS (as in this case) you can use /template/global/custom-css.ftl.
Please let me know if anything is unclear here!
Thanks,
Brad
I've added the following to /template/global/custom-css.ftl
.jive-profile-images-edit #photo-preview {
width: 110px !important;
height: 140px !important;
}
but the cropping still forces me to select a square ratio -- same images as originally posted.
Do you perhaps have Firebug installed with your Firefox? Can you please confirm that this rule is indeed getting picked up?
Thanks,
Brad
Hey Dan,
So I dove a bit deeper in to this. It looks like this has changed a little bit between 3.0.3 (what I originally wrote these instructions for) and 3.0.8. To do this in 3.0.8 it looks like you'll also need to change the JavaScript directly so you'll want to edit profile-avatar-crop.ftl. On line 55 and 56 you'll want to reverse these values such that it flips this to portrait. Also, you'll want to check the values of #cropbox to avoid hitting the condition you'll see there that overwrites your specified values.
Please let me know if anything is unclear or if you need more detailed instructions!
Thanks,
Brad
Jive combines collaboration software, community software & social networking software into the leading SBS solution.
© Copyright 2000–2009 Jive Software. All rights reserved.
915 SW Stark St., Suite 400, Portland, OR 97205