javascript - HTML Blurry Canvas Images -


i use jcrop provide users friendly way of uploading images via ajax. these images have constraint width , height jcrop comes play. sake of brevity im doing follows:

input file select via javascript file api loads image img tag. jcrop works image tag , renders result onto html canvas.

now dodgy part. canvas image blurry...

for arguments sake canvas set 400x200 crop size.

if canvas width , height set via css results in blurry image result. around had set width , height via html attributes. have wonderful cropping solution can save images via ajax. crisp , clear:)

<canvas id="preview" width="400" height="200"></canvas> 

Comments

Popular posts from this blog

How to logout from a login page in asp.net -

Stack level too deep error after upgrade to rails 3.2 and ruby 1.9.3 -