qimg :src"https://image.png" doesn't work
See original GitHub issueWhat happened?
I am currently using quasar2 with vue3 and here is the scenario:
Why when I put <img src="https://images.png" />
does it display an image
and when I put <q-img src="https://images.png" />
the image does not s not display?
Does Qimg only process images locally?
thank you very much for your answer
What did you expect to happen?
Qimg should display url image from external resource
Reproduction URL
https://codesandbox.io/s/q-img-src-1r1evc
How to reproduce?
- Select a page
- Make axios request
- pass the result data url inside qimg src
- Image don’t display
Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
SPA Mode
Platforms/Browsers
Chrome
Quasar info output
No response
Relevant log output
No response
Additional context
No response
Issue Analytics
- State:
- Created a year ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
QImg - Quasar Framework
The QImg component makes working with images (any picture format) easy and also adds a nice loading effect to it along with many...
Read more >QImg and ~assets src | Quasar Framework Community
I'm struggling to understand why this works: But this doesn't: Can someone explain? What way should I be referencing the assets folder so ......
Read more >Vue CLI quesar plugin q-image not showing image
I am using quasar as a plugin in my vue. I am having trouble using the q-image ...
Read more ><img>: The Image Embed element - HTML - MDN Web Docs
The src attribute is required, and contains the path to the image you want to embed. The alt attribute holds a text description...
Read more >How To Use In HTML »
This is the most straightforward, and is the only way to go if you want to link to an external image (an image...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The problem is that you are using wrong piece of data - when you fetch images, you get array of objects, and the property
download_url
of every image is the one you’ll need to use and, you need to pass either height or width to yourQImg
component.So, if you change it to:
it will render just fine.
Thank you very much for your answer!