image
image copied to clipboard
Add provider for lorem picsum
Hello,
It's sometimes useful to use dummy images while developing a frontend. Especially when the content edition is not done yet. I therefore created a custom provider for Lorem Picsum
Usage is as follow:
-
<NuxtImg provider="picsum" src="id/237" width="200" height="300" />
renders: https://picsum.photos/id/237/200/300
-
<NuxtImg provider="picsum" src="id/237" width="200" height="300" :modifiers="{ grayscale: 1, blur: 1 }" />
renders: https://picsum.photos/id/237/200/300?grayscale=1&blur=1
If interested, I can share and/or create a PR :)
Nice idea @mickaelchanrion. PR welcome <3
I can maybe look at doing a PR tomorrow, if I have time
Don't burden yourself, I already started with the changes. Will publish the PR sometime this weekend ;)