help to better help you:
Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!
SIMPLELIST : problem with dimensions of images
SIMPLELIST : problem with dimensions of images
1 week 5 days ago
Hi,
As said in subject, I meet a problem to set well the dimensions of images for the simplelist (all documentation red, and many tests done...).
The goal is to have a fixed width and the height adjusted to maintain proportions...
In JEM 2.3.6 there was no problem as we can see in the screenshot attached (JEM-V236-Simplelist2.png), but in JEM 4.3.1 (on Joomla 5.2.3) I can't get the result. The height remains fixed, but not the width... (screenshot JEM-V431-Simplelist2.png).
Does anyone know what is the right way to get the result?
Many thanks in advance,
Henri
As said in subject, I meet a problem to set well the dimensions of images for the simplelist (all documentation red, and many tests done...).
The goal is to have a fixed width and the height adjusted to maintain proportions...
In JEM 2.3.6 there was no problem as we can see in the screenshot attached (JEM-V236-Simplelist2.png), but in JEM 4.3.1 (on Joomla 5.2.3) I can't get the result. The height remains fixed, but not the width... (screenshot JEM-V431-Simplelist2.png).
Does anyone know what is the right way to get the result?
Many thanks in advance,
Henri
Please Log in or Create an account to join the conversation.
Re: SIMPLELIST : problem with dimensions of images
1 week 5 days ago - 1 week 5 days ago
I am not an expert, but perhaps this helps you
the settings in com_jem/classes/image.class.php uses Zebra_Image.php. ZEBRA_IMAGE_NOT_BOXED, -1 is used
It's a choice who was made, perhaps an other choice is better for you.
Zebra Image has other options:
define('ZEBRA_IMAGE_BOXED', 0);
define('ZEBRA_IMAGE_NOT_BOXED', 1);
define('ZEBRA_IMAGE_CROP_TOPLEFT', 2);
define('ZEBRA_IMAGE_CROP_TOPCENTER', 3);
define('ZEBRA_IMAGE_CROP_TOPRIGHT', 4);
define('ZEBRA_IMAGE_CROP_MIDDLELEFT', 5);
define('ZEBRA_IMAGE_CROP_CENTER', 6);
define('ZEBRA_IMAGE_CROP_MIDDLERIGHT', 7);
define('ZEBRA_IMAGE_CROP_BOTTOMLEFT', 8 );
define('ZEBRA_IMAGE_CROP_BOTTOMCENTER', 9);
define('ZEBRA_IMAGE_CROP_BOTTOMRIGHT', 10);
CROP cuts out the part of the image into the defined limits
You have to write it into image.class.php
I prefer CROP_TOPCENTER with JEM general setting flyer=no
the settings in com_jem/classes/image.class.php uses Zebra_Image.php. ZEBRA_IMAGE_NOT_BOXED, -1 is used
It's a choice who was made, perhaps an other choice is better for you.
Zebra Image has other options:
define('ZEBRA_IMAGE_BOXED', 0);
define('ZEBRA_IMAGE_NOT_BOXED', 1);
define('ZEBRA_IMAGE_CROP_TOPLEFT', 2);
define('ZEBRA_IMAGE_CROP_TOPCENTER', 3);
define('ZEBRA_IMAGE_CROP_TOPRIGHT', 4);
define('ZEBRA_IMAGE_CROP_MIDDLELEFT', 5);
define('ZEBRA_IMAGE_CROP_CENTER', 6);
define('ZEBRA_IMAGE_CROP_MIDDLERIGHT', 7);
define('ZEBRA_IMAGE_CROP_BOTTOMLEFT', 8 );
define('ZEBRA_IMAGE_CROP_BOTTOMCENTER', 9);
define('ZEBRA_IMAGE_CROP_BOTTOMRIGHT', 10);
CROP cuts out the part of the image into the defined limits
You have to write it into image.class.php
I prefer CROP_TOPCENTER with JEM general setting flyer=no
Last edit: 1 week 5 days ago by jojo12.
The following user(s) said Thank You: Leo2019
Please Log in or Create an account to join the conversation.
Re: SIMPLELIST : problem with dimensions of images
1 week 4 days ago
I cannot see the attached screenshots …
Please Log in or Create an account to join the conversation.
Re: SIMPLELIST : problem with dimensions of images
1 week 4 days ago
Many thanks Jojo!
I go and test, and give feedback.
Henri
I go and test, and give feedback.
Henri
Please Log in or Create an account to join the conversation.
Re: SIMPLELIST : problem with dimensions of images
1 week 4 days ago
Hi Hekla!
The png images was too heavy!
Here are pdf, hope that works!
Thanks,
Henri
The png images was too heavy!
Here are pdf, hope that works!
Thanks,
Henri
Please Log in or Create an account to join the conversation.
Re: SIMPLELIST : problem with dimensions of images
1 week 4 days ago - 1 week 4 days ago
Thank you, the PDFs work.
I cannot reproduce your issue. Did you set the max image width in the settings?
If yes, did you check if it is overruled by an image width in the general CSS?
And for us code maintainers / devs: I found an other issue while testing: only half the image size in the settings is set on the page (settings: 200px, in the frontend 100px).
See github.com/jemproject/JEM-Project/issues/1889
I cannot reproduce your issue. Did you set the max image width in the settings?
If yes, did you check if it is overruled by an image width in the general CSS?
And for us code maintainers / devs: I found an other issue while testing: only half the image size in the settings is set on the page (settings: 200px, in the frontend 100px).
See github.com/jemproject/JEM-Project/issues/1889
Last edit: 1 week 4 days ago by hekla. Reason: add Github link
Please Log in or Create an account to join the conversation.
Time to create page: 0.595 seconds