The Dopefly Tech Blog

<< The Dopefly Tech Blog Main page

Alagad image.cfc - fake bicubic resize

posted under category: ColdFusion on September 13, 2004 at 1:00 am by MrNate

I've been playing and tinkering just a bit with the Alagad Image Component. It's a nice tool, but making thumbnails with it is tricky, and the output tends to be ugly. Here's my work-around for resizing an image with this thing.

imgWidth = image.getWidth();
if (imgWidth GT 500) {

That's it. For every 500 pixels, you blur it one pixel before you size it down to make your thumbnail. YMMV, but 500px seems to be the sweet spot for me.

Too old to comment!
On Dec 22, 2005 at 1:00 AM Dave (spam, who breathes said:
I am getting ugly results too from the Alagad component on resize. I am happy i found your post. I am going to try what you suggested with the Blur() function tonight.

Can you tell me what "YMMV" means in your post?

What you tell me what yourmean that 500px is the sweet spot too?

Too old to comment!