Skip to content

Commit

Permalink
gallery-dl_postprocessing_selector: Work around ip7z/7zip#36
Browse files Browse the repository at this point in the history
  • Loading branch information
kattjevfel committed Jan 22, 2025
1 parent f2f6f7e commit bbfe081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gallery-dl_postprocessing_selector.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ "$1" = png ]; then
elif [ "$1" = jpg ] || [ "$1" = jpeg ]; then
jpegoptim -p --strip-com --strip-iptc --strip-icc --strip-xmp "$inputfile" >/dev/null
elif [ "$1" = zip ] || [ "$1" = rar ] || [ "$1" = 7z ]; then
7z x "$inputfile" -o"${inputfile%.*}" || exit 1
LC_CTYPE=ja_JP.UTF-8 7z x "$inputfile" -o"${inputfile%.*}" || exit 1
rm "$inputfile"
find "${inputfile%.*}" -iname "*.png" -exec webpifier.sh {} \;
find "${inputfile%.*}" -iname "*.jpg" -exec jpegoptim -p --workers=max --strip-com --strip-iptc --strip-icc --strip-xmp {} +
Expand Down

0 comments on commit bbfe081

Please sign in to comment.