ctrl-freaks / freezeframe.js

freezeframe.js is a library that pauses animated .gifs and enables them to animate on mouse hover / mouse click / touch event, or with trigger / release functions.
http://ctrl-freaks.github.io/freezeframe.js/
MIT License
1.41k stars 110 forks source link

Applied scale to canvas to prevent blurry images. #159

Open KyleSmith0905 opened 5 months ago

KyleSmith0905 commented 5 months ago

Closes #158

Applies a scale on images with high device pixel ratio.

My computer has a device pixel ratio of 1.25, so a 24x24 image was being rendered onto 32x32. Consequently, the image was blurry.