The Algad Image component doesn't require you to install any classes on the
server or have access to the CF Admin to set class paths, etc., as in Matt's
example you reference. You can just drop it in your app and start using it.
>From my testing, the drawback is that it's slow - fine for one image at a
time tho'. The CFX solutions i've tested render lists of images with sizes
immediately, but the Alagad component takes quite a noticable amount of time
to work it's way thru a list of images in a directory, but i don't know
nearly enough to judge why, and still think it's a great component, just
unsuitable for this specific task.

Perhaps it's because it uses AWT, or because it's initializing java classes
within itself, a CFC, and that's slows things down considerably.

In the comments on the ImageInfo.java solution here
http://www.geocities.com/marcoschmidt.geo/image-info.html
 ...

"ImageInfo does not depend on the AWT. It only needs some basic I/O classes
from the standard package java.io, only classes that have been there since
Java 1.0. It checks certain signatures ("magic bytes") and retrieves the
image properties, which rarely requires reading more than a hundred bytes.
Thus, it is relatively fast and well-suited to be used in a server
environment (e.g. from within a servlet that wants to know about the
resolution of an image without loading it).

Getting an image's resolution by loading it via java.awt.Toolkit is less
recommendable:

    * It's slower, and the image might unnecessarily take up a lot of memory
before it is garbage-collected.
    * Toolkit understands fewer file formats than ImageInfo."

> I haven't tried the Algad Image component but doesn't it
> also require you to have some Java libraries already
> available?

I'm pretty sure that all the necessary libraries for the Alagad component
are installed with the JVM by default, unless you've set up a "headless" JVM
install.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at
www.mail-archive.com/[EMAIL PROTECTED]


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to