alpha
Login
or
Join now
kasper.space
/
to
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/probablykasper/to. CLI audio, video and image file converter
aiff
audio
cli
flac
gif
image
jp2
jpg
mov
mp3
mp4
ogg
png
video
webm
webp
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
Remove jp2
author
Kasper
date
4 years ago
(Jun 26, 2022, 8:24 AM +0200)
commit
05d4faa3
05d4faa31989581557fd4028ff79c54eb519263b
parent
b93b7629
b93b76291ba24df1e4d7318802029a6dc4f32833
+3
-4
1 changed file
Expand all
Collapse all
Unified
Split
bin
to
+3
-4
bin/to
View file
Reviewed
···
43
43
44
44
`green Image formats:`
45
45
`cyan jpg` 90 quality. Custom quality example: `cyan jpg:75` (0-100)
46
46
-
`cyan jp2` 90 quality. Custom quality example: `cyan jp2:75` (0-100)
47
46
`cyan png`
48
47
`cyan webp` 90 quality. Custom quality example: `cyan webp:75` (0-100)
49
48
`cyan gif`
···
153
152
png)
154
153
CMD=magick
155
154
;;
156
156
-
jpg|jp2|webp)
155
155
+
jpg|webp)
157
156
CMD=magick
158
157
if [[ $QUALITY_CHANGED != true ]]; then
159
158
OPTIONS+=("-quality" "90")
160
159
fi
161
160
;;
162
162
-
jpg:*|jp2:*|webp:*)
161
161
+
jpg:*|webp:*)
163
162
CMD=magick
164
164
-
REGEX="^(jpg|jp2|webp)(:|-|\/)?([0-9]{1,3})(%)?$"
163
163
+
REGEX="^(jpg|webp)(:|-|\/)?([0-9]{1,3})(%)?$"
165
164
if [[ "$FORMAT" =~ $REGEX ]]; then
166
165
FORMAT="${BASH_REMATCH[1]}"
167
166
if [[ $QUALITY_CHANGED != true ]]; then