I think this is a good line of thought here.  Once the icons in the set
are all the same size we can easily specify or find out what that size
is.

Like so.  Doing this on my little workstation took about .2 seconds.

use GD;
$img = GD::Image->newFromGif( "./book-icon-mystery2.gif" );
print $img->width;
undef $img;

Given 20 search results on a page, and (currently) at most 3 items per
results, that's about an extra 6 seconds per page load, worst case.
That doesn't seem terrible to me.

What do y'all think?

On Thu, 2009-02-12 at 14:54 +1300, Mason James wrote:
> >>
> > This icon set is not uniform in size, unfortunately for us.  Otherwise
> > you have an excellent idea there.
> >
> 
> 
> another idea - perhaps the icon's author's license allow use to  
> resize the icons to a default dimension?
-- 
Michael Hafen
Systems Analyst and Programmer
Washington County School District
Utah, USA

for Koha checkout
http://koha-dev.washk12.org
or
git://koha-dev.washk12.org/koha

_______________________________________________
Koha-devel mailing list
Koha-devel@lists.koha.org
http://lists.koha.org/mailman/listinfo/koha-devel

Reply via email to