tags:

views:

106

answers:

1

There's a nice plugin for Frog CMS that lets you just type in yourpicture.120x120.jpg or whatever, and it will automatically use the image in that dimension. If it doesn't exist, it creates it and adds it to the filesystem.

http://www.naehrstoff.ch/code/image-resize-for-frog

I was wondering if there's anything like this in Django/Python?

+5  A: 

I think this snippet is close to what you need: Dynamic thumbnail generator

You might also want to investigate sorl-thumbnail which, even though it codes the thumbnail dimensions in the template instead of the URL, is more flexible/powerful.

Van Gale
sorl can do thumbnails in the filename too.
andybak
Oh thanks Andy. That's what I get for just going from memory and not checking the docs :)
Van Gale
Awesome. Thanks!
rick