Class: ZIMG::JPEG::APP::JFIF

Inherits:
Object
  • Object
show all
Defined in:
lib/zimg/jpeg/chunks.rb

Overview

BYTE Version; /* 07h JFIF Format Revision */ BYTE Units; /* 09h Units used for Resolution */ BYTE Xdensity; /* 0Ah Horizontal Resolution */ BYTE Ydensity; /* 0Ch Vertical Resolution */ BYTE XThumbnail; /* 0Eh Horizontal Pixel Count */ BYTE YThumbnail; /* 0Fh Vertical Pixel Count */

Instance Method Summary collapse

Instance Method Details

#inspect(*args) ⇒ Object



46
47
48
49
50
# File 'lib/zimg/jpeg/chunks.rb', line 46

def inspect *args
  r = "<#{super.split(" ", 3).last}"
  r.sub!(/version=\d+/, "version=0x#{version.to_s(16)}") if version
  r
end