Page 1 of 1

frontenduser image property

Posted: Fri Nov 11, 2011 11:48 am
by olumide
Please can anyone help, i have created a image property in frontenduser which works fine, but is it possible to display it on screen on the change settings in a particular width and height and not used its original size?

Re: frontenduser image property

Posted: Mon Nov 14, 2011 5:02 pm
by farangprod
I used to do it with CGSmartimage
Here is the code i use:

Code: Select all

{capture assign="photo"}{$entry->file_location}/{$entry->fields.image1->value}{/capture}
{CGSmartImage src=$photo filter_resize='h,300'}

Re: frontenduser image property

Posted: Mon Nov 14, 2011 7:38 pm
by mcDavid

Code: Select all

{cgsi_convert}{$control->image}{/cgsi_convert}
this should work too, you can set a max_height and/or max_width in the cgsi_convert tag.