Page 1 of 1
html template - filename WITHOUT suffix
Posted: Wed Jul 04, 2007 1:19 pm
by newuser272
Is it possible to insert a filename (#FILENAME#) to the html-thumbnail-template without suffix (.jpg)?
I would like to modify the link of the thumbnail-pic to a fixed URL with filename as parameter, eg.
http://anotherwebsite/php?PIC or
http://anotherwebsite/PIC.html (where PIC = filename without suffix)
Thanks for your help!
Posted: Wed Jul 04, 2007 2:55 pm
by Drahken
Edit the template, find {img src="#THUMB_LINK#"} and change it to {img src="
http://anotherwebsite/php?PIC#THUMB_LINK#"}. The resulting webpage after you create a webpage from some thumbs should say something like {img src="
http://anotherwebsite/php?PIC/subdirectory/image.jpg"} where "subdirectory" is what you put in the "thumbnail sub-folder" blank on the webpage creation form. If you leave that spot on the form blank, you can make it put them in the parent folder (ie, if you left both that and the one for the original images blank, then all the images & all the html files would be in the same folder). If you left both fields blank and set the template to {img src="
http://anotherwebsite/php?#THUMB_LINK#"}, you would wind up with each image link being
http://anotherwebsite/php?PIC1.jpg,
http://anotherwebsite/php?PIC2.jpg,
http://anotherwebsite/php?PIC3.gif, etc
I don't think it's possible to remove the extension completely unless you manually editted the file afte xnview created it (and then you'd have to rename each of the images & remove the extension from them as well), so winding up with
http://anotherwebsite/php?PIC1,
http://anotherwebsite/php?PIC2, etc would be impossible.
Posted: Wed Jul 04, 2007 2:59 pm
by newuser272
Thanks for your quick response!
Anyway, now I can be quite sure that it is not my missing know-how.
Maybe it would be a nice feature for another version, since it would allow to create thumbnails with XnView that link to other pic-databases.
Posted: Thu Jul 05, 2007 8:02 pm
by helmut