RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    How to add text to a picture dynamically?

    Scheduled Pinned Locked Moved Ideas and Development
    launchingimagedynamic text
    2 Posts 2 Posters 603 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MrRalphMan
      last edited by

      Hi All,

      It's been a while since I'f been here, but I though I would throw a question to the more them capable people on here.

      I have a template, attached, for my Retropie setup and would like to tailor this for the individual games. Potentially I would like a script that I can use to add Text to specifical locations on an image.
      If that can be run on the Pi, then that would be good, but if it runs on Windows I can pre create them.

      So being able to call it like or at least wrap it in a script.

      ./addTextToPhoto.xx --image "myimage.jpg" --outputImage "outputImage.jpg" --game "Choplifter" --button1 "Fire"

      or

      ./addText.xx --image "myImage.jpg" --text "Choplifter" --location 450,50 --size 45

      0_1526928379629_launching.png

      Is there anything out there that I can create these dynamically or am I stuck doing these one by one in GIMP?

      Cheers

      Paul

      mituM 1 Reply Last reply Reply Quote 1
      • mituM
        mitu Global Moderator @MrRalphMan
        last edited by

        @mrralphman You can use the ImageMagick suite of programs to do that with a simple command line - see http://www.imagemagick.org/Usage/annotating/.

        1 Reply Last reply Reply Quote 1
        • First post
          Last post

        Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

        Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.