webp-sh / webp_server_go

Go version of WebP Server. A tool that will serve your JPG/PNG/BMP/SVGs as WebP/AVIF format with compression, on-the-fly.
https://docs.webp.sh
GNU General Public License v3.0
1.85k stars 176 forks source link

file without extension #341

Closed leooxx closed 5 months ago

leooxx commented 5 months ago

Hello,

I want to transform files with no extension and no content type. I tried to add an empty string in ALLOWED_TYPES but it doesn't work.

Is it possible to manage this currently?

thank you so much

n0vad3v commented 5 months ago

Sure, you can write * in ALLOWED_TYPES to make it work, e.g:

"ALLOWED_TYPES": ["*"],

leooxx commented 5 months ago

Ok, thank for your fast reply but... I can't get it to work. I always get "File extension not allowed!" I edited config.json and restart service.

leooxx commented 5 months ago

Maybe with an update.. i'm using Webp Server Go - v0.4.4 Thx

n0vad3v commented 5 months ago

Wow, version 0.4.4, it looks like you're one of our long-time users!

This feature is added at https://github.com/webp-sh/webp_server_go/pull/97, the first supported version is https://github.com/webp-sh/webp_server_go/releases/tag/0.4.5 0.4.5, so it's suggested to use a newer version of WebP Server Go, the latest one is preferred at the moment, the configuration you've been using should just work.

leooxx commented 5 months ago

Yes, it works and probably more fast ? :) I'm using in production from April 2022. Thank so much you for your work !!

n0vad3v commented 5 months ago

Yeah it should be faster, we have a benchmark listed https://docs.webp.sh/benchmark/ (however it's from 0.8.8~0.9.10 and we're looking for a way to improve it).

Glad to hear WebP Server Go is being used in production ❤️