Sha256: f246220b5be6c34d13888a064b30419df8de0f06c5068369e30997c20acb12b1

Contents?: true

Size: 797 Bytes

Versions: 2

Compression:

Stored size: 797 Bytes

Contents

require 'riiif/version'
require 'riiif/engine'
module Riiif
  extend ActiveSupport::Autoload
  autoload :Image
  autoload :AbstractFileSystemResolver
  autoload :FileSystemFileResolver
  autoload :HTTPFileResolver
  autoload :Routes
  autoload :AkubraSystemFileResolver
  autoload :NilAuthorizationService

  class Error < RuntimeError; end
  class InvalidAttributeError < Error; end
  class ImageNotFoundError < Error; end
  # This error is raised when Riiif can't convert an image
  class ConversionError < Error; end

  Transformation = Struct.new(:crop, :size, :quality, :rotation, :format)
  ImageInformation = Struct.new(:width, :height)
  mattr_accessor :not_found_image # the image to use when a lookup fails
  mattr_accessor :unauthorized_image # the image to use when a lookup fails
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
riiif-1.4.3 lib/riiif.rb
riiif-1.4.2 lib/riiif.rb