Comments (7)
I don't think we can automate this. Too many gimmicks here and there. So unclean. Tried making the FFUpdater. Besides, we should have our own style. A line or two makes a world of a difference.
from frost.
Hi, I managed to finish - for 499 out of 656 svg icons, my script worked!!!. The attached 499 svg icons only consist of one path, nothing else: ameixa_optim_finished.zip
To get more icons for us..
- Copy-Paste one of the attached SVG files onto a suitable template from us
(CTRL+A CTRL+C CTRL+V) - Resize it to a suitable size.
- Subtract the path from the template (CTRL+MINUS)
=> One more icon finished!
This takes only around 1 minute per icon, so we should get these icons finished very fast.
from frost.
Well, good job. I guess some of these will be useful.
from frost.
Woah, mind sharing that script? It sounds interesting. I am on vacation for a while but when I have time I will take a look at these.
from frost.
@dkanada I developed that script by trial-and-error, in many steps and in a very customized version just for these specific files and without saving the commands in a file (except of ~/.bash_history
). So getting the commands again might be difficult... Let's see if I can find them again in my ~/.bash_history
...
from frost.
In the script, I used roundabout the following:
- svgo with lots of options (--enable=... )
- sed "delete all elements having the attribute fill=none"
- tr "delete all [:space:]"
- sed "delete everything between <defs> and </defs>"
- sed "delete first group (everything between <g> and </g>) that does not have the attribute:
transform="translate(0 -1025)"
(this is specific for the group of objects that we need)
- after deleting the first group: delete the
transform="translate(0 -1025)"
attribute from the last group - when only one group with transform="translate(0 -1025)" is left: ungroup the objects inside the group, by deleting the start (<g>) and end (</g>) tag, but nothing in between
from frost.
I think you should be able to re-construct a similarly useful script with these tips. My script was very bad (I don't know how to use awk / perl / python, which would have been a better choice than sed).
from frost.
Related Issues (20)
- Icon Requests HOT 3
- Where does turtl store the ZIP HOT 1
- Icon requests HOT 10
- Icon Request HOT 1
- Icon request - Snippet HOT 2
- Icon request - Organic maps HOT 1
- Icon Request: Backup, Shpock, Taiga
- Icon Request: Urban Sports
- Blank Icons on Lineage 18.1 HOT 4
- No updates recently HOT 1
- Last parts of texts are blocked on the license page
- Icon request HOT 4
- Forked and rebuild Frost
- Icon Request
- Icon Request
- Tubaobiaoji
- Icon request HOT 1
- Icon Request
- Icon Request
- Icon request
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from frost.