4 # A.k.a `Best web-album Of the world, Or your money back, Humerus'.
6 # The acronyn sucks, however this is a tribute to Dragon Ball by
7 # Akira Toriyama, where the last enemy beaten by heroes of Dragon
8 # Ball is named "Boo". But there was already a free software project
9 # called Boo, so this one will be it "Booh". Or whatever.
12 # Copyright (c) 2004 Guillaume Cottenceau <gc3 at bluewin.ch>
14 # This software may be freely redistributed under the terms of the GNU
15 # public license version 2.
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 bindtextdomain("booh")
23 #- we often will want to have one size to nicely fit 800x600 screens,
24 #- one for 1024x768 and one for 1280x1024
25 #- it's necessary to fit according to the typical space taken by
26 #- widgets defined in the skeleton of the theme
28 #- ***IMPORTANT***: CHOOSE 4/3 ASPECT RATIO SIZES (for thumbnails)!
32 'description' => _("Sizes that should fit browsers in fullscreen for 800x600 screens"),
33 'fullscreen' => '600x331',
34 'thumbnails' => '192x144',
35 'optimizedforwidth' => '800',
40 'description' => _("Sizes that should fit browsers in fullscreen for 1024x768 screens"),
41 'fullscreen' => '758x422',
42 'thumbnails' => '240x180',
43 'optimizedforwidth' => '1024',
48 'description' => _("Sizes that should fit browsers in fullscreen for 1280x1024 screens"),
49 'fullscreen' => '960x528',
50 'thumbnails' => '309x232',
51 'optimizedforwidth' => '1280',
55 'description' => _("Sizes that should fit browsers in fullscreen for 1400x1050 screens"),
56 'fullscreen' => '1050x576',
57 'thumbnails' => '328x245',
58 'optimizedforwidth' => '1400',
63 'description' => _("Sizes that should fit browsers in fullscreen for 1600x1200 screens"),
64 'fullscreen' => '1200x660',
65 'thumbnails' => '375x281',
66 'optimizedforwidth' => '1600',
70 'name' => 'widescreen',
71 'description' => _("Sizes that should fit browsers in fullscreen for 1680x1050 screens"),
72 'fullscreen' => '1200x576',
73 'thumbnails' => '390x245',
74 'optimizedforwidth' => '1680',
78 $allowed_N_values = [ 3, 4, 5, 6, 8, 12 ]
81 $albums_thumbnail_size = '300x225'
84 :image_iteration => proc { |content, type|
85 return content.sub(/width:(\d+)px/) { "width:" + ($1.to_i + 8).to_s + "px" }