2024-01-19 19:29:09 +00:00
|
|
|
while IFS= read -r line; do
|
|
|
|
./image-finder.sh "$line"
|
|
|
|
done < script-keywords.txt
|
|
|
|
|
|
|
|
# Navigate to the img/ directory
|
|
|
|
cd img/
|
|
|
|
|
2024-01-19 20:09:20 +00:00
|
|
|
# Find files with 0 size
|
|
|
|
find . -type f -size 0 -delete
|
|
|
|
|
2024-01-19 21:47:39 +00:00
|
|
|
# Return to the original directory
|
2024-01-19 19:29:09 +00:00
|
|
|
cd ..
|
2024-01-19 21:47:39 +00:00
|
|
|
|
|
|
|
# Add our images to the concat file.
|
|
|
|
ls -1v img/* | while IFS= read -r file; do
|
|
|
|
echo "file '$(echo "$file" | sed "s/'/\\\'/g")'"
|
|
|
|
done > concat.txt
|
|
|
|
sed -i '/\\/d' concat.txt
|
|
|
|
|
2024-01-19 22:42:49 +00:00
|
|
|
# Resize images in img folder to 4k.
|
2024-01-19 21:47:39 +00:00
|
|
|
for image in img/*; do
|
2024-01-19 22:42:49 +00:00
|
|
|
# Resize the image to 4k.
|
|
|
|
convert "$image" -resize "3840x2160" "$image"
|
|
|
|
echo "Resized $image to 3840x2160"
|
|
|
|
done
|