{"action":"closed","issue":{"url":"https://api.github.com/repos/uber/image-diff/issues/23","labels_url":"https://api.github.com/repos/uber/image-diff/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/uber/image-diff/issues/23/comments","events_url":"https://api.github.com/repos/uber/image-diff/issues/23/events","html_url":"https://github.com/uber/image-diff/issues/23","id":89887128,"number":23,"title":"Support skipping of diffImage","user":{"login":"LinusU","id":189580,"avatar_url":"https://avatars.githubusercontent.com/u/189580?v=3","gravatar_id":"","url":"https://api.github.com/users/LinusU","html_url":"https://github.com/LinusU","followers_url":"https://api.github.com/users/LinusU/followers","following_url":"https://api.github.com/users/LinusU/following{/other_user}","gists_url":"https://api.github.com/users/LinusU/gists{/gist_id}","starred_url":"https://api.github.com/users/LinusU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinusU/subscriptions","organizations_url":"https://api.github.com/users/LinusU/orgs","repos_url":"https://api.github.com/users/LinusU/repos","events_url":"https://api.github.com/users/LinusU/events{/privacy}","received_events_url":"https://api.github.com/users/LinusU/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-21T09:12:12Z","updated_at":"2015-06-23T14:41:11Z","closed_at":"2015-06-23T14:41:11Z","body":"I would just like to determine if two pictures looks the same and would not wan't to output an extra image.\r\n\r\nI propose that one should be able to skip the `diffImage` parameter and `image-diff` should then output it to a temporary image.\r\n\r\nIf you want to be correctly guarded against race conditions you shouldn't use a library that generates a random path, but rather a library that creates the file with `O_CREAT | O_EXCL`. A library that does this is my own [fs-temp](https://github.com/LinusU/fs-temp).\r\n\r\n```javascript\r\nvar temp = require('fs-temp').template('%s.png')\r\n\r\n// ...\r\n\r\nif (!options.imageDiff) {\r\n  options.imageDiff = temp.writeFileSync('')\r\n}\r\n```"}}