VOOZH about

URL: https://www.geeksforgeeks.org/python/pgmagick-add-text-in-images/

⇱ pgmagick - Add text in images - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

pgmagick - Add text in images

Last Updated : 8 May, 2020
In this article we will see how to add text to images using pgmagick library in Python. We can do this by using annotate() function. Sometimes, we need to add text to images like for its copyright or name of the organization the image is associated with. In this article we will create an image with a green background text 'GeeksforGeeks' on it and will manipulate text on it. Output : 👁 Image
Now, we will rotate the text to 45 degrees. 👁 Image
Now we will change font as well as size of text.
Output : 👁 Image
Comment
Article Tags: