-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
> We've recently run into this problem also. In a production setting the
> servers don't always X (why waste 8-16 MB of ram when you don't even have
> a monitor?) and run the JDK without the statically linked motif. The best
> solution appears to actually constuct the gif's without using AWT. Does
> anyone know of java-only gif construction library?
jdk 1.2 includes java 2d which has classes for manipulating jpegs. it should
be a trivial task to generate a java.awt.Graphics2D object on the fly, do
your own hacks to it and output the results as a jpeg via a stream utilizing
com.sun.image.code.jpeg.JPEGCodec. just remmember to set the content-type to
image/jpeg or whatever it is supposed to be. i wrote a hello world thingy a
while ago which worked fine.
for more info, check out:
http://www.javasoft.com/products/java-media/2D/index.html
btw, y r u all stuck on gifs anyways? PNG ( http://www.cdrom.com/pub/png/)
is a much better alternative with several implementations for java
http://www.cdrom.com/pub/png/pngcode.html) .. dunno how good the
implementations r tho.
hmmm .. online photoshop anyone?! =)
--------------------------------------
Nimret Sandhu
Dev Geek
http://nimret.penguinpowered.com
EC Direct Corp
http://www.ecdirect.com
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]