MechanicalMann / GoddamnGallery

It's a goddamn gallery.
1 stars 4 forks source link

Thumbnail update #20

Closed lordastley closed 10 years ago

lordastley commented 10 years ago

Add configurable modes to thumbnailing; calling the function with the existing function signature now uses a builtin PIL function to generate a square thumbnail. There is now an additional proportional mode available; this uses the thumbnail function from the PIL.

Since PIL's thumbnail() modifies the existing PIL image directly, the other thumbnailing options have been updated to also modify the existing image.

If I recall correctly, this has the side effect of speeding up average color determination, as the image being analysed is usually much smaller.

lordastley commented 10 years ago

Fixed the placeholder derive_frequent_colors function.

lordastley commented 10 years ago

Thumbnail type is now loaded from the config file.