Brad Fitzpatrick (brad) wrote in fotobilder,
Brad Fitzpatrick

Efficient scaling

The scaling optimization I previously discussed is in.

A 320x240 image is created on upload, which is the same size on the /manage/pic page, so it'll be sure to be used. But also, any thumbnails are scaled using the 320x240 as a base.

Actually, the rule is... if it wants to scale to W*H, it needs to find a version of the original that is at least W*H*4 pixels. I figure that will guarantee a high-quality scale (minimum 2x2 averaging regions), but maybe that's overkill. We'll see. It's better than the slowness before, though.

But as thumbnails are 150x150 max now, 320x240 is large & small enough to be the source for any uncropped, unzoomed thumbnail.

The fun part is later when we have to decide which scaled version to start with when we also have a cropping region. :-)

  • 302: lj_dev

    In the interests of consolidating all FotoBilder development-related discussion, we're going to be closing down this community. The same…

  • Development stalled?

    Is the development of Fotobilder held? Stalled? I am asking because there is no activity on the community and there is no link to the Fotobilder…

  • (no subject)

    Does FotoBilder works with Apache2? I installed all the required modules on my debian sarge, and when I restart my apache server, it dies horribly…

  • Post a new comment


    Comments allowed for members only

    Anonymous comments are disabled in this journal

    default userpic