You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to use wsgithumb on files without extensions ( I have a data storage where the sha1 of the file is the filename ), but would still like to generate thumbnails for the files that are images.
But there is this part in get_image_response(...):
# make sure we got an imageifext.lower() notin ('.png', '.jpg', '.jpeg', '.gif'):
returnHTTPNotFound()
I tried commenting it out - but it also failed first since PIL has the same issue. However if I install pystacia and comment those lines it works for files that are images even without an extension.
Would you consider supporting images without extensions ?
The text was updated successfully, but these errors were encountered:
Hi,
I was trying to use wsgithumb on files without extensions ( I have a data storage where the sha1 of the file is the filename ), but would still like to generate thumbnails for the files that are images.
But there is this part in
get_image_response(...)
:I tried commenting it out - but it also failed first since PIL has the same issue. However if I install pystacia and comment those lines it works for files that are images even without an extension.
Would you consider supporting images without extensions ?
The text was updated successfully, but these errors were encountered: