docpad-plugin-thumbnails
docpad-plugin-thumbnails copied to clipboard
Support for image files with dots in their name
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.