Sha256: c1fabbb8b696747ddc39920c418c02516c55f4710785278b234fd2a637796352
Contents?: true
Size: 496 Bytes
Versions: 14
Compression:
Stored size: 496 Bytes
Contents
module Riiif module Size module Imagemagick # The width and height of the returned image is scaled to n% of the width and height # of the extracted region. The aspect ratio of the returned image is the same as that # of the extracted region. class PercentDecoder def initialize(n) @n = n end # @return [String] a resize directive for imagemagick to use def decode "#{@n}%" end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems