Modifier and Type | Method and Description |
---|---|
static void |
Imaging.writeImage(BufferedImage src,
File file,
ImageFormat format,
Map<String,Object> params)
Writes the content of a BufferedImage to a file using the specified
image format.
|
static void |
Imaging.writeImage(BufferedImage src,
OutputStream os,
ImageFormat format,
Map<String,Object> params)
Writes the content of a BufferedImage to an OutputStream using the specified
image format.
|
void |
ImageParser.writeImage(BufferedImage src,
OutputStream os,
Map<String,Object> params)
Writes the content of a BufferedImage to the specified output
stream.
|
static byte[] |
Imaging.writeImageToBytes(BufferedImage src,
ImageFormat format,
Map<String,Object> params)
Writes the content of a BufferedImage to a byte array using the specified
image format.
|
Modifier and Type | Method and Description |
---|---|
static byte[] |
ZlibDeflate.compress(byte[] bytes)
Compress the byte[] using ZLIB deflate compression.
|
Modifier and Type | Method and Description |
---|---|
static byte[] |
T4AndT6Compression.compressModifiedHuffman(byte[] uncompressed,
int width,
int height)
Compressed with the "Modified Huffman" encoding of section 10 in the
TIFF6 specification.
|
static byte[] |
T4AndT6Compression.compressT4_1D(byte[] uncompressed,
int width,
int height,
boolean hasFill) |
static byte[] |
T4AndT6Compression.compressT4_2D(byte[] uncompressed,
int width,
int height,
boolean hasFill,
int parameterK) |
static byte[] |
T4AndT6Compression.compressT6(byte[] uncompressed,
int width,
int height) |
Modifier and Type | Method and Description |
---|---|
void |
BmpImageParser.writeImage(BufferedImage src,
OutputStream os,
Map<String,Object> params) |
Modifier and Type | Method and Description |
---|---|
void |
DcxImageParser.writeImage(BufferedImage src,
OutputStream os,
Map<String,Object> params) |
Modifier and Type | Method and Description |
---|---|
void |
GifImageParser.writeImage(BufferedImage src,
OutputStream os,
Map<String,Object> params) |
Modifier and Type | Method and Description |
---|---|
void |
IcnsImageParser.writeImage(BufferedImage src,
OutputStream os,
Map<String,Object> params) |
Modifier and Type | Method and Description |
---|---|
void |
IcoImageParser.writeImage(BufferedImage src,
OutputStream os,
Map<String,Object> params) |
Modifier and Type | Class and Description |
---|---|
static class |
ExifRewriter.ExifOverflowException |
Modifier and Type | Method and Description |
---|---|
void |
ExifRewriter.removeExifMetadata(byte[] src,
OutputStream os)
Reads a Jpeg image, removes all EXIF metadata (by removing the APP1
segment), and writes the result to a stream.
|
void |
ExifRewriter.removeExifMetadata(ByteSource byteSource,
OutputStream os)
Reads a Jpeg image, removes all EXIF metadata (by removing the APP1
segment), and writes the result to a stream.
|
void |
ExifRewriter.removeExifMetadata(File src,
OutputStream os)
Reads a Jpeg image, removes all EXIF metadata (by removing the APP1
segment), and writes the result to a stream.
|
void |
ExifRewriter.removeExifMetadata(InputStream src,
OutputStream os)
Reads a Jpeg image, removes all EXIF metadata (by removing the APP1
segment), and writes the result to a stream.
|
void |
ExifRewriter.updateExifMetadataLossless(byte[] src,
OutputStream os,
TiffOutputSet outputSet)
Reads a Jpeg image, replaces the EXIF metadata and writes the result to a
stream.
|
void |
ExifRewriter.updateExifMetadataLossless(ByteSource byteSource,
OutputStream os,
TiffOutputSet outputSet)
Reads a Jpeg image, replaces the EXIF metadata and writes the result to a
stream.
|
void |
ExifRewriter.updateExifMetadataLossless(File src,
OutputStream os,
TiffOutputSet outputSet)
Reads a Jpeg image, replaces the EXIF metadata and writes the result to a
stream.
|
void |
ExifRewriter.updateExifMetadataLossless(InputStream src,
OutputStream os,
TiffOutputSet outputSet)
Reads a Jpeg image, replaces the EXIF metadata and writes the result to a
stream.
|
void |
ExifRewriter.updateExifMetadataLossy(byte[] src,
OutputStream os,
TiffOutputSet outputSet)
Reads a Jpeg image, replaces the EXIF metadata and writes the result to a
stream.
|
void |
ExifRewriter.updateExifMetadataLossy(ByteSource byteSource,
OutputStream os,
TiffOutputSet outputSet)
Reads a Jpeg image, replaces the EXIF metadata and writes the result to a
stream.
|
void |
ExifRewriter.updateExifMetadataLossy(File src,
OutputStream os,
TiffOutputSet outputSet)
Reads a Jpeg image, replaces the EXIF metadata and writes the result to a
stream.
|
void |
ExifRewriter.updateExifMetadataLossy(InputStream src,
OutputStream os,
TiffOutputSet outputSet)
Reads a Jpeg image, replaces the EXIF metadata and writes the result to a
stream.
|
Modifier and Type | Method and Description |
---|---|
void |
JpegIptcRewriter.removeIPTC(byte[] src,
OutputStream os)
Reads a Jpeg image, removes all IPTC data from the App13 segment but
leaves the other data in that segment (if present) unchanged and writes
the result to a stream.
|
void |
JpegIptcRewriter.removeIPTC(byte[] src,
OutputStream os,
boolean removeSegment)
Reads a Jpeg image, removes all IPTC data from the App13 segment but
leaves the other data in that segment (if present) unchanged (unless
removeSegment is true) and writes the result to a stream.
|
void |
JpegIptcRewriter.removeIPTC(ByteSource byteSource,
OutputStream os)
Reads a Jpeg image, removes all IPTC data from the App13 segment but
leaves the other data in that segment (if present) unchanged and writes
the result to a stream.
|
void |
JpegIptcRewriter.removeIPTC(ByteSource byteSource,
OutputStream os,
boolean removeSegment)
Reads a Jpeg image, removes all IPTC data from the App13 segment but
leaves the other data in that segment (if present) unchanged (unless
removeSegment is true) and writes the result to a stream.
|
void |
JpegIptcRewriter.removeIPTC(File src,
OutputStream os)
Reads a Jpeg image, removes all IPTC data from the App13 segment but
leaves the other data in that segment (if present) unchanged and writes
the result to a stream.
|
void |
JpegIptcRewriter.removeIPTC(File src,
OutputStream os,
boolean removeSegment)
Reads a Jpeg image, removes all IPTC data from the App13 segment but
leaves the other data in that segment (if present) unchanged (unless
removeSegment is true) and writes the result to a stream.
|
void |
JpegIptcRewriter.removeIPTC(InputStream src,
OutputStream os)
Reads a Jpeg image, removes all IPTC data from the App13 segment but
leaves the other data in that segment (if present) unchanged and writes
the result to a stream.
|
void |
JpegIptcRewriter.removeIPTC(InputStream src,
OutputStream os,
boolean removeSegment)
Reads a Jpeg image, removes all IPTC data from the App13 segment but
leaves the other data in that segment (if present) unchanged (unless
removeSegment is true) and writes the result to a stream.
|
void |
JpegIptcRewriter.writeIPTC(byte[] src,
OutputStream os,
PhotoshopApp13Data newData)
Reads a Jpeg image, replaces the IPTC data in the App13 segment but
leaves the other data in that segment (if present) unchanged and writes
the result to a stream.
|
void |
JpegIptcRewriter.writeIPTC(ByteSource byteSource,
OutputStream os,
PhotoshopApp13Data newData)
Reads a Jpeg image, replaces the IPTC data in the App13 segment but
leaves the other data in that segment (if present) unchanged and writes
the result to a stream.
|
void |
JpegIptcRewriter.writeIPTC(File src,
OutputStream os,
PhotoshopApp13Data newData)
Reads a Jpeg image, replaces the IPTC data in the App13 segment but
leaves the other data in that segment (if present) unchanged and writes
the result to a stream.
|
void |
JpegIptcRewriter.writeIPTC(InputStream src,
OutputStream os,
PhotoshopApp13Data newData)
Reads a Jpeg image, replaces the IPTC data in the App13 segment but
leaves the other data in that segment (if present) unchanged and writes
the result to a stream.
|
byte[] |
IptcParser.writeIPTCBlock(List<IptcRecord> elements) |
byte[] |
IptcParser.writePhotoshopApp13Segment(PhotoshopApp13Data data) |
Modifier and Type | Class and Description |
---|---|
static class |
JpegRewriter.JpegSegmentOverflowException |
Modifier and Type | Method and Description |
---|---|
protected <T extends JpegRewriter.JFIFPiece,U extends JpegRewriter.JFIFPiece> |
JpegRewriter.insertAfterLastAppSegments(List<T> segments,
List<U> newSegments) |
protected <T extends JpegRewriter.JFIFPiece,U extends JpegRewriter.JFIFPiece> |
JpegRewriter.insertBeforeFirstAppSegments(List<T> segments,
List<U> newSegments) |
void |
JpegXmpRewriter.updateXmpXml(byte[] src,
OutputStream os,
String xmpXml)
Reads a Jpeg image, replaces the XMP XML and writes the result to a
stream.
|
void |
JpegXmpRewriter.updateXmpXml(ByteSource byteSource,
OutputStream os,
String xmpXml)
Reads a Jpeg image, replaces the XMP XML and writes the result to a
stream.
|
void |
JpegXmpRewriter.updateXmpXml(File src,
OutputStream os,
String xmpXml)
Reads a Jpeg image, replaces the XMP XML and writes the result to a
stream.
|
void |
JpegXmpRewriter.updateXmpXml(InputStream src,
OutputStream os,
String xmpXml)
Reads a Jpeg image, replaces the XMP XML and writes the result to a
stream.
|
Modifier and Type | Method and Description |
---|---|
void |
PcxImageParser.writeImage(BufferedImage src,
OutputStream os,
Map<String,Object> params) |
Modifier and Type | Method and Description |
---|---|
void |
PngImageParser.writeImage(BufferedImage src,
OutputStream os,
Map<String,Object> params) |
Modifier and Type | Method and Description |
---|---|
void |
PnmImageParser.writeImage(BufferedImage src,
OutputStream os,
Map<String,Object> params) |
Modifier and Type | Method and Description |
---|---|
TiffOutputDirectory |
TiffImageMetadata.Directory.getOutputDirectory(ByteOrder byteOrder) |
TiffOutputSet |
TiffImageMetadata.getOutputSet() |
void |
TiffImageParser.writeImage(BufferedImage src,
OutputStream os,
Map<String,Object> params) |
Modifier and Type | Method and Description |
---|---|
byte[] |
FieldTypeLong.writeData(Object o,
ByteOrder byteOrder) |
byte[] |
FieldTypeFloat.writeData(Object o,
ByteOrder byteOrder) |
byte[] |
FieldTypeShort.writeData(Object o,
ByteOrder byteOrder) |
byte[] |
FieldTypeByte.writeData(Object o,
ByteOrder byteOrder) |
byte[] |
FieldTypeDouble.writeData(Object o,
ByteOrder byteOrder) |
byte[] |
FieldTypeRational.writeData(Object o,
ByteOrder byteOrder) |
byte[] |
FieldTypeAscii.writeData(Object o,
ByteOrder byteOrder) |
abstract byte[] |
FieldType.writeData(Object o,
ByteOrder byteOrder) |
Modifier and Type | Method and Description |
---|---|
byte[] |
TagInfoAscii.encodeValue(ByteOrder byteOrder,
String... values) |
byte[] |
TagInfoGpsText.encodeValue(FieldType fieldType,
Object value,
ByteOrder byteOrder) |
byte[] |
TagInfo.encodeValue(FieldType fieldType,
Object value,
ByteOrder byteOrder) |
byte[] |
TagInfoXpString.encodeValue(FieldType fieldType,
Object value,
ByteOrder byteOrder) |
Modifier and Type | Method and Description |
---|---|
void |
TiffOutputDirectory.add(TagInfoAsciiOrByte tagInfo,
String... values) |
void |
TiffOutputDirectory.add(TagInfoAsciiOrRational tagInfo,
RationalNumber... values) |
void |
TiffOutputDirectory.add(TagInfoAsciiOrRational tagInfo,
String... values) |
void |
TiffOutputDirectory.add(TagInfoAscii tagInfo,
String... values) |
void |
TiffOutputDirectory.add(TagInfoByte tagInfo,
byte value) |
void |
TiffOutputDirectory.add(TagInfoByteOrShort tagInfo,
byte... values) |
void |
TiffOutputDirectory.add(TagInfoByteOrShort tagInfo,
short... values) |
void |
TiffOutputDirectory.add(TagInfoBytes tagInfo,
byte... values) |
void |
TiffOutputDirectory.add(TagInfoDouble tagInfo,
double value) |
void |
TiffOutputDirectory.add(TagInfoDoubles tagInfo,
double... values) |
void |
TiffOutputDirectory.add(TagInfoFloat tagInfo,
float value) |
void |
TiffOutputDirectory.add(TagInfoFloats tagInfo,
float... values) |
void |
TiffOutputDirectory.add(TagInfoGpsText tagInfo,
String value) |
void |
TiffOutputDirectory.add(TagInfoLong tagInfo,
int value) |
void |
TiffOutputDirectory.add(TagInfoLongs tagInfo,
int... values) |
void |
TiffOutputDirectory.add(TagInfoRational tagInfo,
RationalNumber value) |
void |
TiffOutputDirectory.add(TagInfoRationals tagInfo,
RationalNumber... values) |
void |
TiffOutputDirectory.add(TagInfoSByte tagInfo,
byte value) |
void |
TiffOutputDirectory.add(TagInfoSBytes tagInfo,
byte... values) |
void |
TiffOutputDirectory.add(TagInfoShortOrLong tagInfo,
int... values) |
void |
TiffOutputDirectory.add(TagInfoShortOrLongOrRational tagInfo,
int... values) |
void |
TiffOutputDirectory.add(TagInfoShortOrLongOrRational tagInfo,
RationalNumber... values) |
void |
TiffOutputDirectory.add(TagInfoShortOrLongOrRational tagInfo,
short... values) |
void |
TiffOutputDirectory.add(TagInfoShortOrLong tagInfo,
short... values) |
void |
TiffOutputDirectory.add(TagInfoShortOrRational tagInfo,
RationalNumber... values) |
void |
TiffOutputDirectory.add(TagInfoShortOrRational tagInfo,
short... values) |
void |
TiffOutputDirectory.add(TagInfoShort tagInfo,
short value) |
void |
TiffOutputDirectory.add(TagInfoShorts tagInfo,
short... values) |
void |
TiffOutputDirectory.add(TagInfoSLong tagInfo,
int value) |
void |
TiffOutputDirectory.add(TagInfoSLongs tagInfo,
int... values) |
void |
TiffOutputDirectory.add(TagInfoSRational tagInfo,
RationalNumber value) |
void |
TiffOutputDirectory.add(TagInfoSRationals tagInfo,
RationalNumber... values) |
void |
TiffOutputDirectory.add(TagInfoSShort tagInfo,
short value) |
void |
TiffOutputDirectory.add(TagInfoSShorts tagInfo,
short... values) |
void |
TiffOutputDirectory.add(TagInfoXpString tagInfo,
String value) |
void |
TiffOutputSet.addDirectory(TiffOutputDirectory directory) |
TiffOutputDirectory |
TiffOutputSet.addExifDirectory() |
TiffOutputDirectory |
TiffOutputSet.addGPSDirectory() |
TiffOutputDirectory |
TiffOutputSet.addInteroperabilityDirectory() |
TiffOutputDirectory |
TiffOutputSet.addRootDirectory() |
protected static TiffOutputField |
TiffOutputField.createOffsetField(TagInfo tagInfo,
ByteOrder byteOrder) |
TiffOutputDirectory |
TiffOutputSet.getOrCreateExifDirectory() |
TiffOutputDirectory |
TiffOutputSet.getOrCreateGPSDirectory() |
TiffOutputDirectory |
TiffOutputSet.getOrCreateRootDirectory() |
protected List<org.apache.commons.imaging.formats.tiff.write.TiffOutputItem> |
TiffOutputSet.getOutputItems(org.apache.commons.imaging.formats.tiff.write.TiffOutputSummary outputSummary) |
protected List<org.apache.commons.imaging.formats.tiff.write.TiffOutputItem> |
TiffOutputDirectory.getOutputItems(org.apache.commons.imaging.formats.tiff.write.TiffOutputSummary outputSummary) |
protected void |
TiffOutputField.setData(byte[] bytes) |
void |
TiffOutputSet.setGPSInDegrees(double longitude,
double latitude)
A convenience method to update GPS values in EXIF metadata.
|
protected org.apache.commons.imaging.formats.tiff.write.TiffOutputSummary |
TiffImageWriterBase.validateDirectories(TiffOutputSet outputSet) |
void |
TiffImageWriterLossy.write(OutputStream os,
TiffOutputSet outputSet) |
void |
TiffImageWriterLossless.write(OutputStream os,
TiffOutputSet outputSet) |
abstract void |
TiffImageWriterBase.write(OutputStream os,
TiffOutputSet outputSet) |
protected void |
TiffOutputField.writeField(BinaryOutputStream bos) |
void |
TiffImageWriterBase.writeImage(BufferedImage src,
OutputStream os,
Map<String,Object> params) |
void |
TiffOutputDirectory.writeItem(BinaryOutputStream bos) |
Modifier and Type | Method and Description |
---|---|
void |
WbmpImageParser.writeImage(BufferedImage src,
OutputStream os,
Map<String,Object> params) |
Modifier and Type | Method and Description |
---|---|
void |
XbmImageParser.writeImage(BufferedImage src,
OutputStream os,
Map<String,Object> params) |
Modifier and Type | Method and Description |
---|---|
void |
XpmImageParser.writeImage(BufferedImage src,
OutputStream os,
Map<String,Object> params) |
Modifier and Type | Method and Description |
---|---|
static void |
Dithering.applyFloydSteinbergDithering(BufferedImage image,
Palette palette)
Changes the given image to only use colors from the given palette,
applying Floyd-Steinberg dithering in the process.
|
int |
QuantizedPalette.getPaletteIndex(int rgb) |
int |
Palette.getPaletteIndex(int rgb)
Looks up the palette index for a given color.
|
Palette |
PaletteFactory.makeQuantizedRgbaPalette(BufferedImage src,
boolean transparent,
int max)
Builds an inexact possibly translucent palette of at most
max colors in src
using the traditional Median Cut algorithm. |
boolean |
MedianCut.performNextMedianCut(List<org.apache.commons.imaging.palette.ColorGroup> colorGroups,
boolean ignoreAlpha) |
boolean |
MostPopulatedBoxesMedianCut.performNextMedianCut(List<org.apache.commons.imaging.palette.ColorGroup> colorGroups,
boolean ignoreAlpha) |
boolean |
LongestAxisMedianCut.performNextMedianCut(List<org.apache.commons.imaging.palette.ColorGroup> colorGroups,
boolean ignoreAlpha) |
Palette |
MedianCutQuantizer.process(BufferedImage image,
int maxColors,
MedianCut medianCut) |
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.