imogen 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/imogen.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzMwYzg4MjlkMjE0MDBmYjYzMWZlZTZiOGZkYzcyYmE3OGU0YmQ2Yg==
4
+ YTA2MDk1MWEyM2FhODg0MTMwZTcxOWY4NzY1NDc4YjZhMGYzNGJlMg==
5
5
  data.tar.gz: !binary |-
6
- NTYzYjQ3ZDMyMzJjMjU1ODAxNmUyNDU4Mjc3YTFjZjY1NmIyYTM5Yw==
6
+ MmQyZjQwNWVmMWJjYzljYWQ2MTdlNDJkZGNjMmY4ZGYyNzBhODgwYQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MmMwZWM3MDE1ZDlmZTU5Y2U3YjQ4ZWE0ZDIxMzc2ODc3NGM0NmVhYzg2YTdk
10
- MmFiY2I4OTA2MGJkNmJlYmUxNWVlMGQ4MzZmZTQ1Yjg0ZjIwNTc3MDgyNjVh
11
- ZGVmZTMxOGMxODc1YzBjMmI4ODU1YTkzZjdhNmYwM2JlNzYxYjc=
9
+ NTBiZWY3YzlmODYyYWNkNGMwZjQ2NmNhMDk2MDk2NmJhMTU1YTEyMTNlNTE2
10
+ MmVhZjQxN2UxMTFkMDBjM2U3ZDg1YTI0NGYzMWFjZTdkYzk4MDYxZjk3MDc1
11
+ MDg5ZGRlYTY1NzU0MjlkNWNjOWJlYWFjYzA4MWFlOTNmM2E5MjE=
12
12
  data.tar.gz: !binary |-
13
- OTU3MWQ4MjI3NWY1ODAzNjQzZTg5YmI4MGMyZTU5MDYxOWI2MDAzZTgxODAz
14
- YjlhYjQwOWUwN2ZjZGFmYjcxM2U0ODdiOTM1Njg3OGYxYjNhNTc3OTg3MGMw
15
- NmNhZjc3YTQ2NGIwOWM0ZmRlNDY4N2RiMGEzOWJhMGNlOGYyODE=
13
+ NjE5NjRlZGM0NDYyNWFjYWUwYzUwYTQyNTc0NjY1YjI0OGNjNDAzYTMwYjgw
14
+ OTk0MjQ2ZGRkMTA3ZjdlMWQ3NGFkYTIzZTY3YzdmZDM5YmE3YmI1ODhmNmUz
15
+ OWI0YTM2ZTQyNDMyZWQ5MmExYTRiMGYzNjU2M2JiMTA0Mjc5YWY=
data/lib/imogen.rb CHANGED
@@ -13,7 +13,7 @@ module Imogen
13
13
  def self.convert(img, dest_path, scale=1500, format = :jpeg)
14
14
  w = img.width
15
15
  h = img.height
16
- dims = (w > h) ? [1500, 1500*h/w] : [1500*w/h, 1500]
16
+ dims = (w > h) ? [scale, scale*h/w] : [scale*w/h, scale]
17
17
  img.rescale(dims[0], dims[1]) do |scaled|
18
18
  scaled = scaled.convert_to_24bits
19
19
  dst = FreeImage::File.new(dest_path)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imogen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Armintor