Forum

Thread tagged as: Problem, Addons, Blog

Blog Post Image not creating thumb size for list

Hi,

I've just resisted a blog post and the image used, but the image is now too big in the list view. In other words, in the post itself the image is fine, but when viewing a list of posts where there used to be a 100 x 100 thumb image, it's now too big and hasn't cropped.

The post template is:


<article class="h-entry"> <h1> <a href="<perch:blog id="postURL" type="hidden" />" rel="bookmark" class="p-name"> <perch:blog id="postTitle" type="text" label="Title" required="true" size="xl autowidth" order="1" /> </a> </h1> <p class="meta"> <time class="dt-published" datetime="<perch:blog id="postDateTime" type="date" label="Date" time="true" format="Y-m-d H:i:s" divider-before="Publishing" />"> <perch:blog id="postDateTime" type="date" time="true" format="%d %B %Y" /> </time> <perch:if exists="authorGivenName"> by <span class="p-author h-card"><perch:blog id="authorGivenName" type="hidden" /> <perch:blog id="authorFamilyName" type="hidden" /></span> </perch:if> <perch:categories id="categories" set="blog" label="Categories" display-as="checkboxes"> <a href="archive.php?cat=<perch:category id="catSlug" type="slug" />" class="p-category"> <perch:category id="catTitle" type="text" /> </a> </perch:categories> </p> <perch:if exists="image"> <div> <img src="<perch:blog id="image" type="image" width="320" height="240" crop="true" label="Image" order="4" />" alt="<perch:blog id="postTitle" />" /> </div> </perch:if> <div class="description e-content"> <perch:blog id="postDescHTML" type="textarea" label="Post" order="2" editor="markitup" markdown="true" size="xxl autowidth" required="true" /> </div> <perch:if exists="latin"> <p style="font-style:italic;"><perch:blog id="latin" type="text" label="Latin Name (if plant entry)" order="2" /></p> </perch:if> <perch:if exists="plantHistoric"> <div> <h5 style="margin-bottom:0px; font-size:15px;"><strong>Historic:</strong></h5> <perch:blog id="plantHistoric" type="textarea" editor="markitup" label="Historic (if plant entry)" encode="false" textile="true" /> </div> </perch:if> <perch:if exists="plantRecipe"> <div> <h5 style="margin-bottom:0px; font-size:15px;"><strong>Recipe:</strong></h5> <perch:blog id="plantRecipe" type="textarea" editor="markitup" label="Recipe (if plant entry)" encode="false" textile="true" /> </div> </perch:if> </article> <perch:blog id="excerpt" type="textarea" label="Excerpt" markdown="true" order="3" suppress="true" size="s" /> <perch:blog id="image" type="image" width="100" height="100" crop="true" suppress="true" />

and the post_in_list template is:


<perch:before> <ul class="hfeed listing"></perch:before> <li class="hentry"> <h2><a href="<perch:blog id="postURL" />" rel="bookmark" class="entry-title"><perch:blog id="postTitle" /></a></h2> <perch:if exists="image"><img style="float:right;" src="<perch:blog id="image" type="image" width="100" height="100" crop="true" />" alt="<perch:blog id="postTitle" />" /></perch:if> <div class="description entry-summary"> <perch:blog id="excerpt" type="textarea" textile="true" /> <a href="<perch:blog id="postURL" />" rel="bookmark" class="entry-title">...read more</a> <p class="entry-published date"><perch:blog id="postDateTime" format="%d %B %Y" /></p> </div> </li> <perch:after> </ul> <perch:if exists="paging"> <div class="paging"> Page <perch:blog id="current_page" /> of <perch:blog id="number_of_pages" /> <perch:if exists="not_first_page"> <a href="<perch:blog id="prev_url" encode="false" />">Previous</a> </perch:if> <perch:if exists="not_last_page"> <a href="<perch:blog id="next_url" encode="false" />">Next</a> </perch:if> </div> </perch:if> </perch:after>

My diagnostic is:


SUMMARY INFORMATION Perch: 2.8.25, PHP: 5.3.28, MySQL: mysqlnd 5.0.8-dev - 20102224 - $Id: 731e5b87ba42146a687c29995d2dfd8b4e40b325 $, with PDO Server OS: Linux, cgi-fcgi Installed apps: content (2.8.25), assets (2.8.25), categories (2.8.25), perch_blog (5.0), perch_events (1.7), perch_mailchimp (2.0.1), perch_shop_paypal (1.2.3), perch_plantcats (3.6.1) App runtimes: <?php include(PERCH_PATH.'/core/apps/content/runtime.php'); include(PERCH_PATH.'/addons/apps/perch_plantcats/runtime.php'); include(PERCH_PATH.'/addons/apps/perch_shop_paypal/runtime.php'); include(PERCH_PATH.'/addons/apps/perch_events/runtime.php'); include(PERCH_PATH.'/addons/apps/perch_blog/runtime.php'); include(PERCH_PATH.'/addons/apps/perch_mailchimp/runtime.php'); ?> PERCH_LOGINPATH: /admin PERCH_PATH: /home/sites/cookslaneherbs.co.uk/public_html/admin PERCH_CORE: /home/sites/cookslaneherbs.co.uk/public_html/admin/core PERCH_RESFILEPATH: /home/sites/cookslaneherbs.co.uk/public_html/admin/resources Image manipulation: GD PHP limits: Max upload 64M, Max POST 64M, Memory: 128M, Total max file upload: 64M F1: dc1fef2ad0fcd9f943c02ebb43d85dbc Resource folder writeable: Yes HTTP_HOST: cookslaneherbs.co.uk DOCUMENT_ROOT: /home/sites/cookslaneherbs.co.uk/public_html REQUEST_URI: /admin/core/settings/diagnostics/ SCRIPT_NAME: /admin/core/settings/diagnostics/index.php
Alex Bennett

Alex Bennett 0 points

  • 5 years ago

I've just tried again and it's working now - maybe this was because I altered the post template and it took a couple of saves to refresh?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Images are resized based on the template when the content is saved. If you changed the template but didn't save the content then the new size wouldn't be generated.