Skip to content

Commit dce23e5

Browse files
committed
Update deps
1 parent 58aef58 commit dce23e5

File tree

3 files changed

+1261
-1317
lines changed

3 files changed

+1261
-1317
lines changed

README.md

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Widths/formats can be applied to a particular image. From your `.svelte` file:
113113
```html
114114
<script>
115115
// We override defaults to generate 5 variants instead - `avif/jpg` formats at `768/1024` + LQIP
116-
import src from '$lib/a/cat.jpg?run&width=640;1024&format=avif;jpg'
116+
import src from '$lib/a/cat.jpg?width=640;1024&format=avif;jpg&run'
117117
import Img from '@zerodevx/svelte-img'
118118
</script>
119119

@@ -124,12 +124,12 @@ import Img from '@zerodevx/svelte-img'
124124

125125
By default, LQIPs are 16px in width and set to `cover` the full image dimension. Increase for a
126126
higher quality LQIP at the expense of a larger `base64`, or set to 1px for a dominant single-colour
127-
background. To disable LQIP completely, set `?run&lqip=0`.
127+
background. To disable LQIP completely, set `?lqip=0&run`.
128128

129129
<!-- prettier-ignore -->
130130
```html
131131
<script>
132-
import src from '$lib/a/cat.jpg?run&lqip=1'
132+
import src from '$lib/a/cat.jpg?lqip=1&run'
133133
import Img from '@zerodevx/svelte-img'
134134
</script>
135135

@@ -146,7 +146,7 @@ of transformation directives offered by
146146
<!-- prettier-ignore -->
147147
```html
148148
<script>
149-
import src from '$lib/a/cat.jpg?run&height=600&fit=cover&normalize'
149+
import src from '$lib/a/cat.jpg?width=600&height=600&fit=cover&normalize&run'
150150
import Img from '@zerodevx/svelte-img'
151151
</script>
152152

@@ -256,12 +256,24 @@ import { FxParallax as Img } from '@zerodevx/svelte-img'
256256
<Img class="w-full h-64" factor="0.5" {src} alt="cat" />
257257
```
258258

259-
## To do
259+
## Development
260260

261-
- [ ] Add typings
262-
- [ ] Add tests
263-
- [ ] Improve docs
264-
- [ ] Improve demo
261+
Library is packaged via [SvelteKit](https://kit.svelte.dev/docs/packaging). Standard Github
262+
[contribution workflow](https://docs.github.com/en/get-started/quickstart/contributing-to-projects)
263+
applies.
264+
265+
### Tests
266+
267+
End-to-end testing via [Playwright](https://github.com/microsoft/playwright). To run tests
268+
headlessly:
269+
270+
```
271+
$ npm run test
272+
```
273+
274+
## Changelog
275+
276+
Please refer to the [releases](https://github.com/zerodevx/svelte-img/releases) page.
265277

266278
## License
267279

0 commit comments

Comments
 (0)