Update retina-scale to handle fractions
This commit is contained in:
parent
c38ca383ef
commit
d8b275edc6
1 changed files with 2 additions and 2 deletions
|
|
@ -37,8 +37,8 @@ unless prefix && prefix.strip.length > 0
|
||||||
exit 3
|
exit 3
|
||||||
end
|
end
|
||||||
if raw_width && raw_height
|
if raw_width && raw_height
|
||||||
width = raw_width.to_i
|
width = raw_width.to_f
|
||||||
height = raw_height.to_i
|
height = raw_height.to_f
|
||||||
else
|
else
|
||||||
width, height = image_dimensions(in_file).map { |x| x / 3 }
|
width, height = image_dimensions(in_file).map { |x| x / 3 }
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue