From e0f4c6935e6b5c410af8c7660c6f11ffab4a9a17 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Sun, 10 Jan 2010 17:12:23 -0500 Subject: [PATCH] integration cleanups --- classes/FileProcessor.rb | 2 +- classes/TempBitmapToWeb.rb | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/classes/FileProcessor.rb b/classes/FileProcessor.rb index d11eeb6..04d4d64 100644 --- a/classes/FileProcessor.rb +++ b/classes/FileProcessor.rb @@ -42,7 +42,7 @@ class FileProcessor end end - page_index += 1 + @page_index += 1 end end diff --git a/classes/TempBitmapToWeb.rb b/classes/TempBitmapToWeb.rb index dc2dc84..7df2b43 100644 --- a/classes/TempBitmapToWeb.rb +++ b/classes/TempBitmapToWeb.rb @@ -1,18 +1,19 @@ require File.dirname(__FILE__) + '/OutputFilter.rb' +require File.dirname(__FILE__) + '/../modules/ImageProcessing.rb' # # Process an input file for the Web # class TempBitmapToWeb < OutputFilter + include ImageProcessing + def build(input, output) quality = @config['quality'] ? @config['quality'] : 80 convert("\"#{input}\" -quality #{quality} \"#{output}\"") end def filename(info) - index = info['index'].to_i - - info['date'] = @config['publish_dates'][index].strftime(@config['date_format']) + info['date'] = @config['publish_dates'][info['index'].to_i - 1].strftime(@config['date_format']) super(info) end end