'my img get magnified when I attach in python turtle

  import turtle

screen = turtle.Screen()
screen.title("Indian State")
image = "Political-Map.gif"
screen.addshape(image)

turtle.shape(image)

when i run my code my image get magnified any one know how to fix his problem enter image description here



Solution 1:[1]

The problem here might not be to do with the image being scaled, but instead that the window is too small. You might want to add in a line to change the image size (screen.setup(width,height)). I would encourage you however to look into larger projects such as matplotlib. They're a lot more useful, have better documentation, and are much more widely used than turtle.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 nxe