Forum
Blog Images not resizing
I'd like to have an image thumbnail in the blog previews, and the default post_in_list.html template has a good example already:
<img src="<perch:blog id="image" type="image" width="50" height="50" crop="true" />" alt="<perch:blog id="postTitle" />" />
The only problem is I'd like the thumbnail size to be a bit bigger, so if I change it to this...
<img src="<perch:blog id="image" type="image" width="150" height="150" crop="true" />" alt="<perch:blog id="postTitle" />" />
All of a sudden there's no image resizing at all and it's displaying the original uploaded image resolution. It seems only setting a height & width of 50 resizes and crops the image, everything else the size is ignored and the full res image is outputted. Is this a bug or am I doing something wrong?
Have you resaved the post after changing the image size in the template? We don't size images on the fly, it happens at edit time.
If that isn't the issue then we need to see your full template and Diagnostics Report.
Yes, I've tried adding different photos and saving too, but it still seems to not do any resizing at all.
Have you made that change in both the
post.html
template and the one you're using to display the post?Thank you... that was the issue