html template - filename WITHOUT suffix

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Post Reply
newuser272

html template - filename WITHOUT suffix

Post 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!
User avatar
Drahken
Posts: 884
Joined: Sun Apr 10, 2005 4:29 pm

Post 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.
newuser272

Post 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.
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Post by helmut »

Post Reply