Forum
Gallery App image.html template ignored
Hi Just a heads up that the Gallery App in my config completely ignores the sizes and density directives in the image.html template.
Here's the proof.
Diagnostic Report
Perch Runway: 3.0.13, PHP: 7.0.20, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $, with PDO
Server OS: Darwin, apache2handler
Installed apps: content (3.0.13), assets (3.0.13), categories (3.0.13), perch_events (1.9.5), perch_gallery (2.8.9)
App runtimes: <?php $apps_list = [ 'perch_gallery', 'perch_events', ];
PERCH_LOGINPATH: /codeycms
PERCH_PATH: /Users/auser/Sites/asitey/codeycms
PERCH_CORE: /Users/auser/Sites/asite/codeycms/core
PERCH_RESFILEPATH: /Users/auser/Sites/asite/codeycms/resources
Image manipulation: GD Imagick
PHP limits: Max upload 32M, Max POST 32M, Memory: 128M, Total max file upload: 32M
F1: 3b606135b33e6a102526838f4152a807
Resource folder writeable: Yes
HTTP_HOST: robyn.site:8888
DOCUMENT_ROOT: /Users/auser/Sites/asite
REQUEST_URI: /codeycms/core/settings/diagnostics/
SCRIPT_NAME: /codeycms/core/settings/diagnostics/index.php
templates / gallery / image.html
<perch:gallery type="image" id="pic" key="big" width="1024" height="682" crop="true" />
<perch:gallery type="image" id="pic" key="med" width="768" height="512" crop="true" />
<perch:gallery type="image" id="pic" key="small" width="480" height="320" crop="true" />
<perch:gallery type="image" id="pic" key="smallx" width="480" height="320" crop="true" density="2" />
<perch:gallery type="image" id="pic" key="thumb" width="104" height="80" crop="true" />
<perch:gallery type="image" id="pic" key="thumbx" width="104" height="80" crop="true" density="2"/>
Database lines in mysql
id | title | key | w | h | number
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ __ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
259 sprung03.jpg original 1326 1800 56
260 sprung03-w150h150@2x.jpg admin_thumb 150 150 56
261 sprung03-w180@2x.jpg admin_preview 180 244 56
_ _ _ _ _ _ _ _ _ __ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Seems to completely ignore the image html template.
Regards Ian
Hello Ian,
I think the image tags need to have
id="image"
to generate the other versions. It seems you have changed it toid="pic"
. Try changing it back.I'll test that. Also just wanted to add that this relates to a Perch Runway install only.
Hussien, Thankyou. The id needs to be "image" for the gallery App to process images outside of the standard three. My bad. This thread should be deleted.