Packages

 

com.aspose.imaging.exif

Class JpegExifData



  • public final class JpegExifData
    extends ExifData

    EXIF data container for jpeg files.

    • Field Detail

      • MAX_EXIF_SEGMENT_SIZE

        public static final int MAX_EXIF_SEGMENT_SIZE

        The maximum EXIF segment size in bytes allowed.

        See Also:
        Constant Field Values
    • Constructor Detail

      • JpegExifData

        public JpegExifData()

        Initializes a new instance of the JpegExifData class.

      • JpegExifData

        public JpegExifData(TiffDataType[] exifdata)

        Initializes a new instance of the JpegExifData class with data from array.

        Parameters:
        exifdata - Array of EXIF tags together with common and GPS tags.
      • JpegExifData

        public JpegExifData(TiffDataType[] commonTags,
                            TiffDataType[] exifTags,
                            TiffDataType[] gpsTags)

        Initializes a new instance of the JpegExifData class with data from array.

        Parameters:
        commonTags - The common tags.
        exifTags - The EXIF tags.
        gpsTags - The GPS tags.
    • Method Detail

      • getArtist

        public String getArtist()

        Gets or sets the artist.

        Value: The artist.
      • setArtist

        public void setArtist(String value)

        Gets or sets the artist.

        Value: The artist.
      • getBitsPerSample

        public int[] getBitsPerSample()

        Gets or sets the bits per sample.

        Value: The bits per sample.
      • setBitsPerSample

        public void setBitsPerSample(int[] value)

        Gets or sets the bits per sample.

        Value: The bits per sample.
      • getCompression

        public int getCompression()

        Gets or sets the compression.

        Value: The compression.
      • setCompression

        public void setCompression(int value)

        Gets or sets the compression.

        Value: The compression.
      • getCopyright

        public String getCopyright()

        Gets or sets the copyright.

        Value: The copyright.
      • setCopyright

        public void setCopyright(String value)

        Gets or sets the copyright.

        Value: The copyright.
      • getDateTime

        public String getDateTime()

        Gets or sets the date time.

        Value: The date time.
      • setDateTime

        public void setDateTime(String value)

        Gets or sets the date time.

        Value: The date time.
      • getImageDescription

        public String getImageDescription()

        Gets or sets the image description.

        Value: The image description.
      • setImageDescription

        public void setImageDescription(String value)

        Gets or sets the image description.

        Value: The image description.
      • getImageLength

        public long getImageLength()

        Gets or sets the image length.

        Value: The length of the image.
      • setImageLength

        public void setImageLength(long value)

        Gets or sets the image length.

        Value: The length of the image.
      • getImageWidth

        public long getImageWidth()

        Gets or sets the image width.

        Value: The width of the image.
      • setImageWidth

        public void setImageWidth(long value)

        Gets or sets the image width.

        Value: The width of the image.
      • getMake

        public String getMake()

        Gets or sets the manufacturer of the recording equipment.

        Value: The manufacturer of the recording equipment.
      • setMake

        public void setMake(String value)

        Gets or sets the manufacturer of the recording equipment.

        Value: The manufacturer of the recording equipment.
      • getModel

        public String getModel()

        Gets or sets the model.

        Value: The model.
      • setModel

        public void setModel(String value)

        Gets or sets the model.

        Value: The model.
      • getOrientation

        public int getOrientation()

        Gets or sets the orientation.

        Value: The orientation.
      • setOrientation

        public void setOrientation(int value)

        Gets or sets the orientation.

        Value: The orientation.
      • getPhotometricInterpretation

        public int getPhotometricInterpretation()

        Gets or sets the photometric interpretation.

        Value: The photometric interpretation.
      • setPhotometricInterpretation

        public void setPhotometricInterpretation(int value)

        Gets or sets the photometric interpretation.

        Value: The photometric interpretation.
      • getPlanarConfiguration

        public int getPlanarConfiguration()

        Gets or sets the planar configuration.

        Value: The planar configuration.
      • setPlanarConfiguration

        public void setPlanarConfiguration(int value)

        Gets or sets the planar configuration.

        Value: The planar configuration.
      • getPrimaryChromaticities

        public TiffRational[] getPrimaryChromaticities()

        Gets or sets the chromaticity of the three primary colors of the image.

        Value: The chromaticity of the three primary colors of the image.
      • setPrimaryChromaticities

        public void setPrimaryChromaticities(TiffRational[] value)

        Gets or sets the chromaticity of the three primary colors of the image.

        Value: The chromaticity of the three primary colors of the image.
      • getReferenceBlackWhite

        public TiffRational[] getReferenceBlackWhite()

        Gets or sets the reference black white.

        Value: The reference black white.
      • setReferenceBlackWhite

        public void setReferenceBlackWhite(TiffRational[] value)

        Gets or sets the reference black white.

        Value: The reference black white.
      • getResolutionUnit

        public int getResolutionUnit()

        Gets or sets the resolution unit.

        Value: The resolution unit.
      • setResolutionUnit

        public void setResolutionUnit(int value)

        Gets or sets the resolution unit.

        Value: The resolution unit.
      • getSamplesPerPixel

        public int getSamplesPerPixel()

        Gets or sets the samples per pixel.

        Value: The samples per pixel.
      • setSamplesPerPixel

        public void setSamplesPerPixel(int value)

        Gets or sets the samples per pixel.

        Value: The samples per pixel.
      • getSoftware

        public String getSoftware()

        Gets or sets the software.

        Value: The software.
      • setSoftware

        public void setSoftware(String value)

        Gets or sets the software.

        Value: The software.
      • getThumbnail

        public RasterImage getThumbnail()

        Gets or sets the thumbnail image.

        Value: The thumbnail.
      • setThumbnail

        public void setThumbnail(RasterImage value)

        Gets or sets the thumbnail image.

        Value: The thumbnail.
      • getTransferFunction

        public int[] getTransferFunction()

        Gets or sets the transfer function.

        Value: The transfer function.
      • setTransferFunction

        public void setTransferFunction(int[] value)

        Gets or sets the transfer function.

        Value: The transfer function.
      • getXResolution

        public TiffRational getXResolution()

        Gets or sets the x resolution.

        Value: The x resolution.
      • setXResolution

        public void setXResolution(TiffRational value)

        Gets or sets the x resolution.

        Value: The x resolution.
      • getYCbCrCoefficients

        public TiffRational[] getYCbCrCoefficients()

        Gets or sets the matrix coefficients for transformation from RGB to YCbCr image data.

        Value: The matrix coefficients for transformation from RGB to YCbCr image data.
      • setYCbCrCoefficients

        public void setYCbCrCoefficients(TiffRational[] value)

        Gets or sets the matrix coefficients for transformation from RGB to YCbCr image data.

        Value: The matrix coefficients for transformation from RGB to YCbCr image data.
      • getYCbCrPositioning

        public int getYCbCrPositioning()

        Gets or sets the position of chrominance components in relation to the luminance component.

        Value: The position of chrominance components in relation to the luminance component.
      • setYCbCrPositioning

        public void setYCbCrPositioning(int value)

        Gets or sets the position of chrominance components in relation to the luminance component.

        Value: The position of chrominance components in relation to the luminance component.
      • getYCbCrSubSampling

        public int[] getYCbCrSubSampling()

        Gets or sets the sampling ratio of chrominance components in relation to the luminance component.

        Value: The sampling ratio of chrominance components in relation to the luminance component.
      • setYCbCrSubSampling

        public void setYCbCrSubSampling(int[] value)

        Gets or sets the sampling ratio of chrominance components in relation to the luminance component.

        Value: The sampling ratio of chrominance components in relation to the luminance component.
      • getYResolution

        public TiffRational getYResolution()

        Gets or sets the y resolution.

        Value: The y resolution.
      • setYResolution

        public void setYResolution(TiffRational value)

        Gets or sets the y resolution.

        Value: The y resolution.
      • serializeExifData

        public byte[] serializeExifData()

        Serializes the EXIF data. Writes the tags values and contents. The most influencing size tag is Thumbnail tag contents.

        Returns:
        The serialized EXIF data.

        The overall segment size must be less than or equal to MaxExifSegmentSize bytes in order to produce correct jpeg image. Hint: try to reduce the thumbnail size or change its compression in case you have too big EXIF section size.