Skip to Content Skip to Menu

Crop avatar

  • agrepe
  • agrepe
  • OFFLINE
  • Posts: 245
  • Thanks: 3
  • Karma: 0
9 years 11 months ago #254710 by agrepe
Crop avatar was created by agrepe
hello,
I will wish to compel square avatar image (100 x 100 px) , why can we propose a crop when the user drops his avatar photo?
Best ragards.
Eric

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48495
  • Thanks: 8284
  • Karma: 1443
9 years 11 months ago #254736 by krileon
Replied by krileon on topic Crop avatar
Edit your avatar field within CB > Field Management then navigate to Parameters > Image Limits and set the following.

Maximum Image Height: 200
Maximum Image Width: 200
Maximum Thumbnail Height: 100
Maximum Thumbnail Width: 100
Maintain Aspect Ratio: Yes, with Cropping

It will auto crop anything that overflows and will scale using the largest side. The full image will always be 200x200 while the thumbnail will always be 100x100. Adjust further as desired. Right now the user can not specify the cropping area, but that's planned for a future release.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • agrepe
  • agrepe
  • OFFLINE
  • Posts: 245
  • Thanks: 3
  • Karma: 0
9 years 11 months ago #254752 by agrepe
Replied by agrepe on topic Crop avatar
Good evening Sir,
I do not have that option: " Maintain Aspect Ratio : Yes , with Cropping "
Best Regards.
Eric Fagault

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48495
  • Thanks: 8284
  • Karma: 1443
9 years 11 months ago #254753 by krileon
Replied by krileon on topic Crop avatar
It's only available in CB 2.x. CB 1.x has no such feature.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • agrepe
  • agrepe
  • OFFLINE
  • Posts: 245
  • Thanks: 3
  • Karma: 0
9 years 11 months ago #254756 by agrepe
Replied by agrepe on topic Crop avatar
I am in version 1.9.1 .
I dare not migrate for fear of encountering problems and have lots of time to spend , thus Site suspension time .
But if that's the only way I'll do it quickly.
Should I repeat what I have done for 1.9.1 ?
> CSS template ?
> Fields ?

Best regards.
Eric

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48495
  • Thanks: 8284
  • Karma: 1443
9 years 11 months ago #254767 by krileon
Replied by krileon on topic Crop avatar
There is no cropping feature in CB 1.x. It needs to really be done PHP side. It's possible to do it with CSS, but to do so with CSS requires a strict HTML output that CB is not currently doing (needs to be a background image, CB outputs image tag).


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum