jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lima Marcelo-EML047 <eml...@motorola.com>
Subject RE: Image Taglib
Date Mon, 29 Apr 2002 13:33:25 GMT
Abey, Henri,

No worries there. ImageInfo by Marco Schmidt doesn't use AWT at all. It only loads the first
few hundred (if even) bytes off an image, and looks at the "magic bytes" for width and height
information. So it's possibly much faster than loading an entire image using AWT.

So, my image taglib doesn't use AWT. So far, it's working like PHP's getimagesize function.
It can print out height, width, or an html string 'height="xx" width="xx"'. It can also print
an entire image tag, and because it supports the use of a body, you can put any attributes
you want (onMouseOver, class, name, etc).

I should have a page up soon with the code and some examples.


-----Original Message-----
From: Henri Yandell [mailto:bayard@generationjava.com]
Sent: Sunday, April 28, 2002 11:50 AM
To: Tag Libraries Developers List
Subject: RE: Image Taglib

Hey Abel,

I think people commonly use PJA for this at the moment, and JDK 1.4 comes
with a headless AWT library of its own.

-Djava.awt.headless=true  for jdk 1.4

http://www.eteks.com/pja/en/   for pja.

installing pja is basically a case of grabbing the jars and setting:


though you might find you have to deal with setting some fonts as well, I
found I did for IBM but not for Sun. Not got those flags to hand at the

So not having X shoudn't be a problem, just make sure the image taglib
gives good docs on the headless stuff. WHat's the state of the image
taglib? I know you were working on it a lot, not heard things for a while.


On Sun, 28 Apr 2002, Abey Mullassery wrote:

> It might be useful.
> But most of the web servers running on Linux may not have the X-Windows
> running. In that case the AWT classes may not load (since access to awt
> package tries to load the native awt shared libs) unless it is taken care of
> otherwise. Please check it.
> I have developed a set of image loading and manipulation tags using Java
> Advanced Imaging. But except for loading, an access to the java.awt.Graphics
> Object will require the awt package!
> I am not sure if an ISP will want to keep the XWindows/ Xvfb up for some
> image tags. I am thinking of developing a set of native libs as an
> alternative, which will do all kinds of image loading and manipulation
> (Written in ANSI C).
> Any thoughts?
> Abey M. Mullassery
> e: abey@mullassery.com
> w: http://www.Mullassery.com
> ====================================
> Live; Don't just exist.
> > -----Original Message-----
> > From: Lima Marcelo-EML047 [mailto:eml047@motorola.com]
> > Sent: Friday, April 26, 2002 11:48 PM
> > To: 'Tag Libraries Developers List'
> > Subject: Image Taglib
> >
> >
> > Hi everyone,
> >
> > I don't know if this is the correct place to post this to, as all
> > I see on this list are CVS commits, but I'll give it a try:
> >
> > I'm developing a tag library for dealing with images. My main
> > motivation was the lack of a PHP-like function getimagesize in
> > JSPs. I always thought this was important if you don't or can't
> > know an image size a priori and don't like your HTML to jump all
> > over the place after the page loads.
> >
> > So I have the taglib working, I'm just improving it, but it's
> > quick. It uses Marco Schmidt's ImageInfo class
> http://www.geocities.com/marcoschmidt.geo/image-info.html ).
> I would like to know if there is similar work being done in the Jakarta
> project, or if not, if I can contribute this tag to the project.
> Regards,
> Marcelo
> --
> To unsubscribe, e-mail:
> <mailto:taglibs-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:taglibs-dev-help@jakarta.apache.org>
> --
> To unsubscribe, e-mail:   <mailto:taglibs-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:taglibs-dev-help@jakarta.apache.org>

To unsubscribe, e-mail:   <mailto:taglibs-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-dev-help@jakarta.apache.org>

To unsubscribe, e-mail:   <mailto:taglibs-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-dev-help@jakarta.apache.org>

View raw message