Re: [E-devel] imlib_create_cropped_scaled_image doesn't work for bicolor images

Kim Woelders <[email protected]> Thu, 13 Apr 2023 17:58:05 +0200
Newsgroups gmane.comp.window-managers.enlightenment.devel
Message-ID <[email protected]>
On 2023-04-12 22:56, Bep Rinto wrote:
> When a source image has a dimension of two, then using
> imlib_create_cropped_scaled_image to a larger dimension results in an image
> where only half of that dimension has a color range. Example, an image of
> 100x2, scale it to 100x20, then only the upper 10 rows have a gradient.
> Same for 2x40 to 100x40 when only the left 50 columns have a gradient.
> Ideally, an 4 colors in an image of 2 by 2, when scaled to a 100 by 100,
> should have a different color in every pixel. Not in 1.4.10.
> 
Right, seems wrong. Same thing with recent code.
I suspect there may be no trivial fix, as changing this behavior may 
break applications that rely on it.
I'll dig into it when time permits.

/Kim