himdel / hsetroot

yet another wallpaper application
GNU General Public License v2.0
123 stars 21 forks source link

Gradient on 5K resolution is solid color #42

Open evenbrenden opened 1 year ago

evenbrenden commented 1 year ago

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 commented 1 year ago

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.