Class: Poleica::Types::Image

Inherits:
Object
  • Object
show all
Defined in:
lib/poleica/types/image.rb

Overview

Image Type

Constant Summary collapse

COMPATIBLE_MIMETYPES =
[
  'image/x-portable-pixmap', # .ppm, .pgm, .pbm, .pnm
  'image/x-portable-bitmap', # .pbm
  'image/x-ms-bmp',          # .bmp
  'image/svg+xml',           # .svg
  'image/jpeg',              # .jpeg, .jpg
  'image/tiff',              # .tiff, .tif
  'image/gif',               # .gif
  'image/png'                # .png
]
COMPATIBLE_EXTENSIONS =
%w(
  tiff
  jpeg
  ppm
  pgm
  pnm
  pbm
  bmp
  svg
  jpg
  tif
  gif
  png
)

Instance Method Summary collapse

Constructor Details

#initialize(_file_path) ⇒ Image

Returns a new instance of Image.



32
33
# File 'lib/poleica/types/image.rb', line 32

def initialize(_file_path)
end