Or way better use the thumbnails KCFinder generates on upload.
1. Install a snippet: phx:thumb
<?php
return str_replace('assets/images', 'assets/.thumbs/images', $output);
?>
Then in your Ditto TPL: [+thumbimage:thumb+]
<img src="[+thumbimage:thumb+]" alt="" />
//KCFinder only generates thumbnails of photo uploads greater than a certain size (I think it's 150px)
So this is only a solution for pics uploaded greater than that.
[ed. note: mrhaw last edited this post 10 years, 2 months ago.]