python - ReportLab - Can't mask image [Google App Engine] -
i generating pdf using reportlab, on google app engine.
i can draw images in pdf, cannot mask applied.
here's code drawing simple green-masked circle (and circle):
# draw circle mask on profile image path = os.path.abspath(os.path.join('pdf_profile_mask.jpg')) c.drawimage(path, 62, 62, 126, 126, mask=[0,255,200,255,0,255]) 
it didn't work, tried masking colors (i expect nothing drawn):
c.drawimage(path, 62, 62, 126, 126, mask=[0,255,0,255,0,255]) but didn't work either - image solid.
reportlab doesn't support images out of box on appengine - changes make run minor , don't think should affect this.
does have experience this?
it wouldn't work me either jpg image. converting png did trick.
Comments
Post a Comment