#!/bin/bash
input_image="1.png"
sizes=(16 32 64 128 256 512 1024)
for size in "${sizes[@]}"; do
output_image="${size}.png"
ffmpeg -i "$input_image" -vf scale=${size}:${size} -c:v png -pix_fmt rgba "$output_image"
done
暂无评论
#!/bin/bash
input_image="1.png"
sizes=(16 32 64 128 256 512 1024)
for size in "${sizes[@]}"; do
output_image="${size}.png"
ffmpeg -i "$input_image" -vf scale=${size}:${size} -c:v png -pix_fmt rgba "$output_image"
done