jobaka.py : Python program made by me to add text in jobaka image




Hello friends,

I am back with new stuff. This time i come up with funny python program of most recent trend "JO BAKA" photo Editing.

Here is a program that take jo baka image as input and than whatever input you want to add then it will add that text in it and generate new image with contain that text.

so friends enjoy it !!!!!! i am trying to put it on website and making android app of it so when uts ready i will share link of it :-)



--------------------------------------------------------------------------------------

#MADE BY: DIP PATEL
#JO BAKA PYTHON PROGRAM
import PIL
from PIL import ImageFont
from PIL import Image
from PIL import ImageDraw

font = ImageFont.truetype("/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf",20)
text = raw_input("Enter your text here");   #write your text here
tcolor = (0,0,0)          #change it if you want to change font color
text_pos = (1,130)    #adjust according to your photo size

img = Image.open("/home/dippatel1994/Downloads/jobaka.jpg")
draw = ImageDraw.Draw(img)
draw.text(text_pos, text, fill=tcolor, font=font)
del draw

img.save("/home/dippatel1994/Downloads/jobhaila1.jpg")

Comments

Post a Comment

Popular posts from this blog

MATLAB program to find Frequency Modulation