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

Gradient on 5K resolution is solid color #42

Open
evenbrenden opened this issue Jan 19, 2023 · 1 comment
Open

Gradient on 5K resolution is solid color #42

evenbrenden opened this issue Jan 19, 2023 · 1 comment
Labels
imlib2 bug appears to live in imlib2

Comments

@evenbrenden
Copy link

Running

hsetroot -add "#FF0000" -add "#0000FF" -gradient 0 -write gradient.jpeg

on a 5120x2160 monitor yields an image of a solid red:

gradient

It appears that for a sufficiently large resolution, gradient commands produce a solid of the first color added.

@himdel
Copy link
Owner

himdel commented Aug 12, 2023

Seeing the same thing, unfortunately this seems to be an imlib2 issue...

        imlib_image_fill_color_range_rectangle(1000, 1000, 4096, 1000, 0);

renders a perfectly valid gradient, but

        imlib_image_fill_color_range_rectangle(1000, 1000, 4097, 1000, 0);

renders only one color.

So, if any dimension is larger than 4096 it won't work :(.


Trying to figure out if this is something fixed in newer imlib, or if we need to split this into smaller gradients.

@himdel himdel added the imlib2 bug appears to live in imlib2 label Aug 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
imlib2 bug appears to live in imlib2
Projects
None yet
Development

No branches or pull requests

2 participants