YAG-Talk

Summary: Talk page for YAG.
Maintainer: Subhrajit
Users: (View? / Edit?)

This space is for User-contributed commentary and notes. Please include your name and a date along with your comment.

Looks like a good, clear way of specifying a set of images. Nice job. May I suggest the use of ParseArgs() to parse your arguments within the [...] square brackets? It will be much more familiar to people who have used pmwiki in the past, standardize things, etc... Just a tho't. --Peter Bowers July 20, 2010, at 10:01 AM

Agreed! Will do that in the next release. Also, I plan to add some wildcards for mentioning the image URLs, and some more resize/crop options for the thumbnails in the next release. Subhrajit July 20, 2010, at 11:34 AM
I just released v1.5. However it turns out that the ParseArgs function was not sufficient for keeping consistency with the syntax of v1.0 (although I released it just a day ago, so I guess no body would have faced version incompatibility issues :-). Anyhow, I am using a customized version of it, 'ParseArgs_YAG' (see ParseArgs-Talk). Subhrajit July 20, 2010, at 07:08 PM

Thanks for this recipe - it has served us really well! However, I just set $YetAnotherGallery->thumbtype = 'png'; in local/config.php, and the thumbnails aren't created in PNG format. Until now, ImageMagick has been working without a hitch, so I don't think that's the reason it's not working. Could this be a bug in YAG? Jboy

hi. It is working fine for me! I don't see why it shouldn't. Remember that you'll need to visit the wiki page containing the gallery in order to let the new thumbnails be generated. Also, try clearing the cache. Are the new files that get created in the cache still in 'jpg' format? Subhrajit December 16, 2011, at 06:22 AM
I have released v1.9 with a few additional features and fixed a few bugs. Did not explicitly fix anything related to the issue you reported since I couldn't exactly see what might be causing the problem. Still, you may want to try out the newer version and see if the problem gets fixed. Subhrajit December 17, 2011, at 04:28 PM

Thanks for the response - I have yet to try out 1.9 because I hacked 1.8 a bit and need to make sure I can get the same functionality with 1.9. I think the style option will do the trick. In the meantime, I have another question: Is it possible to display thumbnails of the same image in different galleries using different thumbnail sizes? Right now that doesn't appear to be working. Any way that could be added? Thanks Jboy February 23, 2012, at 03:59 PM

Excellent idea. Shouldn't be difficult at all. Unless you have already figured out a solution, here is the simplest way: Pass an additional parameter containing the name of the gallery to the function YetAnotherGalleryReadCache, and append it to the string when creating the md5 hash for the thumb name. That will create an unique thumb for each gallery with a different name, even when the image URLs are exactly the same. I will add this to the next release along with a few other changes. Thanks! Subhrajit March 15, 2012, at 10:37 PM

I cannot get YAG to work on my Debian Linux server. The problem in my case is in constructing the variable $theurl on line 347 using the MakeLink function. The MakeLink function was changed in Pmwiki in November 2011 - did you adjust YAG after that date? The actual location of my pictures are as:"/home/alantaylorbaseaccount/www/wiki/pub/Camp/IMAG0150.jpg" and I think &theurl should read similar to "[(approve links) edit diff] ip address>>/wiki/pub/Camp/IMAG0150.jpg" The results of the MakeLink function as used in YAG as it is today is an empty (zero length) string. October 25, 2013 -Alan Taylor

Talk page for the YAG recipe (users?).