This can be achieved using freetype-py
. See the example here: https://code.google.com/p/freetype-py/source/browse/trunk/examples/hello-world.py
This would also be a good fit for the skimage.draw
module, and we can certainly consider adding it.
Question
I want to modify image files (bmp, jpg, and png) by adding text on top of it in a specific area. For example if I were to draw an picture for an envelope and print different addresses on top in a designated area with specified fonts and colors which library would I use?
I am looking for something like this http://python-catalin.blogspot.com/2010/06/add-text-on-image-with-pil-module.html But with a BSD license that can work with numpy and scipy with Python 3 since I just switched.
Is this a job for Scikit-image or Pillow (Not sure if it is BSD)? if not what can I use and which part of the library?
Solution
This can be achieved using freetype-py
. See the example here: https://code.google.com/p/freetype-py/source/browse/trunk/examples/hello-world.py
This would also be a good fit for the skimage.draw
module, and we can certainly consider adding it.