Telegram Group & Telegram Channel
First gather all of the _color.svg into the output directory. Do this by searching recursively in all the subdirectories from the root folder with the find command.

mkdir output ; find . -name "*_color.svg" -exec cp {} output \;

now process all svgs in output folder with svgo optimization and put the optimized ones in the root folder and if successful (&&) delete the original svgs in the output folder
svgo --config ~/Documents/appimages/svgo.config.js -f ./output/ -o . && rm output/*.svg

Now reduce floating points (9.784 --> 9.7) to one digit after decimal
for f in *.svg; do sed -i -r 's|([0-9]+\.[0-9]{1})[0-9]+|\1|g' "$f" ; done

Then make gallery with VSCode.
mkdir output ; find . -name "*_flat.svg" -exec cp {} output \;
and do again
mkdir output ; find . -name "*_high_contrast.svg" -exec cp {} output \;

Only thing is to create your svgo.config.js file with the following and point to it
svgo.config.js

module.exports = {
multipass: true,
plugins: [
{
name: 'preset-default',
params: {
overrides: {
cleanupNumericValues: false,
removeViewBox: false,
removeHiddenElems: false,
moveElemsAttrsToGroup: false,
moveGroupAttrsToElems: false,
},
},
},
],
};



tg-me.com/geektips/882
Create:
Last Update:

First gather all of the _color.svg into the output directory. Do this by searching recursively in all the subdirectories from the root folder with the find command.

mkdir output ; find . -name "*_color.svg" -exec cp {} output \;

now process all svgs in output folder with svgo optimization and put the optimized ones in the root folder and if successful (&&) delete the original svgs in the output folder

svgo --config ~/Documents/appimages/svgo.config.js -f ./output/ -o . && rm output/*.svg

Now reduce floating points (9.784 --> 9.7) to one digit after decimal
for f in *.svg; do sed -i -r 's|([0-9]+\.[0-9]{1})[0-9]+|\1|g' "$f" ; done

Then make gallery with VSCode.
mkdir output ; find . -name "*_flat.svg" -exec cp {} output \;
and do again
mkdir output ; find . -name "*_high_contrast.svg" -exec cp {} output \;

Only thing is to create your svgo.config.js file with the following and point to it
svgo.config.js

module.exports = {
multipass: true,
plugins: [
{
name: 'preset-default',
params: {
overrides: {
cleanupNumericValues: false,
removeViewBox: false,
removeHiddenElems: false,
moveElemsAttrsToGroup: false,
moveGroupAttrsToElems: false,
},
},
},
],
};

BY GeekTips


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/geektips/882

View MORE
Open in Telegram


GeekTips Telegram | DID YOU KNOW?

Date: |

Telegram today rolling out an update which brings with it several new features.The update also adds interactive emoji. When you send one of the select animated emoji in chat, you can now tap on it to initiate a full screen animation. The update also adds interactive emoji. When you send one of the select animated emoji in chat, you can now tap on it to initiate a full screen animation. This is then visible to you or anyone else who's also present in chat at the moment. The animations are also accompanied by vibrations. This is then visible to you or anyone else who's also present in chat at the moment. The animations are also accompanied by vibrations.

Telegram Auto-Delete Messages in Any Chat

Some messages aren’t supposed to last forever. There are some Telegram groups and conversations where it’s best if messages are automatically deleted in a day or a week. Here’s how to auto-delete messages in any Telegram chat. You can enable the auto-delete feature on a per-chat basis. It works for both one-on-one conversations and group chats. Previously, you needed to use the Secret Chat feature to automatically delete messages after a set time. At the time of writing, you can choose to automatically delete messages after a day or a week. Telegram starts the timer once they are sent, not after they are read. This won’t affect the messages that were sent before enabling the feature.

GeekTips from us


Telegram GeekTips
FROM USA