Sha256: 92630c63c0fb4181a9fdb9f80c903b16ea0bb9be064f3ea4b3583c8b153208ff
Contents?: true
Size: 436 Bytes
Versions: 19
Compression:
Stored size: 436 Bytes
Contents
# frozen_string_literal: true Prawn::SVG::Elements::Image.prepend (Module.new do def image_dimensions data unless (handler = find_image_handler data) raise ::Prawn::SVG::Elements::Base::SkipElementError, 'Unsupported image type supplied to image tag' end image = handler.new data [image.width.to_f, image.height.to_f] end def find_image_handler data Prawn.image_handler.find data rescue nil end end)
Version data entries
19 entries across 19 versions & 1 rubygems