mirror of
https://github.com/xdtianyu/scripts.git
synced 2025-08-10 23:47:06 +08:00
limit convert memory burst
This commit is contained in:
2
z2t.sh
2
z2t.sh
@@ -59,7 +59,7 @@ x2jpg(){
|
|||||||
read -u6
|
read -u6
|
||||||
{
|
{
|
||||||
echo 'convert -quality 80' "$file" /tmp/jpg/"${file%.*}"'.jpg'
|
echo 'convert -quality 80' "$file" /tmp/jpg/"${file%.*}"'.jpg'
|
||||||
convert -quality 80 "$file" /tmp/jpg/"${file%.*}".jpg
|
convert -limit memory 64 -limit map 128 -quality 80 "$file" /tmp/jpg/"${file%.*}".jpg
|
||||||
mv "$file" origin
|
mv "$file" origin
|
||||||
echo >&6
|
echo >&6
|
||||||
} &
|
} &
|
||||||
|
Reference in New Issue
Block a user