Skip to Content Skip to Menu

Autoresizing profile image

  • lucablue
  • lucablue
  • OFFLINE
  • Posts: 226
  • Thanks: 16
  • Karma: 1
10 years 1 month ago #249610 by lucablue
Autoresizing profile image was created by lucablue
Is there a plug in to autoresize image for profile during registration process?

Actually every person on my website need to resize it before upload (max 300kb), I'd like to avoid this problem to users and when they upload their own photo the don't need take care about dimension of photo, couse software automatically resize it to the right dimension.

Thank you for help

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8283
  • Karma: 1443
10 years 1 month ago #249611 by krileon
Replied by krileon on topic Autoresizing profile image
This is already done by limiting the width and height of an image. There is no resizing based off filesize feature. I don't think any image processing library has such a thing. You would probably need a resize loop for it to keep resizing until the image is at the desired size, but by doing that you'd kill your server as resizing is CPU heavy.

Currently with CB 1.x you can't enforce a minimum dimension, only maximum. With CB 2.0 you'll be able to force the minimum and maximum dimension to be the same so it'll always resize to the specified dimension. This won't help with your strict filesize limit, but it does ensure consistent image dimensions.


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