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

Support profiles #33

Closed
zerodevx opened this issue Sep 20, 2023 · 0 comments · Fixed by #34
Closed

Support profiles #33

zerodevx opened this issue Sep 20, 2023 · 0 comments · Fixed by #34
Labels
enhancement New feature or request

Comments

@zerodevx
Copy link
Owner

zerodevx commented Sep 20, 2023

Like so:

import src1 from '$lib/a/1.jpg?as:run'
import src2 from '$lib/a/2.jpg?as:profile'

Define profiles in vite.config.js:

...
plugins: [
  sveltekit(),
  imagetools({
    profiles: {
      profile: new URLSearchParams('w=640;1280&format=webp;jpg')
    }
  })
]
@zerodevx zerodevx added the enhancement New feature or request label Sep 20, 2023
@zerodevx zerodevx linked a pull request Sep 23, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant