Hi John,

Sounds like all you are interested in is GIF & JPG.

GIF writers are scarce because the compression scheme mandated
for GIF is LZW which is subject to claims by Unisys that it uses their
patented technology, and they will say you need to license it from them for $.
So I don't have a solution for you, but thought you should know why ..

BTW: We are also working on an API for Image I/O which will be a
Java Optional Package (what used to be called Standard Extensions).
However the LZW issue remains a problem for GIF-LZW & TIFF-LZW.

The alternative of uncompressed GIFs seem unlikely to be really useful.
Supposedly unencumbered GIF compressors have I believe popped up from
time to time, only for them to be withdrawn.
I'd be interested in comments & suggestions from developers which we
can use to help decide how to proceed for GIF & TIFF support in what
is a free library ..

-phil.

> X-Accept-Language: en
> Date: Thu, 9 Mar 2000 10:38:44 -0500
> From: John Lame <[EMAIL PROTECTED]>
> Subject: [JAVA2D] Image creation, scaling, and writing
> To: [EMAIL PROTECTED]
>
> Hi,
>
> I'm a veteran Java servlet programmer but a complete novice when
> it comes to graphics manipulation of any sort.  At some point, when
> I have more time, I'd love to be able to start at the beginning and
> actually learn this stuff, but for now I'm hoping that someone can
> simply provide me with a complete solution to the following.
>
> Given an image File (jpeg, gif, or animated gif), and two scaling
> factors
> (percentages of width and height), I need to produce a new image File
> in the same format which is appropriately scaled.
>
> Are there any quick and easy methods for doing this?  Something along
> the lines of:
>
> FileOutputStream o = (new GifImage(new FileInputStream(File
> f))).scale(x,y).getGifOutputStream();
>
> (and similarly for jpegs).
>
> I can see that such methods and objects do not exist, but hopefully the
> basic idea of
> converting a File to an Image, scaling, and then converting back to a
> File is clear.
>
> I did see how to do part of this (e.g. converting a File to an Image)
> but only for jpegs,
> and even then, I'm not sure about the process of scaling and converting
> back to a File.
>
> Any help would be greatly appreciated.
>
> John
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JAVA2D-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to