Hi guys, I've noticed that when an image gets uploaded to a business directory it automatically gets downsampled. I have customised my j-businessdirectory pretty heavily, but need to deactivate this feature as the images I display on business listings are full width (incidentally, a full screen image option should really be included in your default style settings, just a suggestion).
Please advise how I disable the downsampling of images, I would like them to remain at the resolution in which they are uploaded. I had managed to disable it in a previous version of j-businessdirectory by commenting out the line of code in the PHP file, but I'm having trouble finding it in this one.
Thanks.
Hi,
You can edit {joomla}/components/com_jbusinessdirectory/assets/defines.php and modify the following code with higher values.
if( !defined( 'MAX_COMPANY_PICTURE_WIDTH') )
define( 'MAX_COMPANY_PICTURE_WIDTH', 1000);
if( !defined( 'MAX_COMPANY_PICTURE_HEIGHT') )
define( 'MAX_COMPANY_PICTURE_HEIGHT', 800);
if( !defined( 'MAX_LOGO_WIDTH') )
define( 'MAX_LOGO_WIDTH', 800);
if( !defined( 'MAX_LOGO_HEIGHT') )
define( 'MAX_LOGO_HEIGHT', 800);
if( !defined( 'MAX_OFFER_PICTURE_WIDTH') )
define( 'MAX_OFFER_PICTURE_WIDTH', 800);
if( !defined( 'MAX_OFFER_PICTURE_HEIGHT') )
define( 'MAX_OFFER_PICTURE_HEIGHT', 800);