Overlaying an image's filename using ImageMagick (or similar)

后端 未结 4 1603
悲哀的现实
悲哀的现实 2021-02-05 12:58

I know ImageMagick\'s annotate command can superimpose some text over an image, but can it use the image\'s filename as this text? I would\'ve assumed so, but can\

4条回答
  •  执念已碎
    2021-02-05 13:22

    You can also use mogrify to add text to bunch of images at once.

    mogrify -gravity South -annotate 0 '%f' -pointsize 24 -fill white  *.png
    

    This will overwrite existing images, so make sure you have a backup before you execute this.

提交回复
热议问题