| Re: Small suggestion for latest news images |
| by MekDrop on 2025/6/6 23:24:44 Thanks for the response, but the problem I see is: https://xoops.org/modules/publisher/thumb.php?src=https://xoops.org/uploads/images/img680f07df742b6.jpg&w=500&h=500 From my understanding, there is no option for scaling using the 'contains' method (which means the image should fit within the required dimensions). As a result, images in these blocks sometimes appear very stretched. |
| Re: Small suggestion for latest news images |
| by heyula on 2025/6/6 8:59:15 You can add the code you mentioned for this, but the correct approach is to handle it via thumb.php. While designing the theme, I had many different ideas about the Publisher module, but due to lack of time, I couldn't implement most of them. I hope to start working on something for Xoops again soon. The current dimensions generated by thumb.php: https://xoops.org/modules/publisher/thumb.php?src=https://xoops.org/uploads/images/img680f03c0692e8.jpg&w=385 You can set your desired dimensions as shown in this example: https://xoops.org/modules/publisher/thumb.php?src=https://xoops.org/uploads/images/img680f07df742b6.jpg&w=2000&h=500 |
| Small suggestion for latest news images |
| by MekDrop on 2025/6/5 20:57:13 Currently this block looks like: ![]() But if you add for each image le="color: #000000"><?php object-fit: contain; I think, everything becomes better: ![]() |