The following link has some discussion on the matter if you’re interested.
I’ve finally done what I want using JIMI, available at Oracle Java Technologies | Oracle and edit your project to include the ZIP file. No intervention on the Domino side of the Linux server is necessary.
Assumimg you’ve added the JPEG codec and JIMI stuff to your import
import com.sun.image.codec.jpeg.*;
import com.sun.jimi.core.filters.AreaAverageScaleFilter ;
JPEGImageDecoder decoder = JPEGCodec.createJPEGDecoder ( new FileInputStream ( “/local/notesdata/domino/icons/Winter.jpg” ) );
Image image = decoder.decodeAsBufferedImage() ;
you can use the decoder above to turn the input stream into an image object.
then resize it thus:
FilteredImageSource filteredImage = new FilteredImageSource (image.getSource (), new AreaAverageScaleFilter (200, 200));
Obviously you’ll have some calculations going to keep the scaling sensible but this is the basic principle.
It’s nice and lightweight too, and most importantly doesn’t need to use java.awt.Graphics2D to run, which won’t be available because X is not running drone drone drone…
George ![]()