1. vinnie
  2. General
  3. Monday, November 26 2018, 07:29 PM
  4.  Subscribe via email
Good evening.
I see that for the image field, I can set the size of the image. I guess, the image is automatically cropped for matching the chosen size.
However, what to do if I want to keep the image in its original size and not to change it at all with the upload?
admin Accepted Answer
sorry this is not possible natively with Easy Profile. Do to this you need to make some changes:
- in file at /administrator/components/com_jsn/helpers/fields/image.php at line 182 and at line 192 you need to change from
$foo->image_ratio_crop = true
$foo->image_ratio_crop = false

Now with normal upload (no crop/webcam or something else) the parameter height/width will work as max-height/max-width
  1. 2 weeks ago
  2. General
  3. # 1
vinnie Accepted Answer
Thanks for your reply. This way, the image doesn't get cropped or compressed as long as it's within the max-height max-width, that's correct?
  1. 2 weeks ago
  2. General
  3. # 2
admin Accepted Answer
the image will be resize to fit max-height or max-width, for example:
Image original size: 800x600
Setting field Width (max-width): 1024
Setting field Height (max-height): 1024

Result image will be 1024x768 (different size but same ratio)
  1. 2 weeks ago
  2. General
  3. # 3
vinnie Accepted Answer
So there's no way to leave the image as is, just like the "file" field type?
  1. 2 weeks ago
  2. General
  3. # 4
admin Accepted Answer
mmmh, nope, but you can use a workaround to do this with "file" field type and "HTML delimiter" field type.

follow these steps:
- Create a field of type "File" with alias "filefield" and set it to not show in profile page
- Create a field of type "HTML Delimiter"
- Set this field to not show in Profile/Edit Profile/Registration (it will be show only in profile page)
- Put in description this code (source code):
<img src="/{user filefield raw displayed}" />

HTML delimiter field type allow you to put a custom code in field position, it also support our Content Plugin that allow you to retrieve user data. So a string like {user filefield raw displayed} will be replaced with the url of the file.

With this way you will see value of "filefield" formatted as image in profile page, so basically File field type will be used to upload the file and HTML delimiter field type will be used to show the value.

HTML delimiter:
Content Plugin:
  1. 2 weeks ago
  2. General
  3. # 5
vinnie Accepted Answer
Thank you so much, that's just what I needed.
I made it like this:

<img src="/{user filefield raw displayed}" height="250" />

so when the image is retrieved, even if very big, in the profile it's displayed with the max height of 250px, keeping the original ratio.
Thank you very much,
Have a good day!
  1. one week ago
  2. General
  3. # 6
  • Page :
  • 1

There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Request Support

Support is currently Offline

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.


Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Easy ProfileĀ® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.