Sha256: eeab5623feadeb10dec5efa913fb55cd57a5a3beefaaf18ac961b756f5e0d218

Contents?: true

Size: 514 Bytes

Versions: 12

Compression:

Stored size: 514 Bytes

Contents

module IIIF::Image
  module Size
    # The width and height of the returned image are exactly w and h.
    # The aspect ratio of the returned image may be different than the extracted
    # region, resulting in a distorted image.
    class Absolute
      # @param [Integer] width
      # @param [Integer] height
      def initialize(width, height)
        @width = width
        @height = height
      end

      attr_reader :height, :width

      def to_s
        "#{width},#{height}"
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
iiif-image-api-0.3.0 lib/iiif/image/size/absolute.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/iiif-image-api-0.2.0/lib/iiif/image/size/absolute.rb
iiif-image-api-0.2.0 lib/iiif/image/size/absolute.rb
iiif-image-api-0.1.0 lib/iiif/image/size/absolute.rb
iiif-image-api-0.0.8 lib/iiif/image/size/absolute.rb
iiif-image-api-0.0.7 lib/iiif/image/size/absolute.rb
iiif-image-api-0.0.6 lib/iiif/image/size/absolute.rb
iiif-image-api-0.0.5 lib/iiif/image/size/absolute.rb
iiif-image-api-0.0.4 lib/iiif/image/size/absolute.rb
iiif-image-api-0.0.3 lib/iiif/image/size/absolute.rb
iiif-image-api-0.0.2 lib/iiif/image/size/absolute.rb
iiif-image-api-0.0.1 lib/iiif/image/size/absolute.rb