Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSwitch to Piston's image library #3368
Comments
|
Note: NCSU students are working on this project, so please contact me before commencing any work on this to avoid overlap. |
|
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. |
|
#4215 worked, but the students never addressed the review comments and it needs a new owner. |
|
I'll try to revive that PR. |
We still use libpng for `servo -o` and the reftest runner. Based on servo#4215. Fixes servo#3368.
We still use libpng for `servo -o` and the reftest runner. Based on servo#4215. Fixes servo#3368.
|
Working on this again now that the rustup has landed. |
|
Now waiting on image-rs/image#401. |
We still use libpng for `servo -o` and the reftest runner. Based on servo#4215. Fixes servo#3368.
|
And image-rs/image#403. |
|
Those are fixed; now it's image-rs/image#409. |
|
That was fixed in image-rs/image#412, so there are no more blockers, correct? |
|
There are some other issues I didn't file yet :/ I'm going to spend some time looking into piston-image compatibility issues. |
|
Now tracking these as image-rs/image#413. See also the testing report. |
|
@notriddle Did you make progress on this? Run into any issues? I noticed you have a commit on your forked Servo |
|
I had it mostly working (WebP wouldn't work, but I think that might be a On Tue, Jul 28, 2015 at 8:16 AM Corey Farwell notifications@github.com
|
|
@notriddle Other libraries have accepted configurable serialization PRs, such as servo/rust-url#118 and hyperium/hyper#603 . Might be worth a try! |
|
We need this to decode favicons in browser.html. Do we still want to use this library? |
|
We would need to use some favicon library. stb-image is not usable long term (if it supports favicons and that is your concern). Maybe we need to add favicon support to rust-image? |
|
Now that images use shared memory (#6705), just adding a serde feature to the Rather than push all this stuff directly into Compared to the code in #4215 this will mean keeping more of Servo's current code around, at least for now. I think I'll start a new PR from scratch for this short-term solution, unless there are any objections. (In the long term when Rust's "placement new" equivalent is fully implemented and stabilized, maybe we can make |
Replace stb_image with PistonDevelopers/image Fixes #3368. r? @glennw <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7933) <!-- Reviewable:end -->
Replace stb_image with PistonDevelopers/image Fixes #3368. r? @glennw <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7933) <!-- Reviewable:end -->
Replace stb_image with PistonDevelopers/image Fixes #3368. r? @glennw <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7933) <!-- Reviewable:end -->
Replace libpng and stb_image with PistonDevelopers/image Fixes #3368. r? @glennw <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7933) <!-- Reviewable:end -->
Replace libpng and stb_image with PistonDevelopers/image Fixes #3368. r? @glennw <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7933) <!-- Reviewable:end -->
Replace libpng and stb_image with PistonDevelopers/image Fixes #3368. r? @glennw <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7933) <!-- Reviewable:end -->
|
EDIT: meant to comment on the PR |
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.