This commit is contained in:
D5k H3h
2023-04-29 16:32:23 +02:00
committed by GitHub
parent b0e5a904dc
commit 05935aa0ad
+1 -1
View File
@@ -26,7 +26,7 @@ wget "$image_url" -N -P /tmp/ # Download the image and save to the output fil
# Resize Files larger that 8 MB
if [ $(du -m /tmp/$filename | awk '{print $1}') -gt 8 ]; then # Check if the file size is greater than 8 MB
ffmpeg -i /tmp/$filename -fs 8M /tmp/ff.$filename # Resize the file to 50% of its original size using FFMPEG (needs to be installed)
ffmpeg -i /tmp/$filename -fs 8M /tmp/ff.$filename # Resize the file to 8MB using FFMPEG (needs to be installed)
mv /tmp/ff.$filename /tmp/$filename
fi