Skip to content

Support .ico #7666

Closed
Closed

Description

@paulrouget

Servo can't display hackernews' favicon:

  <img src="https://news.ycombinator.com/favicon.ico">

Activity

  1. changed the title [-]Servo can't decode this image[/-] [+]Support .ico[/+] on Sep 18, 2015
  2. pcwalton commented on Sep 18, 2015

    @pcwalton
    Contributor

    The problem is that we don't support .ico.

  3. added
    A-content/images
    on Sep 18, 2015
  4. paulrouget commented on Sep 21, 2015

    @paulrouget
    ContributorAuthor

    Browser.html needs this to show favicons.

    What should be done here? Add support to stb-image or use another library?

  5. pcwalton commented on Sep 21, 2015

    @pcwalton
    Contributor

    Let's use another library. We're past due time to move off stb_image.

  6. waddlesplash commented on Sep 25, 2015

    @waddlesplash

    See also: #3368.

  7. mbrubeck commented on Oct 5, 2015

    @mbrubeck
    Contributor

    PistonDevelopers/image does not support ICO either, so #3368 won't help directly. (But it will if we also work on adding ICO decoding to the image library.)

    For browser.html in particular, @jdm mentioned we could use a decoder written in JavaScript that renders to canvas.

  8. self-assigned this
    on Oct 6, 2015
  9. mbrubeck commented on Oct 7, 2015

    @mbrubeck
    Contributor

    Submitted a PR to add ICO support to the image crate: image-rs/image#450

  10. added
    I-enhancement
    on Oct 8, 2015
  11. mbrubeck commented on Oct 8, 2015

    @mbrubeck
    Contributor

    With PR #7933 plus image-rs/image#450, Servo supports ICO images!

  12. bjwbell commented on Oct 9, 2015

    @bjwbell
    Contributor

    That's fantastic :-) You really got into it Matt.

    On Thu, Oct 8, 2015 at 4:30 PM, Matt Brubeck [email protected]
    wrote:

    With PR #7933 #7933 plus
    image-rs/image#450
    image-rs/image#450, Servo supports ICO
    images!

    —
    Reply to this email directly or view it on GitHub
    #7666 (comment).

    -- Regards
    Bryan

  13. paulrouget commented on Oct 9, 2015

    @paulrouget
    ContributorAuthor

    Thank you Matt :)

  14. waddlesplash commented on Oct 12, 2015

    @waddlesplash

    #7933 has been merged, and so has image-rs/image#450, so as soon as Image releases v0.3.15 and/or Servo updates to the latest Git build, this'll be solved.

  15. paulrouget commented on Oct 19, 2015

    @paulrouget
    ContributorAuthor

    #7933 has been merged, and so has image-rs/image#450, so as soon as Image releases v0.3.15 and/or Servo updates to the latest Git build, this'll be solved.

    Is that happening soon?

  16. jdm commented on Oct 19, 2015

    @jdm
    Member

    Should be a straightforward ./mach cargo-update -p image.

  17. paulrouget commented on Oct 20, 2015

    @paulrouget
    ContributorAuthor

    Updating to the latest version of image crashes Servo. Investigating.

  18. paulrouget commented on Oct 20, 2015

    @paulrouget
    ContributorAuthor
  19. paulrouget commented on Oct 21, 2015

    @paulrouget
    ContributorAuthor

    Crash fixed. I guess we can now update. PR: #8119

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

Metadata

Metadata

Assignees

Labels

A-content/imagesI-enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions