title: django - Things to know about sorl-thumbnail
body: <p>I am using sorl-thumbnail to create thumbnails for my project. I am implementing it only in templates and not in the models or the view. And each of the thumbnail are linked with their original image, which are used by a lightbox. As a newbie, I wanted to know, some of its functionality:</p>
  
  <ol>
  <li>Whether implementing it only in the <code>template</code> is the same, as using it in the <code>models</code> or the <code>view</code> and creating a new thumbnail for each one?</li>
  <li>How to configure different thumbnails for different image, as it can be done in <code>easy_thumbnail</code>?</li>
  <li>How to override the default values, eg: override the value of <code>Quality</code>, etc.</li>
  </ol>
  
  <p>And lastly, is it a correct way of implementing it? Any advice or suggestion will be much appreciated. Thank you.</p>
  
  <p>html:</p>
  
  <pre><code>{% for photo in photos %}
      &lt;div class="thumbnail_container"&gt;
          &lt;a href="{{MEDIA_URL}}{{photo.image}}" class="gallery" title="{{photo.title}}"&gt;
              {% thumbnail photo.image "200x200" as im %}
                  &lt;img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}"  class="thumbnail"&gt;
              {% endthumbnail %}
          &lt;/a&gt;
      &lt;/div&gt;
  {% endfor %}
  </code></pre>
  
  <p><strong>Edit:</strong></p>
  
  <p>How to achive something like this for the sorl-thumbnails, which can be done in easy-thumbnails:</p>
  
  <p>settings.py</p>
  
  <pre><code>THUMBNAIL_ALIASES = {
      '': {
          'avatar': {'size': (100,100), 'crop': True},
          'forum': {'size': (203,103), 'crop':False},
      },
  }
  </code></pre>
  
  <p>And then in the templates I can just chose from the aliases I have defined in the settings.py:</p>
  
  <pre><code>&lt;img src="/static/{{forum.image |thumbnail_url:'forum' }}"&gt;
  </code></pre>
  
  <p>or </p>
  
  <pre><code>&lt;img src="/static/{{forum.image |thumbnail_url:'avatar' }}"&gt;
  </code></pre>