evas png: apply interpolation when scale down image loading. 02/206002/1
authorHermet Park <hermetpark@gmail.com>
Mon, 13 May 2019 06:45:50 +0000 (15:45 +0900)
committerHermet Park <hermetpark@gmail.com>
Mon, 13 May 2019 06:55:11 +0000 (15:55 +0900)
commitae2be057806801b2a5aab56d75a50b0435dec95d
tree7d17bd295d71b219f2c90cd448af22a51bdcacbe
parentbe0e15d597dd63bfa3517b52acf23bddf713da3d
evas png: apply interpolation when scale down image loading.

Summary:
This patch improves png quality when image uses scale-down at image loading.

Since current scale-down logic just works like point sampling,
image result could be wholely different,

Simply, if source data is consist of continous white and black pixels,
and scale down factor is 2, the sampled data would be only white,
and lose all black pixels, or vice versa.

The result can be unexpected by users.
Even current jpeg scale-down works with interpolation.

Before:
{F3711651}

After:
{F3711652}

Original:
{F3711653}

Reviewers: cedric, raster, #committers, kimcinoo, jsuya

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8788

Change-Id: I904ace4bfe944e76beb4818af43f6bc63077c163
src/modules/evas/image_loaders/png/evas_image_load_png.c