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

Exclude SVG #105

Open
rimmeh8 opened this issue Sep 5, 2024 · 1 comment
Open

Exclude SVG #105

rimmeh8 opened this issue Sep 5, 2024 · 1 comment

Comments

@rimmeh8
Copy link

rimmeh8 commented Sep 5, 2024

HI,

how can i exclude .svg files from beeing processed to .webp?

@rubensilva09
Copy link

Hi,

Have you sure that your Apache or nginx configuration is properly set up ?

If you've used the configuration in the only jpeg, png and gif files should be processed

Here's the configuration for Apache:

RewriteCond %{HTTP_ACCEPT} image/webp
RewriteCond %{REQUEST_FILENAME} (.*)\.(?i:png|gif|jpe?g)$
RewriteCond %{REQUEST_FILENAME}\.webp -f
RewriteRule ^ %{REQUEST_FILENAME}\.webp [L,T=image/webp]

<IfModule mod_headers.c>
    <FilesMatch "\.(png|gif|jpe?g)$">
        Header append Vary Accept
    </FilesMatch>
</IfModule>

I hope it can help you

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

2 participants