minicomic-backend/classes/TempBitmapToWeb.rb
2010-01-10 09:54:53 -05:00

19 lines
448 B
Ruby

require File.dirname(__FILE__) + '/OutputFilter.rb'
#
# Process an input file for the Web
#
class TempBitmapToWeb < OutputFilter
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'])
super(info)
end
end