-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Reduce logo.svg size (-93B) #9106
Reduce logo.svg size (-93B) #9106
Conversation
* Current size: 2,755 B * Original size: 2,848 B * Add file's final newline (linux convention) * Remove tag separator spaces * Add newlines * Add tab indentation (instead of 2/4 spaces) * Prettify root svg's attribs
Maybe we could move the clutter at the root too? 😅🥲 |
f3df996
to
a162594
Compare
As we said in #5941 we're not interested in pretty printing this. I think it'd be fine to minify the |
13d8830
to
9413958
Compare
it's ready @the-mikedavis |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's chop off the trailing line ending too so we don't have any unnecessary whitespace
the final newline defines a file on linux. so many utils depend on a file having it. is there any bad effect of it somewhere? |
The trailing newline is just a convention from the posix standard about the definition of lines. I doubt you could find a tool that deals with SVGs that is broken by a file lacking a trailing newline. It's just extra whitespace that we don't need for a minified file we're basically treating as binary. Plus, the line-ending on this branch is currently a CRLF. In order to save this without a line ending you'll need to delete the line ending and then turn off the behavior from #8157 with |
uh oh, i guess no changes were made lemme retry |
86c973a
to
335e680
Compare
yeah, i guess it is done now |
* Remove final newline too
335e680
to
d973462
Compare
While reading through commits to helix I saw helix-editor#9106 and wondered if the relatively-new-to-me svgo would do better than -95B diff, indeed it does. Seeing as this file is "a minified file we're basically treating as binary" anyway I figured might as well minify it further.
* Reduce logo.svg even more While reading through commits to helix I saw #9106 and wondered if the relatively-new-to-me svgo would do better than -95B diff, indeed it does. Seeing as this file is "a minified file we're basically treating as binary" anyway I figured might as well minify it further. * Minimize all the svg logos
* Reduce logo.svg even more While reading through commits to helix I saw helix-editor#9106 and wondered if the relatively-new-to-me svgo would do better than -95B diff, indeed it does. Seeing as this file is "a minified file we're basically treating as binary" anyway I figured might as well minify it further. * Minimize all the svg logos
* chore(logo): PrettyPrint to reduce size by 93B ... * Current size: 2,755 B * Original size: 2,848 B * Add file's final newline (linux convention) * Remove tag separator spaces * Add newlines * Add tab indentation (instead of 2/4 spaces) * Prettify root svg's attribs * style(logo): Bring style attrb to front * chore(logo): Remove tab characters * chore(logo): Remove \n, use LF as final newline * chore(logo): Minify logo.svg ... * Remove final newline too
* Reduce logo.svg even more While reading through commits to helix I saw helix-editor#9106 and wondered if the relatively-new-to-me svgo would do better than -95B diff, indeed it does. Seeing as this file is "a minified file we're basically treating as binary" anyway I figured might as well minify it further. * Minimize all the svg logos
* chore(logo): PrettyPrint to reduce size by 93B ... * Current size: 2,755 B * Original size: 2,848 B * Add file's final newline (linux convention) * Remove tag separator spaces * Add newlines * Add tab indentation (instead of 2/4 spaces) * Prettify root svg's attribs * style(logo): Bring style attrb to front * chore(logo): Remove tab characters * chore(logo): Remove \n, use LF as final newline * chore(logo): Minify logo.svg ... * Remove final newline too
* Reduce logo.svg even more While reading through commits to helix I saw helix-editor#9106 and wondered if the relatively-new-to-me svgo would do better than -95B diff, indeed it does. Seeing as this file is "a minified file we're basically treating as binary" anyway I figured might as well minify it further. * Minimize all the svg logos
* chore(logo): PrettyPrint to reduce size by 93B ... * Current size: 2,755 B * Original size: 2,848 B * Add file's final newline (linux convention) * Remove tag separator spaces * Add newlines * Add tab indentation (instead of 2/4 spaces) * Prettify root svg's attribs * style(logo): Bring style attrb to front * chore(logo): Remove tab characters * chore(logo): Remove \n, use LF as final newline * chore(logo): Minify logo.svg ... * Remove final newline too
* Reduce logo.svg even more While reading through commits to helix I saw helix-editor#9106 and wondered if the relatively-new-to-me svgo would do better than -95B diff, indeed it does. Seeing as this file is "a minified file we're basically treating as binary" anyway I figured might as well minify it further. * Minimize all the svg logos
* chore(logo): PrettyPrint to reduce size by 93B ... * Current size: 2,755 B * Original size: 2,848 B * Add file's final newline (linux convention) * Remove tag separator spaces * Add newlines * Add tab indentation (instead of 2/4 spaces) * Prettify root svg's attribs * style(logo): Bring style attrb to front * chore(logo): Remove tab characters * chore(logo): Remove \n, use LF as final newline * chore(logo): Minify logo.svg ... * Remove final newline too
* Reduce logo.svg even more While reading through commits to helix I saw helix-editor#9106 and wondered if the relatively-new-to-me svgo would do better than -95B diff, indeed it does. Seeing as this file is "a minified file we're basically treating as binary" anyway I figured might as well minify it further. * Minimize all the svg logos
pretty logo chore(logo): PrettyPrint to reduce size by 93B ...