I'm using a bash script to copy a handful of test images to my media/uploads dirs that FactoryBoy then uses to populate a few FileBrowseFields (just loading lots of dummy data here). When I view any of the FileBrowseFields within the admin, the FILEBROWSER_ADMIN_THUMBNAIL version is correctly created and rendered (60x60). However, if I try to call any of the other versions (from within a template) that I've specified in settings.py, they aren't created and rendered for any of the test images.
Again, the 'admin_thumbnail' version is correctly created and rendered within grappelli, but none of the other versions are created and rendered when requested via custom templates.
The catch: if I manually upload an image, I can request any custom version in a custom template and it's correctly rendered and created.
All of this is happening on an Ubuntu 12.10 machine, and I've checked that the owner, group and permissions all line up on both the test images and images that are uploaded manually.
Any help would be greatly appreciated,
Jonathan
settings.py
FILEBROWSER_VERSIONS = {
"admin_thumbnail": {
"verbose_name": "Admin Thumbnail",
"width": 60,
"height": 60,
"opts": "crop"},
"marquee": {
"verbose_name": "Marquee",
"width": 1400,
"height": 700,
"opts": ""},
"casestudy_teaser_image": {
"verbose_name": "CaseStudy Teaser Image",
"width": 300,
"height": 190,
"opts": ""},
"casestudy_image_large": {
"verbose_name": "CaseStudy Image Large",
"width": 495,
"height": 245,
"opts": ""},
"casestudy_image_medium": {
"verbose_name": "CaseStudy Image Medium",
"width": 300,
"height": 244,
"opts": ""},
"casestudy_image_small": {
"verbose_name": "CaseStudy Image Small",
"width": 165,
"height": 244,
"opts": ""},
"service_icon": {
"verbose_name": "Service Icon",
"width": 55,
"height": 55,
"opts": ""},
"staffprofile_portrait_small": {
"verbose_name": "StaffProfile Portrait Small",
"width": 135,
"height": 135,
"opts": ""},
"staffprofile_portrait_large": {
"verbose_name": "StaffProfile Portrait Large",
"width": 300,
"height": 300,
"opts": ""},
}
FILEBROWSER_ADMIN_VERSIONS = []
FILEBROWSER_ADMIN_THUMBNAIL = 'admin_thumbnail'
index.html
{% extends "base.html" %}
{% load fb_versions %}
{% load flatblock_tags %}
{% load portfolio_extras %}
{% block title %}Index{{ block.super }}{% endblock title %}
{% block body_class %}front{% endblock body_class %}
{% block marquee %}
<div id="marquee" style="background: #{{ marquee.bg_color }} url({% version marquee.image 'marquee' %}) no-repeat center center;">
<div class="marquee-content">
<h2>{{ marquee.title }}</h2>
</div>
</div>
{% endblock marquee %}
{% block main %}
{% if casestudy_list %}
<ul class="case-study-features clearfix">
{% for casestudy in casestudy_list %}
<li>
<a href="{% url 'portfolio:casestudy_detail'
casestudy.id casestudy.slug %}">
<img src="{{ casestudy.teaser_image }}" alt="" />
<div class="related-info">
<h5>{{ casestudy.title }}</h5>
<p>{{ casestudy.description }}</p>
</div>
</a>
</li>
{% endfor %}
</ul>
{% endif %}
<h2 class="feature title">Clients We Work With</h2>
{% clients %}
{% flatblock "index-intro" %}
{% endblock main %}