Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit050fe786a9867847b8bc72386d9eb7f95c7a2e4f (patch)
Author
 Syndamia <kamen@syndamia.com>
2026-11-08 16:08:35 +0200
Committer
 Syndamia <kamen@syndamia.com>
2026-11-08 16:08:35 +0200
Files231243c0ca1da316a9387e7e23a5d1d2dae2e227
.files-050fe786a9867847b8bc72386d9eb7f95c7a2e4f.tar
.files-050fe786a9867847b8bc72386d9eb7f95c7a2e4f.tar.gz
.files-050fe786a9867847b8bc72386d9eb7f95c7a2e4f.zip
Parent3276c39e366341e6a07cd78d049e12c809c3ee51 (diff)
feat(bash): Add png-reduce function
I've used it for many months, redefining it every time...
1 files changed, 6 insertions, 0 deletions
-rw-r--r--bash/.bashrc6
diff --git a/bash/.bashrc b/bash/.bashrc
index d8e7ac0..0bae8a1 100644
--- a/bash/.bashrc
+++ b/bash/.bashrc
@@ -514,6 +514,12 @@ EOF
bgr "nemo ./"
}
+ png-reduce () {
+ pngcrush -reduce -brute "$1" temp.png || return "$?"
+ rm "$1"
+ mv temp.png "$1"
+ }
+
alias q="exit"
alias x="exit"