As designed Thumbnail size

Seeker-Smith

Well-known member
Affected version
2.3
I just raised the thumbnail size in my XFMG to 200 X 200. Strange thing is that it also increased the size of all of the thumbnails in my forums from 150 X 150 to 200 X 200.

Is there a fix?
 
I can't reproduce this. To clarify, xfmgThumbnailDimensions is set to 200px x 200px but attachmentThumbnailDimensions is only set to 150px? Can this be reproduced with add-ons disabled and a default style, and if so does it apply to old thumbnails after rebuilding, newly uploaded images, or both?
 
I can't reproduce this. To clarify, xfmgThumbnailDimensions is set to 200px x 200px but attachmentThumbnailDimensions is only set to 150px? Can this be reproduced with add-ons disabled and a default style, and if so does it apply to old thumbnails after rebuilding, newly uploaded images, or both?
Hi
My attachment setting
Screen Shot 2024-07-23 at 6.36.13 PM.webp
My XFMG thumb size
Screen Shot 2024-07-23 at 6.37.13 PM.webp
It seemed like when I increased the size of thumbs in XFMG to 200 x 200 from 150 x 150 the thumbs in the forums also got bigger. I realize that only one setting is applied to attachments where height and width are used in XFMG.
 
I don't think that should be the case. I would also note that attachment thumbnails are not cropped like XFMG thumbnails are, so only the shortest edge is resized. If you have an image that is 1000x500 then the attachment thumbnail would be resized to 300x150. If you open the attachment thumbnails in a new tab, does it show that both dimensions are above the set size?
 
I don't think that should be the case. I would also note that attachment thumbnails are not cropped like XFMG thumbnails are, so only the shortest edge is resized. If you have an image that is 1000x500 then the attachment thumbnail would be resized to 300x150. If you open the attachment thumbnails in a new tab, does it show that both dimensions are above the set size?

Okay so the first strip is from a forum 150 x 150 the second is from XFMG 200 x 200. The smaller size is larger.


Screen Shot 2024-07-23 at 7.03.16 PM.webp

Screen Shot 2024-07-23 at 7.02.57 PM.webp
 
Oh, the media list renders thumbnails at (size / 1.6), whereas attachment thumbnails in posts are rendered at their native size. This has always been the case but I do suppose it is a bit inconsistent.
 
Oh, the media list renders thumbnails at (size / 1.6), whereas attachment thumbnails in posts are rendered at their native size. This has always been the case but I do suppose it is a bit inconsistent.
Can the render size be adjusted? I really need the forum attachments smaller where the XFMG are fine. Or I suppose I could resize them again but 1.2 million images takes a long time.
 
You could potentially adjust @_thumbSize in xfmg_item_list.less:

Less:
@_thumbSize: xf-option('xfmgThumbnailDimensions.width', px) * 1.6;
 
You could potentially adjust @_thumbSize in xfmg_item_list.less:

Less:
@_thumbSize: xf-option('xfmgThumbnailDimensions.width', px) * 1.6;
So that will adjust the XFMG thumbs. Its the forums that the thumbs that I need smaller. Why did the forum thumbs get bigger when I made the XFMG larger.
 
Oops, you may then adjust @_fileMinSize in attachments.less, but it is hard-coded and does not depend on the attachment thumbnail or XFMG thumbnail size at all so if it was smaller before it would have been due to a customization.
 
Oops, you may then adjust @_fileMinSize in attachments.less, but it is hard-coded and does not depend on the attachment thumbnail or XFMG thumbnail size at all so if it was smaller before it would have been due to a customization.
Thanks for looking into this. It just seemed strange that the smaller setting was larger in the strip than the smaller in XFMG. I can work with what you've provided.

Thanks again.
 
Back
Top Bottom