UprootLabs / poly-flif

:camera: A poly-fill for the FLIF image format.
https://uprootlabs.github.io/poly-flif/
Other
244 stars 11 forks source link

Error when scaling #40

Closed hrj closed 7 years ago

hrj commented 7 years ago

The final render of the following appears broken:

<canvas data-polyflif-src="clock.flif" data-polyflif-scale="true" style="width:100px;height:100px"></canvas>
<canvas data-polyflif-src="spinfox.flif" data-polyflif-scale="true" style="width:100px;height:100px"></canvas>

The preview renders are fine.

hrj commented 7 years ago

One reason for this bug was that decoder was not downsampling preview images. A fix for that has been submitted upstream: https://github.com/FLIF-hub/FLIF/pull/407

On the PolyFLIF side too, some changes are required, which I will take up next.