<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Code Spatter - Latest Comments in Quick Thumbnails in Django</title><link>http://codespatter.disqus.com/</link><description></description><atom:link href="https://codespatter.disqus.com/quick_thumbnails_in_django/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 23 Jul 2013 22:22:42 -0000</lastBuildDate><item><title>Re: Quick Thumbnails in Django</title><link>http://codespatter.com/2008/09/13/quick-thumbnails-in-django/#comment-974204670</link><description>&lt;p&gt;I've been looking for thumbnail creator in all over google and coding forum for 1 full day and none of them worked.. Only your code is working for me... Thank you very much! You save my day...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anon</dc:creator><pubDate>Tue, 23 Jul 2013 22:22:42 -0000</pubDate></item><item><title>Re: Quick Thumbnails in Django</title><link>http://codespatter.com/2008/09/13/quick-thumbnails-in-django/#comment-13345958</link><description>&lt;p&gt;Great post, thanks.  I especially liked learning about StringIO as I didn't know about it before now.&lt;/p&gt;</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>&lt;p&gt;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 &lt;a href="http://file.seek" rel="nofollow noopener" target="_blank" title="file.seek"&gt;file.seek&lt;/a&gt;(0)&lt;br&gt; will reset the StringIO file to be ready to create another thumbnail.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Allard</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>&lt;p&gt;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.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Allard</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>&lt;p&gt;Thank you for the StringIO tip, it saved my time :-)&lt;/p&gt;</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>&lt;p&gt;Thanks for the link. I will probably check that out since I know I will want more features at some point.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Allard</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>&lt;p&gt;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 noopener" target="_blank" title="http://code.google.com/p/sorl-thumbnail/)"&gt;http://code.google.com/p/so...&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...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">simeon</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>&lt;p&gt;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;/p&gt;&lt;p&gt;Although, having a filter to do that will be convenient if you change your mind on the thumbnail size.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Allard</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>&lt;p&gt;Take a look at this snippets:&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.djangosnippets.org/snippets/192/" rel="nofollow noopener" target="_blank" title="http://www.djangosnippets.org/snippets/192/"&gt;http://www.djangosnippets.o...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Thumbnails are generated in a lazy way. I like the idea.&lt;/p&gt;</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>&lt;p&gt;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.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Allard</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>&lt;p&gt;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;/p&gt;&lt;p&gt;Thanks for sharing! :)&lt;/p&gt;</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>