I'm working with the Singularity theme. I've noticed that when I add an 
image to a blog post, the image doesn't look right in the blog roll on the 
front page(blog list?). A thumbnail image is created for the blog roll, but 
new dimensions for the thumbnail aren't defined. Taking a look at the 
source of the img, it gives me this:
 
src="/static/media/uploads/blog_images/choose_a_pack.jpg"

This is how it looks in my browser, this long infographic is squished 
vertically:

<https://lh3.googleusercontent.com/-oNY0BKZUbho/VdQWtz5mV4I/AAAAAAAAAeE/TdegKrxfVi8/s1600/squished.JPG>


On the Singularity Theme demo 
<https://secure.mezzathe.me/static/media/preview/singularity/singularity/> 
site, 
for comparison, I inspected the first thumbnail image on the blogroll and I 
see this as a source (the image appears to be 200x200 natively):

src=
"static/media/uploads/blog/.thumbnails/sf_gg_bridge.jpg/sf_gg_bridge-200x200-0.5x0.jpg"

Any tips for where to enable this kind of functionality? I did some diving 
into theme/templates/blog and found some blocks of code in 
blog_post_list.html and blog_post_detail.html that I suspect have something 
to do with it. Those blocks each look like this:

    {% if settings.BLOG_USE_FEATURED_IMAGE and blog_post.featured_image %}
    {% block blog_post_list_post_featured_image %}
    <a href="{{ blog_post.get_absolute_url }}">
        <img src="{{ MEDIA_URL }}{% thumbnail blog_post.featured_image 270 
270 top=0 %}">
    </a>
    {% endblock %}
    {% endif %}

I thought maybe if I uncommented BLOG_USE_FEATURED_IMAGE in settings that 
would fix it, but it just crashed the dev server with a 502.

Not sure where to go from here. Thanks for any insight!


-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to