Home > Blockchain >  How to import png images Turtle Python
How to import png images Turtle Python

Time:12-07

I cannot import png images into python turtle although I can add gif images. Can someone please answer this as quickly as they can.

I tried just swapping to png from the gif, but no luck.

CodePudding user response:

The turtle module does not support importing and displaying PNG images directly.

If you want to display a PNG image, you will need to convert the it to something the turtle module can manage, like a GIF. There are plenty image conversion tools available online that can help you do this.

Not recommending this one, it was just top result: https://cloudconvert.com/png-to-gif

  • Related