From d8b275edc6960691c9596467b9b32383d0d6a08a Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Tue, 25 Jun 2019 14:31:41 -0700 Subject: [PATCH] Update retina-scale to handle fractions --- retina-scale | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/retina-scale b/retina-scale index 22658c0..d9b53af 100755 --- a/retina-scale +++ b/retina-scale @@ -37,8 +37,8 @@ unless prefix && prefix.strip.length > 0 exit 3 end if raw_width && raw_height - width = raw_width.to_i - height = raw_height.to_i + width = raw_width.to_f + height = raw_height.to_f else width, height = image_dimensions(in_file).map { |x| x / 3 } end