![]() # Can't add this first because we don't know the size of the text layer.īackground = gimp.Layer(img, "Background", layer.width, layer.height, Img.resize(layer.width, layer.height, 0, 0) ![]() # Resize the image to the size of the layer Layer = pdb.gimp_text_fontname(img, None, 0, 0, initstr, 10, # Create a new text layer (-1 for the layer means create a new layer) # First do a quick sanity check on the font ![]() Right now, i't trying to do that with an example script: #!/usr/bin/env pythonĭef hello_world(initstr, font, size, color) : ![]() I'm trying to use functions of gimp 2.8.22 to convert a pdf to jpeg and i want to do that with a python script using the gimpfu library from my windows cmd (i have installed python 3.6.1). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |