danschumann / limby-resize

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

demo please

fyyyyy opened this issue · comments

Hello, could you provide a demo jsfiddle or jsbin ?
Especially for the canvas resize
Thanks

Sounds like a good idea I'll put one up tonight, with a big image, and then how it looks scaled down w/ my algorithm or another. Maybe even let them upload their own to test different images.

Sorry I didn't see this sooner, I'm not used to people actually visiting me repos! xD

http://jsbin.com/jocapawere/2/

upload an image to view the 2 outputs.

if you change the scale/factor, you have to upload a different image or refresh first. Anyway, the bigger the downscaling, the more you can notice how pixelated canvas does it, and mine keeps all color data and shrinks it.

by the way, I uploaded a new version of canvas_resize.js earlier too, it wasn't quite setup for frontend before.

Also, using large images that have text in them ( text is basically unreadable in the native canvas implementation, but mine does a nice job ( what you would expect from photoshop, etc )
image

uploading this image to use in readme.md
image

this looks great ! thanks :)