docpad-plugin-thumbnails icon indicating copy to clipboard operation
docpad-plugin-thumbnails copied to clipboard

Support for image files with dots in their name

Open kennyki opened this issue 11 years ago • 0 comments

This probably has low priority, but would be nice to have.

Right now if I have image files with name in the pattern of "00.cat.jpg" and "00.dog.jpg", I'd get only one result "00.thumbnail_default_w888h500q50.jpg".

Images would be located in the ./src/files directory most of the time (if not all) - which means they should not go through Docpad's rendering processes, should we change this line to:

imageFileName = f.attributes.filename
thumbfilename = imageFileName.substring(0, imageFileName.lastIndexOf("." + ext)) + suffix + "." + ext

I felt like I'm making assumptions but that's why I'm asking of opinions here before doing anything.

kennyki avatar Aug 29 '14 09:08 kennyki