Generate thumbnails to output/, not to content/. Released 0.4.4.

master
Jakub Stastny aka botanicus 2011-07-10 16:33:10 +01:00
parent 70fdcae3cf
commit 5ab65ff1e7
2 changed files with 2 additions and 3 deletions

View File

@ -12,12 +12,11 @@ require "nokogiri"
# before Ace::ImageThumbnailerFilter, default_thumb_size: 550
# end
# FIXME: generate thumbnail to output/, not to content/ !!!
module Ace
class ImageThumbnailerFilter < Filter
def thumb_path(file_name)
@file_name ||= file_name
@thumb_path ||= file_name.gsub(/\.([^\.]*)$/, '_thumb.\1')
@thumb_path ||= file_name.gsub(/content\/(.+)\.([^\.]*)$/, 'output/\1_thumb.\2')
end
def thumb_server_path

View File

@ -1,5 +1,5 @@
# encoding: utf-8
module Ace
VERSION = "0.4.3"
VERSION = "0.4.4"
end