We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum

Forum

Thread tagged as: Problem, Addons, Events

Event Image issue

I'm using the event app for the first time and I'm struggling to get it to use the cropped version of the image. I haven't changed the default template much so far (just added height and crop);

event.html

<div class="vevent">
    <h2 class="summary"><perch:events id="eventTitle" /></h2>
    <h3><perch:events id="eventLocation" label="Location" /></h3>
    <p class="dtstart"><span class="value-title" title="<perch:events id="eventDateTime" format="c" />"><perch:events id="eventDateTime" format="%c" /></span></p>
    <div class="description"><perch:events id="eventDescHTML" type="textarea" markdown="true" editor="markitup" encode="false" /></div>
    <p class="category"><perch:events id="category_names" encode="false" /></p>
    <perch:if exists="image">
        <img src="<perch:events id="image" type="image" label="Image" width="1200" height="550" crop="true" />" class="img-responsive" alt="<perch:events id="eventTitle" />" />
    </perch:if>
    <perch:events id="eventKeyWhere" label="Where" type="textarea" markdown="true" editor="markitup"/>
    <perch:events id="eventKeyAdditional" label="Additional" type="textarea" markdown="true" editor="markitup"/>
</div>

When I save the image it shows that its 1200x550 in admin, but when I view the source of the page its using; <img src="/perch/resources/image.jpg" class="img-responsive" alt="Another here" />

The resized image is also in the resources folder. Do I need to specify the size somewhere else too?

Diagnostics;

Perch: 2.8.32, PHP: 5.4.42, MySQL: mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $, with PDO
Server OS: Darwin, cgi-fcgi
Installed apps: content (2.8.32), assets (2.8.32), categories (2.8.32), perch_events (1.9.3)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_events', );
PERCH_LOGINPATH: /perch
PERCH_PATH: /Volumes/FFD Web Work/Hinckley-Bosworth Medical Alliance/root/perch
PERCH_CORE: /Volumes/FFD Web Work/Hinckley-Bosworth Medical Alliance/root/perch/core
PERCH_RESFILEPATH: /Volumes/FFD Web Work/Hinckley-Bosworth Medical Alliance/root/perch/resources
Image manipulation: GD
PHP limits: Max upload 32M, Max POST 32M, Memory: 128M, Total max file upload: 32M
F1: 2edba60ed1f613d6dd804feb202456a2
Resource folder writeable: Yes
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
REQUEST_URI: /perch/core/settings/diagnostics/
DOCUMENT_ROOT: /Volumes/FFD Web Work/Hinckley-Bosworth Medical Alliance/root
HTTP_HOST: hbma
Wayne Hooper

Wayne Hooper 6 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Have you updated the tag in the template you're using to display the image?

Thanks Drew. Got my templates mixed up and forgot about my details template