{"action":"created","issue":{"url":"https://api.github.com/repos/MrRio/jsPDF/issues/762","repository_url":"https://api.github.com/repos/MrRio/jsPDF","labels_url":"https://api.github.com/repos/MrRio/jsPDF/issues/762/labels{/name}","comments_url":"https://api.github.com/repos/MrRio/jsPDF/issues/762/comments","events_url":"https://api.github.com/repos/MrRio/jsPDF/issues/762/events","html_url":"https://github.com/MrRio/jsPDF/issues/762","id":156655554,"number":762,"title":"addImage produces an blur or too low quality image in the pdf","user":{"login":"Balaji-Gopal","id":16814811,"avatar_url":"https://avatars.githubusercontent.com/u/16814811?v=3","gravatar_id":"","url":"https://api.github.com/users/Balaji-Gopal","html_url":"https://github.com/Balaji-Gopal","followers_url":"https://api.github.com/users/Balaji-Gopal/followers","following_url":"https://api.github.com/users/Balaji-Gopal/following{/other_user}","gists_url":"https://api.github.com/users/Balaji-Gopal/gists{/gist_id}","starred_url":"https://api.github.com/users/Balaji-Gopal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Balaji-Gopal/subscriptions","organizations_url":"https://api.github.com/users/Balaji-Gopal/orgs","repos_url":"https://api.github.com/users/Balaji-Gopal/repos","events_url":"https://api.github.com/users/Balaji-Gopal/events{/privacy}","received_events_url":"https://api.github.com/users/Balaji-Gopal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-05-25T03:26:15Z","updated_at":"2016-07-20T15:50:56Z","closed_at":null,"body":"I am using the latest version of jsPDF 1.2.61, While adding an image it adds an  blur image even though the image is of high quality, if I the same base64 in on-line decoder it produces the perfect image as the original, but the base64 produces low quality when I use addImage functionality of jsPDF.\r\n\r\nSnippet:\r\n\r\nvar doc = new jsPDF('landscape');\r\nvar Imagebase64=null;\r\ndoc.setFontSize(20);\r\ndoc.text(35, 25, \"GoodYear\");\r\nvar Imagebase64='data:image/jpeg;base64,/<mybase64code>';\r\ndoc.addImage(imagePath, 'jpeg',0, 5, 210, 35);\r\ndoc.save(\"mypdf.pdf\");\r\n"},"comment":{"url":"https://api.github.com/repos/MrRio/jsPDF/issues/comments/233992623","html_url":"https://github.com/MrRio/jsPDF/issues/762#issuecomment-233992623","issue_url":"https://api.github.com/repos/MrRio/jsPDF/issues/762","id":233992623,"user":{"login":"ido172","id":4242109,"avatar_url":"https://avatars.githubusercontent.com/u/4242109?v=3","gravatar_id":"","url":"https://api.github.com/users/ido172","html_url":"https://github.com/ido172","followers_url":"https://api.github.com/users/ido172/followers","following_url":"https://api.github.com/users/ido172/following{/other_user}","gists_url":"https://api.github.com/users/ido172/gists{/gist_id}","starred_url":"https://api.github.com/users/ido172/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ido172/subscriptions","organizations_url":"https://api.github.com/users/ido172/orgs","repos_url":"https://api.github.com/users/ido172/repos","events_url":"https://api.github.com/users/ido172/events{/privacy}","received_events_url":"https://api.github.com/users/ido172/received_events","type":"User","site_admin":false},"created_at":"2016-07-20T15:50:56Z","updated_at":"2016-07-20T15:50:56Z","body":"same issue for me on 1.2.61\r\n@bhavik4748 thanks that really helped, I've found it better to do doc.internal.scaleFactor = 1.33;"}}
{"actor":{"display_login":"ido172"}}