{"action":"opened","issue":{"url":"https://api.github.com/repos/sindresorhus/pageres/issues/163","labels_url":"https://api.github.com/repos/sindresorhus/pageres/issues/163/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/pageres/issues/163/comments","events_url":"https://api.github.com/repos/sindresorhus/pageres/issues/163/events","html_url":"https://github.com/sindresorhus/pageres/issues/163","id":59456043,"number":163,"title":"The `format` option uses the wrong file extension","user":{"login":"MethodGrab","id":2421069,"avatar_url":"https://avatars.githubusercontent.com/u/2421069?v=3","gravatar_id":"","url":"https://api.github.com/users/MethodGrab","html_url":"https://github.com/MethodGrab","followers_url":"https://api.github.com/users/MethodGrab/followers","following_url":"https://api.github.com/users/MethodGrab/following{/other_user}","gists_url":"https://api.github.com/users/MethodGrab/gists{/gist_id}","starred_url":"https://api.github.com/users/MethodGrab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MethodGrab/subscriptions","organizations_url":"https://api.github.com/users/MethodGrab/orgs","repos_url":"https://api.github.com/users/MethodGrab/repos","events_url":"https://api.github.com/users/MethodGrab/events{/privacy}","received_events_url":"https://api.github.com/users/MethodGrab/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-02T09:21:16Z","updated_at":"2015-03-02T09:21:16Z","closed_at":null,"body":"If you use the `--format 'jpg'` option, even though it correctly outputs a JPEG file, the file extension is still `.png`. This is confusing.\r\n\r\nExample:\r\n```\r\n$ pageres google.com --format 'jpg'\r\n✔ Generated 1 screenshot from 1 url and 1 resolution\r\n\r\n$ file google.com-1366x768.png \r\ngoogle.com-1366x768.png: JPEG image data, JFIF standard 1.01\r\n```"}}