March 6th, 2000, 08:38 PM
Hi,
I need to perform some image operation on Sun server without X11 server. I need to read in GIF, JPEG, and BMP encoded image, scale it down to thumbnail, and write out the new scaled down image as JPEG. Sounds simple, and I was able to do this fairly quickly in Java utilizing BufferedImage object and AffineTransform object. The problem is when I call createGraphics on BufferedImage, it calls getLocalGraphicsEnvironment and bombs if the server does not have the DISPLAY pointing to X11 server. In our production server, we cannot have X11 Server dependency. It also appears that when we are trying to decode GIF image, it bombs with the same error. Help! Right now, our code works if we run X11 Server on a remote machine and have DISPLAY point to it, but we need to be able to do it without X11 altogether. Is there a package out there that performs a scaling operation without relying on local machine to have a graphical environment?? Thanks for any lead...
I need to perform some image operation on Sun server without X11 server. I need to read in GIF, JPEG, and BMP encoded image, scale it down to thumbnail, and write out the new scaled down image as JPEG. Sounds simple, and I was able to do this fairly quickly in Java utilizing BufferedImage object and AffineTransform object. The problem is when I call createGraphics on BufferedImage, it calls getLocalGraphicsEnvironment and bombs if the server does not have the DISPLAY pointing to X11 server. In our production server, we cannot have X11 Server dependency. It also appears that when we are trying to decode GIF image, it bombs with the same error. Help! Right now, our code works if we run X11 Server on a remote machine and have DISPLAY point to it, but we need to be able to do it without X11 altogether. Is there a package out there that performs a scaling operation without relying on local machine to have a graphical environment?? Thanks for any lead...