HomePhabricator

evas png: apply interpolation when scale down image loading.

Authored by Hermet on May 12 2019, 11:45 PM.

Description

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:

After:

Original:

Reviewers: cedric, raster, committers, kimcinoo, jsuya

Subscribers: cedric, reviewers, committers

Tags: efl

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

Details