Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrupted image from systemd-analyze after default optimization #1972

Open
C0rn3j opened this issue Mar 30, 2024 · 3 comments
Open

Corrupted image from systemd-analyze after default optimization #1972

C0rn3j opened this issue Mar 30, 2024 · 3 comments
Labels

Comments

@C0rn3j
Copy link

C0rn3j commented Mar 30, 2024

# Arch Linux

% svgo --version
3.2.0

% node --version                                   
v21.7.1

% pacman -Q systemd
systemd 255.4-2

Left is broken, right is working:

image

Repro:

# Create new
systemd-analyze plot > plot.svg
# Or use test file of mine
curl -Lo plot.svg https://github.com/svg/svgo/assets/1641362/d460b1bf-cb12-4b1e-a1d9-39dbfdeb420e

# Optimize and break
svgo --input plot.svg --output broken.svg
  Done in 1029 ms!
  365.526 KiB - 58.5% = 151.647 KiB

# View
nomacs broken.svg
@C0rn3j C0rn3j added the bug label Mar 30, 2024
@KTibow
Copy link
Contributor

KTibow commented Mar 30, 2024

Please fill in the issue with all required information, especially how to reproduce.

@C0rn3j
Copy link
Author

C0rn3j commented Mar 30, 2024

I have fat-fingered the ENTER key, currently editing it, sorry.

EDIT: Done

@johnkenny54
Copy link
Contributor

This looks like a specific instance of the general problem flagged in issue #1953. Most plugins are potentially unsafe if <style> elements are present. In this particular case, there are styles on <line> and <rect> elements that are no longer applied when they are converted to <path> elements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants