gluttonberg-core 2.5.8 → 2.5.9

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.
@@ -90,12 +90,13 @@ module Gluttonberg
90
90
  #todo
91
91
  begin
92
92
  image.resize(suggested_measures(image, config[:geometry]))
93
- image.arguments << " -gravity Center -crop #{config[:geometry].delete("#")}+0+0 +repage"
93
+ image.arguments << " -gravity Center -crop #{config[:geometry].delete("#")}+0+0 +repage #{config[:grayscale] && config[:grayscale] == true ? "-colorspace Gray":""}"
94
94
  rescue => e
95
95
  puts e
96
96
  end
97
97
  else
98
98
  image.resize config[:geometry]
99
+ image.arguments << "-colorspace Gray" if config[:grayscale] && config[:grayscale] == true
99
100
  end
100
101
  image.save File.join(asset.tmp_directory, file_name)
101
102
  asset.move_tmp_file_to_actual_directory(file_name, true)
@@ -11,7 +11,7 @@ namespace :gluttonberg do
11
11
  if category
12
12
  assets = category.assets #Asset.all
13
13
  assets.each do |asset|
14
- p "thumb-nailing '#{asset.file_name}' "
14
+ p "Generating thumbnails for #{asset.file_name}"
15
15
  if !File.exist?(asset.tmp_location_on_disk) && !File.exist?(asset.tmp_original_file_on_disk)
16
16
  asset.download_asset_to_tmp_file
17
17
  end
@@ -1,3 +1,3 @@
1
1
  module Gluttonberg
2
- VERSION = "2.5.8"
2
+ VERSION = "2.5.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gluttonberg-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.8
4
+ version: 2.5.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-02-25 00:00:00.000000000 Z
15
+ date: 2013-03-27 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: authlogic