Quick note for anyone who might stuggle to get phpThumb working with MaxiGallery. This note assumes you have followed the instructions for installing the phx:phpThumb snippit.
To get the phx:phpThumb snippit to work in maxigallery, I found that the call, rather than being in [+plus brackets+] as indicated in the documentation, must be in [*asterisk_brackets*]. (I’d love for someone to explain why this is.)
So, if you create a chunk for themaxigallery &galleryPictureTpl parameter (easiest to copy the default html file from the maxigallery templates directory), you just need to modify the <img src> tag. The default looks like this:
<img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" class="thumbnail" title="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" alt="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" />
Now change the code between the quotation marks thusly:
<img src="[*myimage:phpthumb=`h=100&w=100&zc=1#[+maxigallery.path_to_gal+][+maxigallery.picture.filename+]#1`*]" class="thumbnail" title="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" alt="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" />
This example will resize all the gallery thumbnails to 100px squares (zc stands for zoom crop and the value 1 causes the image to be cropped on center)]. You can read the phpthumb ducmentation that comes with the phx:thumb distribution for a complete set of options, but this will get you nice square thumbnails if that’s what you’re after. [Note, don’t apply phpthumb to the MG thumbnail file prefixed with "th_", apply it to the original file.]
SYNTAX NOTE
Since maxigallery doesn’t have a placeholder for the filename or complete path to the thumbnail file, we use the following syntax for the image source:
[*myimage:phphthumb=`phpthumb_options#path_to_image#1`*]
That "#1" at the end seems to be required. It is called the "mode switch" variable, and I can’t explain it’s function.