Repository navigation
Replace libpng and stb_image with PistonDevelopers/image - #7933
Conversation
|
Less unsafe code being used! 👏 👏 👏 |
|
One question - the piston docs say only baseline jpeg is supported, but I added a reftest a while ago that checks for progressive jpeg decoding. Do all the reftests pass ok? Perhaps the piston docs are out of date. Apart from that question, r=me. |
|
Oops, forgot to do a full test run. Indeed, the progressive JPEG test fails. (This is image-rs/image#451.) Perhaps we should keep stb_image as a fallback for now and use it if |
4ce39d9 to
7c735bf
Compare
|
@bors-servo try |
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 -->
|
💔 Test failed - gonk |
|
Updated to get rid of libpng, and to use stb_image for jpegs until |
|
The |
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 -->
|
@bors-servo try |
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 -->
|
Note that image-png uses flate2 which is C -- there is an issue open over there to replace it with something pure-Rust, but as of now there is nothing which passes all the tests. Maybe Servo should have an "audit stuff using C and check for / switch to Rust stuff instead" tracking issue? |
|
💔 Test failed - linux-dev |
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 -->
f473d1c to
17d6e81
Compare
17d6e81 to
ec2db0c
Compare
|
@bors-servo try |
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 -->
|
💔 Test failed - linux-dev |
ec2db0c to
a15acef
Compare
|
|
|
@bors-servo r+ |
|
📌 Commit a15acef has been approved by |
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 -->
|
☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt |
|
For what it's worth, this PR caused a regression and Google News now panics: #8093 |
Fixes #3368. r? @glennw