automation - Saving one image to very many resolutions -
for special case of use need resize large image many resolutions, beginning 1080px height down 300px height.
so need 1080px, 1079px, 1078px, 1077px, ... in height proportionally scaling down image each time (ideally renaming image-1080, image-1079, image-1078, ...).
of course repeat scaling , exporting image 700 times myself, thats not want do. not figure out how automate task in adobe photoshop (or other program).
does know solution how solve problem? image scaled down, there should not huge quality loss of these resolutions.
using imagemagick's convert utility:
for in {1080..300}; convert -resize x$i image.png image-$i.png; done
explanation:
for
bash script loop, loop variable $i
{1080..300}
range of numbers, 1080, 1079, ... 301, 300
convert
im utility modifies file , saves new name
-resize xnnn
resizes image new height, changing width proportionally
so loop run series of commands:
convert -resize x1080 image.png image-1080.png convert -resize x1079 image.png image-1079.png ... convert -resize x301 image.png image-301.png convert -resize x300 image.png image-300.png
Comments
Post a Comment