Module: DynamicImage::Model::Validations::ClassMethods

Defined in:
lib/dynamic_image/model/validations.rb

Instance Method Summary collapse

Instance Method Details

#allowed_colorspacesObject


59
60
61
62
63
64
65
# File 'lib/dynamic_image/model/validations.rb', line 59

def allowed_colorspaces
  %w(
    rgb
    cmyk
    gray
  )
end

#allowed_content_typesObject


67
68
69
70
71
72
73
74
75
76
# File 'lib/dynamic_image/model/validations.rb', line 67

def allowed_content_types
  %w(
    image/bmp
    image/gif
    image/jpeg
    image/pjpeg
    image/png
    image/tiff
  )
end