Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images without extensions #2

Open
Zitrax opened this issue Jul 21, 2016 · 0 comments
Open

Images without extensions #2

Zitrax opened this issue Jul 21, 2016 · 0 comments

Comments

@Zitrax
Copy link

Zitrax commented Jul 21, 2016

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(...):

# make sure we got an image
if ext.lower() not in ('.png', '.jpg', '.jpeg', '.gif'):
    return HTTPNotFound()

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant