Open benoitbryon opened 12 years ago
Proposal for some configuration file:
[thumbnailer]
engines =
crop
scale
favicon
[crop]
engine = thumbnailer.engines.images.Crop
[scale]
engine = thumbnailer.engines.images.Scale
[favicon]
engine =
thumbnailer.engines.images.Crop
thumbnailer.engines.images.Scale
width = 32
height = 32
Gives following URLs:
or, if we need atomic configuration for each chained engine :
[favicon]
chain =
crop-square
scale32
[crop-square]
engine = thumbnailer.engines.images.crop
width = 400
height = 400
[scale32]
engine = thumbnailer.engines.images.Scale
width = 32
Note: focus on engines for now. Use default reader and writers.