1

I need to take a spinner gif and add text to it, but the text needs to be under the spinner animation, below the border of the current image.

Is there a command to add transparent space around an image with Imagemagick? Alternatively, is there a free online tool to achieve the same result?

I tried the following, but it creates a very jittery and unusable image:

convert spinner.gif -background none -gravity north -extent 400x200 new_spinner.gif
lucas
  • 1,050
  • 12
  • 21

1 Answers1

5

I found a working solution, thanks to a combination of jimmetry's answer to this related question and this imagemagick documentation:

convert spinner.gif -coalesce -repage 0x0 -background none -gravity north -extent 400x200 +repage new_spinner.gif
Community
  • 1
  • 1
lucas
  • 1,050
  • 12
  • 21
  • 1
    Thank you for this command. Searched a lot on internet but none of the websites let me add lefr/right padding but this one worked like a charm. – TheOnlyAnil Jan 30 '19 at 09:51