diff --git a/lib/wraith/cli.rb b/lib/wraith/cli.rb index 5f445ad6..6fb5bfc6 100644 --- a/lib/wraith/cli.rb +++ b/lib/wraith/cli.rb @@ -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 diff --git a/lib/wraith/crop.rb b/lib/wraith/crop.rb index f75e70de..26c45c33 100644 --- a/lib/wraith/crop.rb +++ b/lib/wraith/crop.rb @@ -16,8 +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" - width = image_dimensions(base)[0] base_height = image_dimensions(base)[1] compare_height = image_dimensions(compare)[1] @@ -30,6 +28,8 @@ def crop_images height_to_crop_to = compare_height end + logger.debug "Cropping image: #{image_to_crop}" + crop_task(image_to_crop, height_to_crop_to, width) end end