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

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -