Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
1 + 4 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

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:

Resized Image


But if you add for each image
le="color: #000000"><?php object-fit: contain;


I think, everything becomes better:
Resized Image

Who's Online

114 user(s) are online (62 user(s) are browsing Support Forums)


Members: 0


Guests: 114


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits