<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Code Spatter - Latest Comments in Quick Thumbnails in Django</title><link>http://codespatter.disqus.com/</link><description></description><language>en</language><lastBuildDate>Sun, 26 Jul 2009 03:17:19 -0000</lastBuildDate><item><title>Re: Quick Thumbnails in Django</title><link>http://codespatter.com/2008/09/13/quick-thumbnails-in-django/#comment-13345958</link><description>Great post, thanks.  I especially liked learning about StringIO as I didn't know about it before now.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">wkoorts</dc:creator><pubDate>Sun, 26 Jul 2009 03:17:19 -0000</pubDate></item><item><title>Re: Quick Thumbnails in Django</title><link>http://codespatter.com/2008/09/13/quick-thumbnails-in-django/#comment-8895243</link><description>I updated this post. I was thinking the uploaded file was deleted after using it, but I just needed to reset the file. Django's InMemoryUploadedFile uses StringIO. Doing file.seek(0)&lt;br&gt; will reset the StringIO file to be ready to create another thumbnail.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gallard</dc:creator><pubDate>Fri, 01 May 2009 10:54:36 -0000</pubDate></item><item><title>Re: Quick Thumbnails in Django</title><link>http://codespatter.com/2008/09/13/quick-thumbnails-in-django/#comment-2924636</link><description>I'm glad this helped. That was the hardest part to figure out. I didn't want to create a temporary file on the file system and StringIO wasn't the first thing I tried.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gallard</dc:creator><pubDate>Tue, 07 Oct 2008 18:00:03 -0000</pubDate></item><item><title>Re: Quick Thumbnails in Django</title><link>http://codespatter.com/2008/09/13/quick-thumbnails-in-django/#comment-2924561</link><description>Thank you for the StringIO tip, it saved my time :-)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dobrych</dc:creator><pubDate>Tue, 07 Oct 2008 17:54:37 -0000</pubDate></item><item><title>Re: Quick Thumbnails in Django</title><link>http://codespatter.com/2008/09/13/quick-thumbnails-in-django/#comment-2897271</link><description>Thanks for the link. I will probably check that out since I know I will want more features at some point.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gallard</dc:creator><pubDate>Mon, 06 Oct 2008 15:12:44 -0000</pubDate></item><item><title>Re: Quick Thumbnails in Django</title><link>http://codespatter.com/2008/09/13/quick-thumbnails-in-django/#comment-2896863</link><description>I'm all for writing a little code to understand a library like PIL. It's worth noting sorl-thumbnail (&lt;a href="http://code.google.com/p/sorl-thumbnail/" rel="nofollow"&gt;http://code.google.com/p/sorl-thumbnail/&lt;/a&gt;), however, as a django app that solves just this problem... It can do a lot of things but at the simplest level you can just use a template tag to specify the thumbnail size and thumbnails are generated and cached for future use. A very nice app...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">simeonf</dc:creator><pubDate>Mon, 06 Oct 2008 14:47:24 -0000</pubDate></item><item><title>Re: Quick Thumbnails in Django</title><link>http://codespatter.com/2008/09/13/quick-thumbnails-in-django/#comment-2894258</link><description>I'll probably stick with my method since it gets the processing done initially and avoids the case where many images all need to be resized on a single page load.&lt;br&gt;&lt;br&gt;Although, having a filter to do that will be convenient if you change your mind on the thumbnail size.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gallard</dc:creator><pubDate>Mon, 06 Oct 2008 12:06:13 -0000</pubDate></item><item><title>Re: Quick Thumbnails in Django</title><link>http://codespatter.com/2008/09/13/quick-thumbnails-in-django/#comment-2893775</link><description>Take a look at this snippets: &lt;br&gt;&lt;br&gt;&lt;a href="http://www.djangosnippets.org/snippets/192/" rel="nofollow"&gt;http://www.djangosnippets.org/snippets/192/&lt;/a&gt;&lt;br&gt;&lt;br&gt;Thumbnails are generated in a lazy way. I like the idea.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Batiste</dc:creator><pubDate>Mon, 06 Oct 2008 11:35:29 -0000</pubDate></item><item><title>Re: Quick Thumbnails in Django</title><link>http://codespatter.com/2008/09/13/quick-thumbnails-in-django/#comment-2541049</link><description>I hope it helps you out when you need it. I just started learning django and python  when trying to figure this out and that is probably why it took me a while.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gallard</dc:creator><pubDate>Tue, 23 Sep 2008 10:04:12 -0000</pubDate></item><item><title>Re: Quick Thumbnails in Django</title><link>http://codespatter.com/2008/09/13/quick-thumbnails-in-django/#comment-2539278</link><description>I am doing a small project in Django (I'm a Python newbie, learning as I go). I initially wanted to deal with thumbnails, but finally skipped it, since was not really relevant to the project. But I'll definitely try this when I start working on improvements.&lt;br&gt;&lt;br&gt;Thanks for sharing! :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Arien</dc:creator><pubDate>Tue, 23 Sep 2008 06:23:42 -0000</pubDate></item></channel></rss>