I have installed pThumb but can't make it work the way I need. I expect it to create thumbnails as copies of original resolution images. But it's not creating anything. I have a div container for images so I put everything in a new chunk and try calling pthumb from that chunk. Doesn't matter whether I put it directly to migx tag or through the chunk it doesn't work. Migx is working fine as it provides data arrays for each image in an album, pthumb works only that it renders scaled down original images but no thumbnails created as new files to be reused as proxies. Either a hyperlink or a thumbnail is basically the same hi-res image.
My template looks like this:
[[!migxLoopCollection?
&packageName=`migxgallery`
&classname=`migxGallery`
&sortConfig=`[{"sortby":"title","sortdir":"ASC"}]`
&where=`{"resource_id":"[[*id]]","published":"1"}`
&tpl=`@CODE:[[$migxGalleryThumbs]]`
]]
migxGalleryThumbs chunk:
<a href="[[+image]]"><div class="thumbnail_block">
<img class="thumbnail_img" src="[[!pthumb? &input=`[[+image]]` &useResizer=`1` &options=`w=160 &h=140 &zc=1 &q=50`]]" />
<div class="thumbnail_title">[[+title]]</div>
</div></a>
"+image" gives original image, +title gives the title, and I think &input gives the same original image that's why it is showing images and sizes are defines by css rather than this &options parameter.
I tried to use an example code from documentation:
[[*thumbnailImage:phpthumbof=`w=160&h=140&zc=1`]]
but this one doesn't do anything. Not even listing thumbs just generating empty image tags:
Any ideas why is that?
Thanks.