Class EXIFR::JPEG
In: lib/jpeg.rb
Parent: Object

JPEG decoder

Examples

  EXIFR::JPEG.new('IMG_3422.JPG').width         # -> 2272
  EXIFR::JPEG.new('IMG_3422.JPG').exif.model    # -> "Canon PowerShot G3"

Methods

exif?   method_missing   new   thumbnail   to_hash  

External Aliases

instance_methods -> instance_methods_without_jpeg_extras

Attributes

comment  [R]  comment; a string if one comment found, an array if more, otherwise nil
exif  [R]  EXIF data if available
height  [R]  image height
width  [R]  image width

Public Class methods

file is a filename or an IO object.

Public Instance methods

Returns true when EXIF data is available.

Dispatch to EXIF. When no EXIF data is available but the method does exist for EXIF data nil will be returned.

Return thumbnail data when available.

Get a hash presentation of the image.

[Validate]