oh. simple solution, sorry, I missed that part completely. Thanks.
But (there is always a ‘but’ ?? ) wouldn’t it be better to get the size of the picture an _then_ use the settings as a max value?
Example: Widget is set to 75×50. Thumbnail is square (300×300)
if (thumbnail->ratio == 1 )
widget.x = widget.y = 50
s.th like that (muchmuch pseudocode here). I don’t know how the slideshow handles portrait pictures, but I would try it that way ?? However, thank you for the _easy_ solution ??