Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tails
tails
Commits
13e2807b
Commit
13e2807b
authored
Dec 30, 2019
by
intrigeri
Browse files
Merge remote-tracking branch 'origin/contrib/17099-trimage' (Closes:
#17099
)
parents
9b04ccc9
98b7ab8e
Changes
2
Hide whitespace changes
Inline
Side-by-side
wiki/src/contribute/how/documentation.mdwn
View file @
13e2807b
...
...
@@ -78,7 +78,7 @@ To use these tools, please first install the dependencies:
- Images on our website are compressed and cleaned using the
[[compress-image.sh]] script. To run this script you need the
`
optipng`, `advancecomp`,
and `mat` packages.
`
trimage`
and `mat
2
` packages.
## QR codes
...
...
wiki/src/contribute/how/documentation/compress-image.sh
View file @
13e2807b
...
...
@@ -3,13 +3,8 @@
set
-e
set
-u
if
[
!
-x
/usr/bin/optipng
]
;
then
echo
"Please install the
\"
optipng
\"
package."
>
&2
exit
1
fi
if
[
!
-x
/usr/bin/advdef
]
;
then
echo
"Please install the
\"
advancecomp
\"
package."
>
&2
if
[
!
-x
/usr/bin/trimage
]
;
then
echo
"Please install the
\"
trimage
\"
package."
>
&2
exit
1
fi
...
...
@@ -19,8 +14,7 @@ if [ ! -x /usr/bin/mat2 ]; then
fi
for
image
in
"
${
@
}
"
;
do
optipng
-o6
"
${
image
}
"
advdef
-z3
"
${
image
}
"
mat2
"
${
image
}
"
mv
"
${
image
%.*
}
.cleaned.
${
image
#*.
}
"
"
${
image
}
"
trimage
-f
"
${
image
}
"
mv
"
${
image
%.*
}
.cleaned.
${
image
##*.
}
"
"
${
image
}
"
done
intrigeri
@intrigeri
mentioned in issue
#17099 (closed)
·
May 14, 2020
mentioned in issue
#17099 (closed)
mentioned in issue #17099
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment