{"action":"opened","issue":{"url":"https://api.github.com/repos/graphpaperpress/Sell-Media/issues/740","labels_url":"https://api.github.com/repos/graphpaperpress/Sell-Media/issues/740/labels{/name}","comments_url":"https://api.github.com/repos/graphpaperpress/Sell-Media/issues/740/comments","events_url":"https://api.github.com/repos/graphpaperpress/Sell-Media/issues/740/events","html_url":"https://github.com/graphpaperpress/Sell-Media/issues/740","id":126753366,"number":740,"title":"Missing metadata in downloads","user":{"login":"rickalday","id":312000,"avatar_url":"https://avatars.githubusercontent.com/u/312000?v=3","gravatar_id":"","url":"https://api.github.com/users/rickalday","html_url":"https://github.com/rickalday","followers_url":"https://api.github.com/users/rickalday/followers","following_url":"https://api.github.com/users/rickalday/following{/other_user}","gists_url":"https://api.github.com/users/rickalday/gists{/gist_id}","starred_url":"https://api.github.com/users/rickalday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickalday/subscriptions","organizations_url":"https://api.github.com/users/rickalday/orgs","repos_url":"https://api.github.com/users/rickalday/repos","events_url":"https://api.github.com/users/rickalday/events{/privacy}","received_events_url":"https://api.github.com/users/rickalday/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"thadallender","id":302884,"avatar_url":"https://avatars.githubusercontent.com/u/302884?v=3","gravatar_id":"","url":"https://api.github.com/users/thadallender","html_url":"https://github.com/thadallender","followers_url":"https://api.github.com/users/thadallender/followers","following_url":"https://api.github.com/users/thadallender/following{/other_user}","gists_url":"https://api.github.com/users/thadallender/gists{/gist_id}","starred_url":"https://api.github.com/users/thadallender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thadallender/subscriptions","organizations_url":"https://api.github.com/users/thadallender/orgs","repos_url":"https://api.github.com/users/thadallender/repos","events_url":"https://api.github.com/users/thadallender/events{/privacy}","received_events_url":"https://api.github.com/users/thadallender/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2016-01-14T21:36:26Z","updated_at":"2016-01-14T21:36:26Z","closed_at":null,"body":"Image metadata gets striped when resizing images in WP. This is a long known issue: https://core.trac.wordpress.org/ticket/11877\r\n\r\nHowever, if users are selling original images the original file should be served but it's not, SM still generates a new image.  We can add another conditional in the [Downloads class](https://github.com/graphpaperpress/Sell-Media/blob/master/inc/class-downloads.php#L72) to check if the customer purchased an original image and do  download_file instead. "}}