SmoothGallery markup generator

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
This is probably a little too niche to be of much interest, but I'll post it anyway. If anyone is using JonDesign's SmoothGallery (2.0 or later) to drive slideshows, I've written a markup generator tool for it. It runs on .NET 4, and source is included so you can rebuild it for earlier versions.

Basically, prep your images and place them into a folder. If you want, fill in the title and comment metadata for each image. Then run the tool and set the various command line options. It will generate thumbs, import the title and description from the metadata, and generate the HTML markup. It supports all the SmoothGallery options, and also lets you do some things SmoothGallery doesn't support well, such as changing the default thumbnail size or the height of the info pane.

http://www.markbetz.net/misc/sg/SmoothGen.zip

The slideshow in this post is an example of what you can do with SmoothGallery and the markup generator...

http://www.markbetz.net/2011/05/31/jersey-sore/
 

Cogman

Lifer
Sep 19, 2000
10,284
138
106
:), I'm having more fun browsing your blog and reading your published articles :p.
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,610
4,530
75
The slideshow in this post is an example of what you can do with SmoothGallery and the markup generator
Pretty cool...but what's this junk up in the corner? "&#239;&#187;&#191;"

Edit: Oh, and the arrows aren't loaded until the rest of the images are.

Did I mention I'm doing manual testing work right now? That may make me extra sensitive to this stuff.
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
Pretty cool...but what's this junk up in the corner? ""

Edit: Oh, and the arrows aren't loaded until the rest of the images are.

Did I mention I'm doing manual testing work right now? That may make me extra sensitive to this stuff.

I've been trying to figure that out myself. I only see it in Firefox. Chrome and IE render it without the garbage. Obviously something is spiting junk into that element, but I don't know what it is.

Still the best free slideshow driver I was able to find. For the moment I'm putting that down to some quirk of Firefox's.
 

MrChad

Lifer
Aug 22, 2001
13,507
3
81
I've been trying to figure that out myself. I only see it in Firefox. Chrome and IE render it without the garbage. Obviously something is spiting junk into that element, but I don't know what it is.

UTF-8 Byte Order Mark perhaps?
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
UTF-8 Byte Order Mark perhaps?

Bingo. Thanks for the tip. The html file I based my template on had the charset set to iso-8859-1. The file was a demo markup from the JonDesign website, and I didn't look at it very closely. For some reason FireFox rendered the BoM. The bytes were not actually present in the index.html file, so something made FF insert them when it encountered the charset definition. The bytes were inserted right before the doctype. This happened whether the window was opened with the javascript event handler, or just opened as a GET. I changed the charset to utf-8 and the problem disappeared.