Skip to content

Commit

Permalink
Merge pull request #393 from BBC-News/issue374--new
Browse files Browse the repository at this point in the history
fix #374
  • Loading branch information
ChrisBAshton committed Feb 28, 2016
2 parents 4c0c3c0 + 24ac4c2 commit 8eab36f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions lib/wraith/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def save_images(config_name, history = false)
desc "crop_images [config_name]", "crops images to the same height"
def crop_images(config_name)
within_acceptable_limits do
logger.info "CROPPING IMAGES"
crop = Wraith::CropImages.new(config_name)
crop.crop_images
end
Expand Down
1 change: 0 additions & 1 deletion lib/wraith/crop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def crop_images
files = Dir.glob("#{wraith.directory}/*/*.png").sort

Parallel.each(files.each_slice(2), :in_processes => Parallel.processor_count) do |base, compare|
logger.info "cropping images"
crop_if_necessary base, compare
end
end
Expand Down

0 comments on commit 8eab36f

Please sign in to comment.