Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Severe image quality degradation when using put_image_data #361

Open
snydej opened this issue Dec 25, 2024 · 0 comments
Open

Severe image quality degradation when using put_image_data #361

snydej opened this issue Dec 25, 2024 · 0 comments

Comments

@snydej
Copy link

snydej commented Dec 25, 2024

Using put_image_data to draw to the canvas results in what looks like very pronounced compression artifacts and a substantial loss of detail as shown below (open image in a new tab to be sure to see the full detail present in the second image):

quality_bug

The second image was produced by the pillow library and authentically represents the image data. The relevant drawing code for the first image is this:

    def render_fractal(self):
        evalresult = evaluate_mandelbrot(self.view, 1e6, 1000)
        self.img_data = to_image_array(evalresult, rainbow_colormap)
        self.canvases[0].put_image_data(self.img_data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant