Page 1 of 1

Thumbnail woes

Posted: Tue Aug 05, 2008 4:29 pm
by Mangek
I'm changing the value in Image Conversion Settings > Thumbnail Dimensions and it tells me the static width for images is 162px (which I want), but when I check the thumbs they instead turn out with the height of 162px; width is random, depending on the original image. I get this even if I remove thumbs and rebuild them.

Is it just a typo in the description or perhaps a bug? Either way, would it be possible to locate the code and alter it to have the fixed width instead?

Many thanks in advance. :)

Re: Thumbnail woes

Posted: Tue Aug 05, 2008 4:33 pm
by garvinhicking
Hi!

Are you using serendipity 1.3? I believe in 1.3, you enter the maximum width OR height into this input box. Whatever is the largest side, the image gets rescaled to that one.

I believe only since s9y 1.4 judebert has added code to allow distinct width or height settings...

Regards,
Garvin

Posted: Tue Aug 05, 2008 4:43 pm
by judebert
Correct! (50 points to Garvin! Now we move on to our lightning round...)

The code in pre-1.4 versions will restrain the greatest dimension of the picture, not its width. Consider the description text to be inaccurate.

In 1.4, our development version that may have some bugs that you should report on the forum as soon as you find them, I modified the code to allow constraining width, height, or largest dimension. For backwards compatibility, it defaults to largest dimension.

You can download the 1.4 development version from the s9y.org website. You can then find the option in your admin screen, under Configuration, Image Conversion Settings, Thumbnail constrained dimension.

Posted: Tue Aug 05, 2008 4:49 pm
by Mangek
Ah hey guys! Yeah, I was reading the thread by Don (really, I should search before I post.. Shame on me :oops: ) and learned that the options will be available in 1,4.

I will download the development version and be sure to check back in if I find any bugs. Thanks! :)