{"action":"created","issue":{"url":"https://api.github.com/repos/spelufo/books-dl/issues/1","labels_url":"https://api.github.com/repos/spelufo/books-dl/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/spelufo/books-dl/issues/1/comments","events_url":"https://api.github.com/repos/spelufo/books-dl/issues/1/events","html_url":"https://github.com/spelufo/books-dl/issues/1","id":98029024,"number":1,"title":"High resolution force","user":{"login":"GerritHoekstra","id":3610345,"avatar_url":"https://avatars.githubusercontent.com/u/3610345?v=3","gravatar_id":"","url":"https://api.github.com/users/GerritHoekstra","html_url":"https://github.com/GerritHoekstra","followers_url":"https://api.github.com/users/GerritHoekstra/followers","following_url":"https://api.github.com/users/GerritHoekstra/following{/other_user}","gists_url":"https://api.github.com/users/GerritHoekstra/gists{/gist_id}","starred_url":"https://api.github.com/users/GerritHoekstra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GerritHoekstra/subscriptions","organizations_url":"https://api.github.com/users/GerritHoekstra/orgs","repos_url":"https://api.github.com/users/GerritHoekstra/repos","events_url":"https://api.github.com/users/GerritHoekstra/events{/privacy}","received_events_url":"https://api.github.com/users/GerritHoekstra/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-29T21:05:06Z","updated_at":"2015-07-30T15:13:07Z","closed_at":"2015-07-30T15:13:07Z","body":"The images that are saved to disk are not high resolution. High resolution can be forced to modify the `&w=` get parameter to 1200 (this ensures that the images are 1200px wide).\r\n\r\nI've tried this:\r\n```javascript\r\nimg.src = img.src.replace(/&w=\\d+$/, \"&w=1200\");\r\n```\r\nin  the function `getPageImage()` but then the images are corrupted.\r\n\r\nHow can we force to download the high resolution of the image?\r\n"},"comment":{"url":"https://api.github.com/repos/spelufo/books-dl/issues/comments/126366678","html_url":"https://github.com/spelufo/books-dl/issues/1#issuecomment-126366678","issue_url":"https://api.github.com/repos/spelufo/books-dl/issues/1","id":126366678,"user":{"login":"GerritHoekstra","id":3610345,"avatar_url":"https://avatars.githubusercontent.com/u/3610345?v=3","gravatar_id":"","url":"https://api.github.com/users/GerritHoekstra","html_url":"https://github.com/GerritHoekstra","followers_url":"https://api.github.com/users/GerritHoekstra/followers","following_url":"https://api.github.com/users/GerritHoekstra/following{/other_user}","gists_url":"https://api.github.com/users/GerritHoekstra/gists{/gist_id}","starred_url":"https://api.github.com/users/GerritHoekstra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GerritHoekstra/subscriptions","organizations_url":"https://api.github.com/users/GerritHoekstra/orgs","repos_url":"https://api.github.com/users/GerritHoekstra/repos","events_url":"https://api.github.com/users/GerritHoekstra/events{/privacy}","received_events_url":"https://api.github.com/users/GerritHoekstra/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T15:13:07Z","updated_at":"2015-07-30T15:13:07Z","body":"Thanks! Using this now:\r\n```javascript\r\ngoogle.load(\"books\", \"0\");\r\ngoogle.setOnLoadCallback(function initialize() {\r\n  viewer = new google.books.DefaultViewer(document.getElementById('viewerCanvas'));\r\n  viewer.load(bookid, null, alertInitialized);\r\n})\r\n\r\nfunction alertInitialized() {\r\n  for(var i=0;i<7;i++) {\r\n\tviewer.zoomIn();\r\n  }\r\n  setTimeout(nextPage, 3000);\r\n}\r\n```"}}