Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Crop profil image

  • ittp
  • ittp
  • OFFLINE
  • Posts: 16
  • Thanks: 0
  • Karma: 0
9 years 2 months ago #269660 by ittp
Crop profil image was created by ittp
Hi,

I need to keep the same dimensions on profile pictures. There is a function in Configuration -> Images called "Maintain Aspect Ratio" with a option "yes with cropping".

I want it to crop 150x160px, but it crops 100x160px, no mather what value i have in the width input.
Why is that?

At frontend is also says

Your image file must be of gif, png, jpg, jpeg type. Your image file should not exceed 1.95 MBs. Images exceeding the maximum width of 100 will be resized. Images exceeding the maximum height of 160 will be resized.


Iam using Joomla 3.4 and CB 2.0.10.

Regards Kenneth Kjær

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48472
  • Thanks: 8280
  • Karma: 1443
9 years 2 months ago - 9 years 2 months ago #269677 by krileon
Replied by krileon on topic Crop profil image
There's 2 width inputs globally and on a field by field basis. Image field by field parameters will override the globals. Edit your field within CB > Field Management to see if it has widths set there (very likely). They will display as follows when editing your image field under Parameters > Image Limits.

Maximum Image Width
Maximum Thumbnail Width


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.
Last edit: 9 years 2 months ago by krileon.
The following user(s) said Thank You: ittp

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

  • ittp
  • ittp
  • OFFLINE
  • Posts: 16
  • Thanks: 0
  • Karma: 0
9 years 2 months ago #269706 by ittp
Replied by ittp on topic Crop profil image
Hi,

Thanks alot it worked! I have a problem translating the language string below image upload.

Your image file must be of gif, png, jpg, jpeg type. Your image file should not exceed 1.95 MBs. Images exceeding the maximum width of 150 will be resized. Images exceeding the maximum height of 160 will be resized.


I found the english version in components -> com_comprofiler -> plugin -> language and translated the english version to Danish, also copied the english string to the Danish language folder (da-DK), but it still shows the english version.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48472
  • Thanks: 8280
  • Karma: 1443
9 years 2 months ago #269722 by krileon
Replied by krileon on topic Crop profil image
You shouldn't need to copy anything if your CB language plugin is up to date. Please ensure you've latest Danish language plugin below.

forge.joomlapolis.com/projects/lan-cb-da-dk/files

That string is actually multiple strings combined, which are as follows.

Code:
'IMAGE_FILE_UPLOAD_LIMITS_EXT' => 'Your image file must be of [ext] type.', 'IMAGE_FILE_UPLOAD_LIMITS_MAX' => 'Your image file should not exceed [size].', 'IMAGE_FILE_UPLOAD_LIMITS_WIDTH' => 'Images exceeding the maximum width of [size] will be resized.', 'IMAGE_FILE_UPLOAD_LIMITS_HEIGHT' => 'Images exceeding the maximum height of [size] will be resized.',


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