Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: BP Album+ || New Features Requests and Discussion


foxly
Participant

@foxly

@jordashtalon – dynamically resizing images on the server would consume so much CPU time you’d probably get kicked off a shared host within hours. Even at moderate traffic, it would easily saturate a dedicated server.

We’ve included template tags that let you:

a) determine what cached sizes of an image exist

b) the x and y pixel size of those cached versions

That’s so you can write a PHP routine in your template that selects the closest-sized image and conditionally includes w= and h= markup elements to resize the image within a template to the smallest bounding X or Y dimension.

This lets you resize an image without distorting its aspect ratio, and without using javascript. So it works on every platform, including the iPhone.

^F^

Skip to toolbar