alpha
Login
or
Join now
xcc.es
/
scripts
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
[READ-ONLY] Mirror of https://github.com/mrgnw/scripts.
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
keep timestamps
author
Morgan
date
9 months ago
(Oct 20, 2025, 4:35 AM +0200)
commit
44effc4a
44effc4aa5d90944caac18111b7aa283d9211ac1
parent
51d221d7
51d221d77bc90d3a8007efce796b280ae10acba9
+11
-3
1 changed file
Expand all
Collapse all
Unified
Split
heics
+11
-3
heics
View file
Reviewed
···
12
12
$(printf -- "-iname %s -o " "${extensions[@]}") \
13
13
-false \) -print0 | \
14
14
parallel -0 -j "$(sysctl -n hw.ncpu)" '
15
15
-
heic {}
16
16
-
mv {} original/{}
17
17
-
'
15
15
+
original_file={}
16
16
+
heic_file="${original_file%.*}.heic"
17
17
+
heic "$original_file"
18
18
+
19
19
+
# Preserve the original file dates on the new HEIC file
20
20
+
if [[ -f "$heic_file" ]]; then
21
21
+
touch -r "$original_file" "$heic_file"
22
22
+
fi
23
23
+
24
24
+
mv "$original_file" original/
25
25
+
'