tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wouter Boers" <Wouter.Bo...@MphasiS.com>
Subject RE: image resize
Date Wed, 01 Aug 2001 10:10:33 GMT
You can do this the the Java Advanced Imaging library. Beware though when
running advanges imaging on a Unix box that does not have X installed. A bug
in Java requires a connect to the X-server to be able to handle images. The
workaround is to install a X-server simulator, called  Xvbf. This worked
fine for me on a solaris box, uploaded images are scaled to a 'small' size
and a big size and stored to be displayed later on.

I have some sources that perform scaling (on-the-fly) which are available on
request.

Wouter

-----Original Message-----
From: Reynir Hübner [mailto:Reynir@hugsmidjan.is]
Sent: 31 July 2001 17:13
To: tomcat-user@jakarta.apache.org
Subject: image resize


Hi,
this is probably a bit of topic...
What would be the best way to resize images with servlet ?
I have .jpgs and .gifs in files (not kept in database) and I need to
create new files in different sizes from those images.
Is anyone willing to give me a hint (or more :) on how to do it.

thanx
-r




Mime
View raw message