iced-rs / iced_web

A web runtime for iced that targets the DOM
93 stars 4 forks source link

Images don't show up in web #19

Open ISibboI opened 2 years ago

ISibboI commented 2 years ago

I have an application using iced 0.4.2. On desktop, an image I am loading from disk works just fine. On web, I load the same image from a URL, and it downloads and constructs a handle just fine, however the image never renders, and no error is thrown or logged.

stappersg commented 1 year ago

(Ten months later)

How to reproduce the issue?

An update if the issue still exists would also be a good thing.

(This line is just for notifying @ISibboI )

ISibboI commented 1 year ago

Feel free to test with my repo: https://github.com/ISibboI/iced-rs-test I don't know much anymore about what this did, but I think you have to click on a button or so that says "map" and then there should be a picture. This is all I remember, haven't touched this in a year.

stappersg commented 1 year ago

Feel free to test with my repo: https://github.com/ISibboI/iced-rs-test

That doesn't build for me. Started with cargo build, got an error about "fontconfig". After an apt search fontconfig and sudo apt install librust-servo-fontconfig-dev, I got much further.

Still neither cargo build, trunk build nor cargo build --target wasm32-unknown-unknown succeeded.

... haven't touched this in a year.

I think with year is meant 5 months.

stappers@paddy:~/src/githubforks/iced-rs-test
$ git show | grep ^Date
Date:   Sat Mar 11 08:41:59 2023 +0200
stappers@paddy:~/src/githubforks/iced-rs-test
$