rothko 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/rothko/version.rb +1 -1
- data/lib/rothko.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b46bb170909cdd599a0f6f311037b4e4d9bbdcce7c0946542c7fd9a899ce290
|
4
|
+
data.tar.gz: 5b23b79a24e198f7c2fb35f8e7fd018bef2c797e0b14b5735c6f64dfc5697c27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29208222d0309ccbaf1e6b3c99b90b0ed953378f2639d0a176c2aa887f3e20bcfa09fe86fc7b1b801e12e3f07310e7b7febec380005de802005031a4c441360c
|
7
|
+
data.tar.gz: 2d91d3dfd4f9d61d175a1b23a987b7eb834147cde12a3cd17f33bbb001f23900bad2cc79dc6c523d677cd7ae0c380e0bea379981f2072a91125f0ea2a444a9ba
|
data/lib/rothko/version.rb
CHANGED
data/lib/rothko.rb
CHANGED
@@ -50,7 +50,7 @@ module Rothko
|
|
50
50
|
|
51
51
|
# Finds height of the image relative to provided width
|
52
52
|
def get_height(img)
|
53
|
-
new_height = img.height / (img.width.to_f / self.width.to_f)
|
53
|
+
new_height = (img.height / (img.width.to_f / self.width.to_f)).ceil
|
54
54
|
end
|
55
55
|
|
56
56
|
# Iterates over each pixel of resized image to find closest color
|