Skip to content

Support cropping of unprocessed SVGs, so emoji shape more visibleΒ #1

@patcon

Description

@patcon

Hi! Just tried to run the scripting parts here, so I could offer a PR on the project. I realized that's still WIP (which is a-ok), but also saw that some of the emoji have a ton of whitespace.

Would it be helpful if an image like this were cropped a bit?
https://upload.wikimedia.org/wikipedia/commons/f/fa/Anishinabe.svg

If so, I'm trying out using this tool, and perhaps we could add it to the scripting once that parts ready to receive contributions :)
https://github.com/cncf/svg-autocrop

Let me know! Thanks for sharing the project on Twitter! ❀️

cd indigemoji
npm install svg-autocrop
mkdir -p input output
(cd input && wget https://upload.wikimedia.org/wikipedia/commons/f/fa/Anishinabe.svg)
npx svg-autodrop
# An error throws related to compare.html, but ignore
# New file now at `output/Anishinabe.svg`

Original

Cropped

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions