Description
Your Godot version:
4.4.stable
Issue description:
Typos in description of resize_to_po2()
function
URL to the documentation page (if already existing):
https://docs.godotengine.org/en/stable/classes/class_image.html#class-image-method-resize-to-po2
Current:
Resizes the image to the nearest power of 2 for the width and height. If square is true then set width and height to be the same. New pixels are calculated using the interpolation mode defined via Interpolation constants.
Expected:
Resizes the image to the nearest power of 2 for the width and height. If square is true then the width and height have to be the same. New pixels are calculated using the interpolation mode defined via Interpolation constants.
OR
Resizes the image to the nearest power of 2 for the width and height. If square is true it sets width and height to be the same. New pixels are calculated using the interpolation mode defined via Interpolation constants.
Activity
Arnklit commentedon Mar 16, 2025
Not completely sure whether this is a typo, or just hard for me to read. I just don't see how it can make sense that it asks you to "set" the width and height to the same when you don't set the width and height when using this function.
Image
documentation godotengine/godot#105161