1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2 <html>
3 <head>
4 <!--
5 Copyright (c) 2000, 2007, Oracle and/or its affiliates. All rights reserved.
6 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
7
8 This code is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License version 2 only, as
10 published by the Free Software Foundation. Oracle designates this
11 particular file as subject to the "Classpath" exception as provided
12 by Oracle in the LICENSE file that accompanied this code.
13
14 This code is distributed in the hope that it will be useful, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 version 2 for more details (a copy is included in the LICENSE file that
18 accompanied this code).
19
20 You should have received a copy of the GNU General Public License version
21 2 along with this work; if not, write to the Free Software Foundation,
22 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
23
24 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
25 or visit www.oracle.com if you need additional information or have any
114 <h3><a name="gif_plugin_notes">Standard plug-in for GIF image format</a></h3>
115
116
117 <p>
118 ImageIO provides <code>ImageReader</code> and <code>ImageWriter</code>
119 plug-ins for the <a href="http://www.w3.org/Graphics/GIF/spec-gif89a.txt">
120 Graphics Interchange Format (GIF)</a> image format.
121
122 These are the "standard" GIF plug-ins, meaning those that are included in the
123 JRE, as distinct from those included in standard extensions, or 3rd party
124 plug-ins. The following notes and metadata specification apply to the
125 standard plug-ins.
126
127 <h3>Writing GIF images</h3>
128 The GIF image writer plug-in guarantees lossless writing for images which meet
129 the following requirements:
130 <ul>
131 <li>the number of bands is 1;
132 <li>the number of bits per sample is not greater than 8;
133 <li>the size of a color component is not greater than 8;
134 </ul> </p>
135
136 <p>
137 By default the GIF writer plug-in creates version "89a" images. This can be
138 changed to "87a" by explicitly setting the version in the
139 stream metadata (see <a
140 href="metadata/doc-files/gif_metadata.html#gif_stream_metadata_format">
141 GIF Stream Metadata Format Specification</a>).
142 </p>
143
144
145 <!-- animated images -->
146 <p>
147 The GIF writer plug-in supports the creation of animated GIF images through
148 the standard sequence writing methods defined in the
149 <code>ImageWriter</code> class.
150
151 <!-- TODO: add example here -->
152 </p>
153
154 <!-- color tables -->
|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2 <html>
3 <head>
4 <!--
5 Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
6 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
7
8 This code is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License version 2 only, as
10 published by the Free Software Foundation. Oracle designates this
11 particular file as subject to the "Classpath" exception as provided
12 by Oracle in the LICENSE file that accompanied this code.
13
14 This code is distributed in the hope that it will be useful, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 version 2 for more details (a copy is included in the LICENSE file that
18 accompanied this code).
19
20 You should have received a copy of the GNU General Public License version
21 2 along with this work; if not, write to the Free Software Foundation,
22 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
23
24 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
25 or visit www.oracle.com if you need additional information or have any
114 <h3><a name="gif_plugin_notes">Standard plug-in for GIF image format</a></h3>
115
116
117 <p>
118 ImageIO provides <code>ImageReader</code> and <code>ImageWriter</code>
119 plug-ins for the <a href="http://www.w3.org/Graphics/GIF/spec-gif89a.txt">
120 Graphics Interchange Format (GIF)</a> image format.
121
122 These are the "standard" GIF plug-ins, meaning those that are included in the
123 JRE, as distinct from those included in standard extensions, or 3rd party
124 plug-ins. The following notes and metadata specification apply to the
125 standard plug-ins.
126
127 <h3>Writing GIF images</h3>
128 The GIF image writer plug-in guarantees lossless writing for images which meet
129 the following requirements:
130 <ul>
131 <li>the number of bands is 1;
132 <li>the number of bits per sample is not greater than 8;
133 <li>the size of a color component is not greater than 8;
134 </ul>
135
136 <p>
137 By default the GIF writer plug-in creates version "89a" images. This can be
138 changed to "87a" by explicitly setting the version in the
139 stream metadata (see <a
140 href="metadata/doc-files/gif_metadata.html#gif_stream_metadata_format">
141 GIF Stream Metadata Format Specification</a>).
142 </p>
143
144
145 <!-- animated images -->
146 <p>
147 The GIF writer plug-in supports the creation of animated GIF images through
148 the standard sequence writing methods defined in the
149 <code>ImageWriter</code> class.
150
151 <!-- TODO: add example here -->
152 </p>
153
154 <!-- color tables -->
|