Skip to content

Lots of SVG source files broken since svgo optimization #4076

Description

@jancborchardt

When wanting to edit some icons, I stumbled upon this issue:
capture du 2017-03-26 18-57-33
capture du 2017-03-26 18-55-42

This seems to be caused by the SVGO optimization: #1534

While they seem to be correctly displayed, Inkscape has big problems showing them correctly. There’s a reason we use Scour as per https://github.com/nextcloud/server/blob/master/core/img/image-optimization.sh#L10 and not SVGO. ;)

cc @skjnldsv could you check it out? In doubt I’d say your PR needs to be reverted and we should do it via Scour instead – which was already used on most of the icons.

Activity

  1. added this to the Nextcloud 12.0 milestone on Mar 26, 2017
  2. jancborchardt commented on Jun 19, 2017

    @jancborchardt
    MemberAuthor

    @pixelipo while you’re at optimizing, maybe you can look into reverting #1534 and recompressing the icons using Scour instead (which is not as lossy as SVGO apparently). cc @skjnldsv

  3. pixelipo commented on Jun 20, 2017

    @pixelipo
    Contributor

    @jancborchardt sure, I'll take a look at it. Assigning myself on this if you don't mind, @skjnldsv

  4. self-assigned this
    on Jun 20, 2017
  5. jancborchardt commented on Jun 20, 2017

    @jancborchardt
    MemberAuthor

    @pixelipo awesome, thank you!

  6. skjnldsv commented on Sep 24, 2017

    @skjnldsv
    Member

    Is this done? @pixelipo

  7. pixelipo commented on Oct 19, 2017

    @pixelipo
    Contributor

    I'm working on it, @skjnldsv . There are a lot of files to be fixed...

  8. jancborchardt commented on Oct 19, 2017

    @jancborchardt
    MemberAuthor

    Thank you @pixelipo! :) Most should be possible to fix by getting the state before the PR I mentioned above.

  9. skjnldsv commented on Oct 19, 2017

    @skjnldsv
    Member

    sorry @pixelipo I was asking because I was working on something related last month. It wasn't meant to be a reminder, sorry for the poor choice of words! :)
    Thanks for your awesome work!

  10. added a commit that references this issue on Nov 6, 2017
    f6769e2
  11. added and removed
    1. to developAccepted and waiting to be taken care of
    on Nov 6, 2017
  12. pixelipo commented on Nov 13, 2017

    @pixelipo
    Contributor
  13. pixelipo commented on Nov 14, 2017

    @pixelipo
    Contributor

    I have to fix other folders as well - see previous comment. At @MorrisJobke suggestion, I will split it across multiple PRs so it's easier to test.

  14. MorrisJobke commented on Nov 18, 2017

    @MorrisJobke
    Member

    Thanks @pixelipo for all your effort 👍

  15. pixelipo commented on Nov 20, 2017

    @pixelipo
    Contributor

    Icons in core/img/, apps/files/img/ and settings/img/ folder have been optimized and cleaned up. In the process, I've managed to cut their size considerably, from 145 kB to 79 kB, without losing quality. It won't make a big difference, but still...

    Lots of them have also been fixed for better consistency.

  16. jancborchardt commented on Nov 22, 2017

    @jancborchardt
    MemberAuthor

    @pixelipo thank you sooo much for fixing this and the optimization! :) Was a big "design debt" issue.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions