Giter VIP home page Giter VIP logo

Comments (5)

jasil2215P avatar jasil2215P commented on August 26, 2024 1

Thank you everyone for helping me out :)

from matter.

heyzec avatar heyzec commented on August 26, 2024

Which Linux distribution are you using, and what version is your inkscape?

from matter.

jasil2215P avatar jasil2215P commented on August 26, 2024

I am using Ubuntu 18.04

inkscape --version
Inkscape 0.92.3 (2405546, 2018-03-11)

And both grub-mkconfig and grub-mkfont are installed:

grub-mkconfig (GRUB) 2.02-2ubuntu8.23
jaza@ubuntu:~$ grub-mkfont --version
grub-mkfont (GRUB) 2.02-2ubuntu8.23

from matter.

jasil2215P avatar jasil2215P commented on August 26, 2024
jaza@ubuntu:~/Documents/Hacking/matter$ sudo ./matter.py -i ubuntu folder _ _ _ _ _ _ microsoft-windows
[I] Begin Matter install
[I] Build theme from user preferences
[I] Convert icons
Traceback (most recent call last):
  File "./matter.py", line 876, in <module>
    do_install()
  File "./matter.py", line 543, in do_install
    prepare_source_dir()
  File "./matter.py", line 386, in prepare_source_dir
    convert_icon_svg2png(icon)
  File "./matter.py", line 248, in convert_icon_svg2png
    exit_code = converter(color, src_path, dst_path, whisper=whisper)
  File "/home/jaza/Documents/Hacking/matter/svg2png.py", line 54, in inkscape_convert_svg2png
    int_ignore_units(root.attrib["width"]),
KeyError: 'width'

This is the complete output

from matter.

heyzec avatar heyzec commented on August 26, 2024

I finally managed to reproduce it. It seems like the site where the icons are downloaded from have changed the format of their SVGs.

It used to be

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="mdi-ubuntu" width="24" height="24" viewBox="0 0 24 24"><path ... />
</svg>

Now it is

<svg xmlns="http://www.w3.org/2000/svg" id="mdi-ubuntu" viewBox="0 0 24 24"><path ... />
</svg>

The width and height attributes have been removed. We need to calculate them from the viewBox property instead.

from matter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.