Skip to content

Commit 0037928

Browse files
committed
Add image resize script
Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
1 parent 8c68c18 commit 0037928

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

image/image_png_resize.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env bash
2+
#//////////////////////////////////////////////////////////////
3+
#// ____ //
4+
#// | __ ) ___ _ __ ___ _ _ _ __ ___ _ __ _ __ ___ //
5+
#// | _ \ / _ \ '_ \/ __| | | | '_ \ / _ \ '__| '_ \ / __| //
6+
#// | |_) | __/ | | \__ \ |_| | |_) | __/ | | |_) | (__ //
7+
#// |____/ \___|_| |_|___/\__,_| .__/ \___|_| | .__/ \___| //
8+
#// |_| |_| //
9+
#//////////////////////////////////////////////////////////////
10+
#// //
11+
#// Script, 2021 //
12+
#// Created: 01, October, 2021 //
13+
#// Modified: 01, October, 2021 //
14+
#// file: - //
15+
#// - //
16+
#// Source: https://askubuntu.com/a/271797/971804 //
17+
#// OS: ALL //
18+
#// CPU: ALL //
19+
#// //
20+
#//////////////////////////////////////////////////////////////
21+
22+
find . -maxdepth 1 -iname "*.jpg" | xargs -P 8 -L1 -I{} convert -resize 50% "{}" _resized/"{}"
23+

linux/cleaning/clean-system.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ echo "Clear journalctl: OK"
3939
sudo find ~/.cache/ -type f -atime +3 -delete
4040
echo "Clear cache: OK"
4141

42-
sudo find ~/Téléchargements/ -type f -atime +15 -delete || true
4342
sudo find ~/Downloads/ -type f -atime +15 -delete || true
4443
echo "Clear Downloads: OK"
4544

0 commit comments

Comments
 (0)