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

后端 未结 4 1615
悲哀的现实
悲哀的现实 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:20

    It's a very old entry but I find it each time I search for this topic, and it doesn't work (for me at least). Here something that works for me:

    convert input.jpg -gravity South -annotate 0 '%f' output.jpg
    

    Hope this helps someone...

提交回复
热议问题