Skip to content

Switch to Piston's image library #3368

Closed

Description

@jdm

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.

Activity

  1. added
    A-content/images
    B-interesting-project
    on Sep 16, 2014
  2. jdm commented on Sep 19, 2014

    @jdm
    MemberAuthor

    Note: NCSU students are working on this project, so please contact me before commencing any work on this to avoid overlap.

  3. changed the title [-]Measure replacing image-loading libraries with rust-image[/-] [+]Switch to Piston's image library[/+] on Mar 25, 2015
  4. added
    E-less-complex
    I-wrong
    I-safety
    on Mar 25, 2015
  5. kmcallister commented on Mar 25, 2015

    @kmcallister
    Contributor

    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.

  6. jdm commented on Mar 25, 2015

    @jdm
    MemberAuthor

    #4215 worked, but the students never addressed the review comments and it needs a new owner.

  7. kmcallister commented on Mar 25, 2015

    @kmcallister
    Contributor

    I'll try to revive that PR.

  8. added 2 commits that reference this issue on Mar 26, 2015
    a131702
    c81e6b8
  9. kmcallister commented on May 7, 2015

    @kmcallister
    Contributor

    Working on this again now that the rustup has landed.

  10. kmcallister commented on May 7, 2015

    @kmcallister
    Contributor

    Now waiting on image-rs/image#401.

  11. self-assigned this
    on May 7, 2015
  12. 16 remaining items

  13. self-assigned this
    on Oct 8, 2015
  14. added 4 commits that reference this issue on Oct 8, 2015
    8907ade
    0219676
    4ce39d9
    7c735bf
  15. added 3 commits that reference this issue on Oct 9, 2015
    d4f552b
    712db5e
    3405ec1
  16. added a commit that references this issue on Oct 9, 2015
    b649246
  17. added 3 commits that reference this issue on Oct 9, 2015
    2d321e5
    2db2143
    0f597d3
  18. frewsxcv commented on Oct 25, 2015

    @frewsxcv
    Contributor

    For what it's worth, this PR caused a regression and Google News now panics: #8093

    EDIT: meant to comment on the PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-content/imagesB-interesting-projectE-more-complexI-safetyI-wrong

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions