{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/1698","labels_url":"https://api.github.com/repos/webpack/webpack/issues/1698/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/1698/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/1698/events","html_url":"https://github.com/webpack/webpack/issues/1698","id":120053815,"number":1698,"title":"Image files required through url-loader/file-loader are corrupt","user":{"login":"brianchirls","id":492291,"avatar_url":"https://avatars.githubusercontent.com/u/492291?v=3","gravatar_id":"","url":"https://api.github.com/users/brianchirls","html_url":"https://github.com/brianchirls","followers_url":"https://api.github.com/users/brianchirls/followers","following_url":"https://api.github.com/users/brianchirls/following{/other_user}","gists_url":"https://api.github.com/users/brianchirls/gists{/gist_id}","starred_url":"https://api.github.com/users/brianchirls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianchirls/subscriptions","organizations_url":"https://api.github.com/users/brianchirls/orgs","repos_url":"https://api.github.com/users/brianchirls/repos","events_url":"https://api.github.com/users/brianchirls/events{/privacy}","received_events_url":"https://api.github.com/users/brianchirls/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/webpack/webpack/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-02T22:49:36Z","updated_at":"2015-12-08T18:18:04Z","closed_at":null,"body":"I'm trying to require image files:\r\n\r\n```javascript\r\nrequire('../images/marble.jpg')\r\n```\r\nMy loader configuration looks like:\r\n```javascript\r\ntest: /\\.(jpg|png)$/,\r\nloader: 'url-loader',\r\nquery: {\r\n\tlimit: 8192,\r\n\tname: 'images/[name].[ext]'\r\n}\r\n```\r\n\r\nWhen I use image files (both png and jpg) over the limit, they are copied incorrectly. The output files are much bigger than the originals, and they are no longer correctly formatted images. They are still binary files, though, so it is difficult to tell what's going wrong. (Images below the limit work fine.)\r\n\r\nFor example, I'm using a jpg that's 61.9kb. the output log from webpack reports the file size correctly. However, the copied file is about 114kb and no browser or image viewer can open it.\r\n\r\n(possibly related to #1668)"},"comment":{"url":"https://api.github.com/repos/webpack/webpack/issues/comments/162967397","html_url":"https://github.com/webpack/webpack/issues/1698#issuecomment-162967397","issue_url":"https://api.github.com/repos/webpack/webpack/issues/1698","id":162967397,"user":{"login":"karlnp","id":3675735,"avatar_url":"https://avatars.githubusercontent.com/u/3675735?v=3","gravatar_id":"","url":"https://api.github.com/users/karlnp","html_url":"https://github.com/karlnp","followers_url":"https://api.github.com/users/karlnp/followers","following_url":"https://api.github.com/users/karlnp/following{/other_user}","gists_url":"https://api.github.com/users/karlnp/gists{/gist_id}","starred_url":"https://api.github.com/users/karlnp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlnp/subscriptions","organizations_url":"https://api.github.com/users/karlnp/orgs","repos_url":"https://api.github.com/users/karlnp/repos","events_url":"https://api.github.com/users/karlnp/events{/privacy}","received_events_url":"https://api.github.com/users/karlnp/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T18:18:03Z","updated_at":"2015-12-08T18:18:03Z","body":"I'd be interested to see a bare-bones repro."}}