net.n12n

exif

package exif

Library to read EXIF meta-data.

Main entry point is net.n12n.exif.JpegMetaData and its companion object.

Basic structure of JPEG meta-data is:

There are three types of IFDs, net.n12n.exif.TiffIfd, net.n12n.exif.ExifIfd and net.n12n.exif.GpsIfd.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. exif
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class AsciiTag extends ValueTag[String]

  2. case class AttributeNotFoundException(tag: String) extends Exception with Product with Serializable

    Exception thrown by net.n12n.exif.Ifd attr methods in case the attribute was not found.

  3. class ByteSeq extends AnyRef

    A sequence of bytes which may be converted to different types.

  4. class ByteTag extends ValueTag[ByteSeq]

  5. class ComSegment extends Segment

  6. class ExifIfd extends Ifd

    IFD defined by EXIF standard.

  7. class ExifSegment extends Segment

    Exif segment.

    Exif segment. An Exif segment contains at least one IFD (Image File Directory), the first IFD, called 0thIFD is mandatory all others are optional.

    To see which attributes are defined in which IFD check the corresponding companion objects net.n12n.exif.TiffIfd, net.n12n.exif.ExifIfd and net.n12n.exif.GpsIfd.

  8. trait ExifTag[T] extends TypedTag[T]

  9. abstract class GenericType[T] extends Type

    Generic IFD attribute type.

  10. class GpsIfd extends Ifd

    IFD for GPS related data.

  11. trait GpsTag[T] extends TypedTag[T]

    Marker trait for GPS IFD tags.

    Marker trait for GPS IFD tags.

    T

  12. abstract class Ifd extends AnyRef

    Image-File-Directory (IFD) structure.

    Image-File-Directory (IFD) structure. An IFD is a container for net.n12n.exif.IfdAttributes.

  13. class IfdAttribute extends AnyRef

    Meta-data attributes, containing the actual data.

    Meta-data attributes, containing the actual data. An IFD attribute is identified by a net.n12n.exif.Tag and a type, they contain either a single value of the given type or a sequence of values.

  14. class JpegMetaData extends AnyRef

    Read read JPEG meta-data.

  15. class LongListTag extends ListTag[Long]

  16. class LongTag extends ValueTag[Long]

  17. case class MultiByteString(value: String, charset: Charset) extends Product with Serializable

  18. case class Numeric(value: Long) extends Product with Serializable

    Numeric value.

    Numeric value. Tags of this type can be either short or integer.

    value

    value as long.

  19. class NumericListTag extends ListTag[Numeric]

  20. class NumericTag extends ValueTag[Numeric]

  21. case class Rational(numerator: Long, denominator: Long) extends Product with Serializable

  22. class RationalListTag extends ListTag[Rational]

  23. class RationalTag extends ValueTag[Rational]

  24. class Segment extends AnyRef

    A segment is a byte sequence starting with a two byte marker, a two byte length field followed by data.

    A segment is a byte sequence starting with a two byte marker, a two byte length field followed by data. The length is defined as the length of the data plus 2 bytes (the length field itself) but without the marker.

  25. class ShortListTag extends ListTag[Int]

  26. class ShortTag extends ValueTag[Int]

  27. case class SignedRational(numerator: Int, denominator: Int) extends Product with Serializable

  28. class SignedRationalTag extends ValueTag[SignedRational]

  29. trait Tag extends AnyRef

  30. abstract class TagImpl extends Tag

    Create a marker tag.

  31. class TiffIfd extends Ifd

    IFD defined by TIFF standard.

  32. trait TiffTag[T] extends TypedTag[T]

  33. abstract class Type extends AnyRef

    IFD attribute types.

  34. trait TypedTag[T] extends Tag

  35. class Undefined extends ByteSeq

  36. class UndefinedTag extends ValueTag[Undefined]

  37. class UserCommentTag extends ValueTag[MultiByteString]

Value Members

  1. object ByteOrder extends Enumeration

  2. object ByteSeq

  3. object Exif extends App

    Simple command-line tool to view Exif segment content.

  4. object ExifIfd

  5. object ExifSegment

  6. object GpsIfd

    GPS IFD tags.

  7. object IfdAttribute

  8. object JpegMetaData

    Read read JPEG meta-data.

    Read read JPEG meta-data.

    Example: List all attributes

    JpegMetaData("image.jpg").exif.foreach(_.ifds.flatMap(_.attributes).foreach(
      attr => println(s"${attr.tag.name}: ${attr.value}")))
  9. object MultiByteString extends Serializable

  10. object Numeric extends Serializable

    Numeric value.

  11. object Orientation extends Enumeration

    Image orientation.

  12. object Segment

  13. object TiffIfd

  14. object Type

    Simple types used in JPEG/EXIF.

Inherited from AnyRef

Inherited from Any

Ungrouped