lib/djatoka/iiif_request.rb in djatoka-0.3.1 vs lib/djatoka/iiif_request.rb in djatoka-0.3.2
- old
+ new
@@ -127,10 +127,10 @@
s #noop
when /^(\d+),$/
region.scale( ["#{$1}", "0"] ) #w => w,0
when /^,(\d+)$/
region.scale( ["0", "#{$1}"] ) #h => 0,h
- when /^pct:(\d+)$/i
+ when /^pct:(\d*\.?\d*)$/i
dj_scale = $1.to_f / 100.0
region.scale(dj_scale.to_s)
when /^(\d+),(\d+)$/
region.scale("#{$1},#{$2}")
when /^!(\d+),(\d+)$/