Closed
Labels
A-content/imagesInteracting with images from web contentB-interesting-projectRepresents work that is expected to be interesting in some fashionE-more-complexVariable effort required; may require a mentor. Recommended solution is clearly described in the issI-safetySome piece of code violates memory safety guarantees.I-wrongAn incorrect behaviour is observed.
Description
rust-image appears to support everything we require from an image library right now, and it's native rust code. It would be nice to scrap stb-image and rust-png if possible, but we should definitely take some measurements to sure what the performance is like before and after switching.
Metadata
Metadata
Assignees
Labels
A-content/imagesInteracting with images from web contentB-interesting-projectRepresents work that is expected to be interesting in some fashionE-more-complexVariable effort required; may require a mentor. Recommended solution is clearly described in the issI-safetySome piece of code violates memory safety guarantees.I-wrongAn incorrect behaviour is observed.
Activity
jdm commentedon Sep 19, 2014
Note: NCSU students are working on this project, so please contact me before commencing any work on this to avoid overlap.
[-]Measure replacing image-loading libraries with rust-image[/-][+]Switch to Piston's image library[/+]kmcallister commentedon Mar 25, 2015
Is there any update on this? @pcwalton says stb-image is the biggest blocker for Facebook timeline -- it can't decode any of their images. That's aside from the security issues that block dogfooding or a tech demo release.
I'm not too worried about image decoding performance at the moment. It's tiny compared to some of the current inefficiencies in resource loading etc. If it shows up in profiles then we can investigate.
Right now Servo's interaction with image decoders is very basic: send some bytes, get (width, height) and a vector of pixels. It's not hard to switch decoders, and Piston's library seems like a good medium-term solution.
jdm commentedon Mar 25, 2015
#4215 worked, but the students never addressed the review comments and it needs a new owner.
kmcallister commentedon Mar 25, 2015
I'll try to revive that PR.
Switch to Piston's image library
Switch to Piston's image library
kmcallister commentedon May 7, 2015
Working on this again now that the rustup has landed.
kmcallister commentedon May 7, 2015
Now waiting on image-rs/image#401.
16 remaining items
Replace stb_image with PistonDevelopers/image
Replace stb_image with PistonDevelopers/image
Replace stb_image with PistonDevelopers/image
Replace stb_image with PistonDevelopers/image
Auto merge of #7933 - mbrubeck:piston-image, r=<try>
Auto merge of #7933 - mbrubeck:piston-image, r=<try>
Auto merge of #7933 - mbrubeck:piston-image, r=<try>
Replace stb_image with PistonDevelopers/image
Auto merge of #7933 - mbrubeck:piston-image, r=<try>
Auto merge of #7933 - mbrubeck:piston-image, r=<try>
Auto merge of #7933 - mbrubeck:piston-image, r=glennw
frewsxcv commentedon Oct 25, 2015
For what it's worth, this PR caused a regression and Google News now panics: #8093EDIT: meant to comment on the PR