Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Optimize SVGs #31067

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

Merged
merged 1 commit into from
Apr 11, 2019
Merged

Optimize SVGs #31067

merged 1 commit into from
Apr 11, 2019

Conversation

MartijnCuppens
Copy link
Contributor

Q A
Branch? 3.4
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets /
License MIT
Doc PR /

Used svgo to optimize the svgs. I kept the viewBox attribute to keep the aspects when SVGs are rescaled.

I also added insert_final_newline = false to the .editorconfig file because the newlines are removed from the SVGs and there's only one line left.

@nicolas-grekas nicolas-grekas added this to the 3.4 milestone Apr 11, 2019
Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this breaks tests, can you have a look please?

.editorconfig Outdated Show resolved Hide resolved
@MartijnCuppens
Copy link
Contributor Author

Anyone who can help me with the tests? Not sure what's causing these fails.

@nicolas-grekas
Copy link
Member

Thank you @MartijnCuppens.

@nicolas-grekas nicolas-grekas merged commit 4614cea into symfony:3.4 Apr 11, 2019
nicolas-grekas added a commit that referenced this pull request Apr 11, 2019
This PR was merged into the 3.4 branch.

Discussion
----------

Optimize SVGs

| Q             | A
| ------------- | ---
| Branch?       | 3.4 <!-- see below -->
| Bug fix?      | yes
| New feature?  | no <!-- don't forget to update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | /   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | / <!-- required for new features -->

Used [svgo](https://github.com/svg/svgo) to optimize the svgs. I kept the `viewBox` attribute to keep the aspects when SVGs are rescaled.

I also added `insert_final_newline = false` to the `.editorconfig` file because the newlines are removed from the SVGs and there's only one line left.

Commits
-------

4614cea Optimize SVGs
@nicolas-grekas
Copy link
Member

there might be more in 4.2 if you want to have a look btw

@MartijnCuppens MartijnCuppens deleted the 34-optimize-svg branch April 11, 2019 12:00
@nicolas-grekas
Copy link
Member

I just optimized them on 4.2 and master, because tests were failing otherwise.

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

Successfully merging this pull request may close these issues.

5 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.