Saturday 23 December 2006 1:58:50 am
It will be use full to filter/sort image by ratio (width/height) Actually the width and height are store on a XML fields, but there is no way to make a fast SQL query. With a photo Gallery , sometime I need to find the first image with a ratio greater than 1 another I need to display an image width a ratio less than 1.
To resolve this pb:
- I create a new table ( i store the id,width,height,ratio of all images)
- Every time a image is upload, I update my table - I add a new extended attribute filter to get images by ratio It's work, but It's will be better for me ;-) to have this on ez
don't flush the cache
|