You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am following the guidance given here #3128 with the following gif:
What did you expect to happen?
I was hoping to get white text with a black outline such as this:
This is possible via converting the frame to RGB or RGBA, but there seems to be some weird fuzz when I convert the frames.
What actually happened?
I get brown text with a fuzzy black outline:
On other gifs, I get white text, but the text_stroke is not black:
What are your OS, Python and Pillow versions?
OS: Ubuntu 18.04.4 LTS
Python: 3.6.9
Pillow: 7.0.0
importioimportsysfromPILimportImage, ImageDraw, ImageFont, ImageSequence# This gif opens up in P modeblack=0white=251padding=1size=40fnt=ImageFont.truetype('impact.ttf', size)
im=Image.open('Pictures/test.gif')
# A list of the frames to be outputtedx=0y=0text=sys.argv[1]
frames= []
forframeinImageSequence.Iterator(im):
# Draw the text on the framed=ImageDraw.Draw(frame)
d.text((x, y), text, font=fnt, fill=white, stroke_width=1, stroke_fill=black)
deldb=io.BytesIO()
frame.save(b, format="GIF")
frame=Image.open(b)
# Then append the single frame image to a list of framesframes.append(frame)
# Save the frames as a new imageframes[0].save('Pictures/out.gif', save_all=True, append_images=frames[1:])
The text was updated successfully, but these errors were encountered:
What did you do?
I am following the guidance given here #3128 with the following gif:
![test](https://user-images.githubusercontent.com/1873994/76711512-0caa3980-66ce-11ea-8e95-bb861580658e.gif)
What did you expect to happen?
I was hoping to get white text with a black outline such as this:
![out2](https://user-images.githubusercontent.com/1873994/76711678-357efe80-66cf-11ea-8810-9b65dc74f279.gif)
This is possible via converting the frame to
RGB
orRGBA
, but there seems to be some weird fuzz when I convert the frames.What actually happened?
I get brown text with a fuzzy black outline:
![out](https://user-images.githubusercontent.com/1873994/76711711-6c551480-66cf-11ea-9f51-c9072260aede.gif)
On other gifs, I get white text, but the
![out](https://user-images.githubusercontent.com/1873994/76711771-d8d01380-66cf-11ea-889f-92861bc36bf8.gif)
text_stroke
is not black:What are your OS, Python and Pillow versions?
The text was updated successfully, but these errors were encountered: