-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Automatic generation of responsive images versions #5383
Comments
I'm working on a Quasar-agnostic webpack loader to solve this (and maybe afterwards an app-extension to integrate it more easily). |
Looking forward to it <3 |
Still not ready for prime-time, but I'm gonna move the code to a public repository soon, even if I'm experiencing some weird behaviour with Quasar. I think there is something conflicting with Quasar because the stack trace mention some sort of html minimalistic loader which auto-unload himself if at least another loader is defined.
Any hints on how can I fix this? Examples This won't work, but it should cfg.module.rules.push({
test: /\.html$/,
loader: //...,
options: {
// ...
}
}); This won't work either, but it should cfg.module.rules.push({
test: /\.html$/,
resourceQuery: /^vue?/,
loader: //...,
options: {
// ...
}
}); Only this will work, but Vue core team told me I should not use this because it is considered technical implementations detail, not public API cfg.module.rules.push({
test: /\.vue$/,
resourceQuery: /type=template/,
loader: //...,
options: {
// ...
}
}); |
I just released the alpha, if you wanna take a look: https://www.npmjs.com/package/@dreamonkey/responsive-image-loader/v/0.1.1 Configuration to use it on Quasar is directly on the readme. It's my first webpack loader and I'd appreciate help to solve the webpack and Quasar known issues 👍 Shall I close the issue or do you want to be kept updated on this? @rstoenescu |
Little update: it now supports background-images too. |
Update: latest version (0.4.1) added the Performance are now the main pain-point |
@IlCallo It's been over a year for activity. Can this ticket be closed? |
Yes, whoever is interested into this can check out progresses into the referenced repo. |
Is your feature request related to a problem? Please describe.
art director
andresolution switching
problems, as seen here.Some steps has been done with
QImg
component, but there's still a lot of stuff which could be automated.Describe the solution you'd like
A webpack loader that process at build time all static images/multimedia referenced into HTML and automatically:
srcset
attribute. This will resolve resolution switching problem;<picture>
component for cropping images for different viewports. This would help to tackle art director problem;Later on is possible to think about dynamic usage.
This follows more or less same principles behind Icon Genie: the task workflow is automatable, workflow is clear, best practices could be enforced by defaults and everything can work well out of the box.
I searched for this for a day and can't find something up-to-date and maintained.
I checked other UI libraries and framework, doesn't seem anyone implemented something like this in their build process.
Maybe I'm missing something for which it isn't a good idea to automate this stuff?
Describe alternatives you've considered
nuxt-image-loader:
responsive-loader:
Cloudinary:
Responsive breakpoints service (related article, automatization):
Thumbor: this seems the one service I was searching, I'll study this one more in-depth.
Additional context
Related to #777 (comment)
The text was updated successfully, but these errors were encountered: