Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
map.rotate doesn't take scale into account when padding image #3285
Scale is not taking into account when padding the image, only rotation. This results on cropped images when using magnification. The opposite doesn't happen if you reduce the image. The image retains its original dimension, even though the Sun is tiny.
The image should be padded to accommodate the entire scaled image when upscaling.
Using a magnification in which the Sun's radius ends up larger than the original field of view keeps the original image dimension and crops anything that doesn't fit the new field of view.
This is because the padding is determined using:
It may be necessary to pad the image based on scale, prior to rotation
Steps to Reproduce
Open any test map and use map.rotate(scale=4) The resulting image is visibly cropped.