Comments (3)
I think it is worth it :)
from image.
Indeed this will be great
There is another possible way, we can detect the image's original width and height using from IPX and then simulate the behavior of img
tag.
Right now we are fetching lqip
version of all images, modifying IPX middleware to return the actual width/height with lqip
version will do the trick.
The downside of this behavior is we should drop provider support in lqip
version and just use local
provider.
from image.
width/height is optional in the current version. The performance and usage will improve in #55
from image.
Related Issues (20)
- Using NuxtPicture with ipx and 'nuxt generate' generates images of all size regardless of dimensions set with width/height attributes
- Cloudinary: Placeholder prop doesn't work as expected
- How to share the various assets present within the Nuxt 3 project with other Nuxt 3 project in same root folder?
- Request module IPX does not provide an export named 'createIPXH3Handler' HOT 4
- v1.3.0 not working HOT 8
- Could not load the "sharp" module using the darwin-arm64 HOT 3
- n HOT 1
- Screen sizes and media queries out of sync - resulting in IPX generated image being loaded on wrong breakpoints
- [IPX_ERROR] Cannot find package 'sharp' imported HOT 3
- [IPX_ERROR] can't pass trim object
- image.dir option in nuxt.config.ts results in 404 on production
- How to get ipx working with routeRules proxy HOT 1
- Cache images generated by ipx locally HOT 5
- Configuring Nuxt Image for Dynamic Paths in Custom Module HOT 1
- Passing the runtimeConfig to provider getImage functions
- NuxtPicture does not emit Error of child <img>
- [500] [IPX_ERROR] Could not load the \"sharp\" module using the linuxmusl-x64 runtime HOT 2
- `sizes` and `placeholder` attribute do not work in `preset` from `nuxt.config.ts` HOT 1
- `sharp` optional binaries not included in `.output` HOT 3
- How to catch IPX errors and show fallback with `NuxtImg` or `NuxtPicture`?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from image.