How can I load an image outside of res:// without losing quality?

Godot Version

Godot version 3.3.1

Question

I need to load an image outside of res:// and dynamically resize it at runtime, either making it smaller or bigger. While I know how to resize the image, I’m facing an issue where the image loses its quality. Can anyone help me, please? I am using Godot 3.3.1.

Use Image.load()

1 Like

Thank you for answering the question, but I already tried that. However, when resized, it loses quality.

Try changing the interpolation in Image.resize() to INTERPOLATE_LANCZOS

You’ll always loose quality when resizing an image.