alpha
Login
or
Join now
j3s.sh
/
dotfiles
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.
my dotz
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
*
author
Jes Olson
date
1 year ago
(Mar 17, 2025, 4:59 PM -0400)
commit
047fed6b
047fed6b378b5dbe67eb1e40c91cfb1ed9894e25
parent
11d2a374
11d2a3746ec644e3a7e44496d1754b37c4a20efa
+18
-14
1 changed file
Expand all
Collapse all
Unified
Split
bin
ricoh
+18
-14
bin/ricoh
Reviewed
···
20
20
mkdir -p "$imgdir"
21
21
cp /media/ricoh/DCIM/101RICOH/*.JPG "$imgdir"
22
22
23
23
+
# exif metadata gets stripped rip
24
24
+
# also i decided that big jpgs arent so bad
25
25
+
# to upload really
26
26
+
#
23
27
# convert to ente.io uploadable format
24
24
-
tmpdir="$(mktemp -d /tmp/ricoh_webp.XXXXXX)"
25
25
-
for i in "$imgdir"/*.JPG; do
26
26
-
test -f "$i" ||
27
27
-
die "$i is not a file"
28
28
-
b="$(basename "$i" .JPG)"
29
29
-
ffmpeg -i "$i" \
30
30
-
-c:v libwebp \
31
31
-
-lossless 0 \
32
32
-
-q:v 80 \
33
33
-
-compression_level 6 \
34
34
-
"$tmpdir/$b.webp" >/dev/null
35
35
-
done
36
36
-
37
37
-
printf "%s\n" "$tmpdir"
28
28
+
# tmpdir="$(mktemp -d /tmp/ricoh_webp.XXXXXX)"
29
29
+
# for i in "$imgdir"/*.JPG; do
30
30
+
# test -f "$i" ||
31
31
+
# die "$i is not a file"
32
32
+
# b="$(basename "$i" .JPG)"
33
33
+
# ffmpeg -i "$i" \
34
34
+
# -c:v libwebp \
35
35
+
# -lossless 0 \
36
36
+
# -q:v 80 \
37
37
+
# -compression_level 6 \
38
38
+
# "$tmpdir/$b.webp" >/dev/null
39
39
+
# done
40
40
+
#
41
41
+
# printf "%s\n" "$tmpdir"