{"action":"created","issue":{"url":"https://api.github.com/repos/webcompat/webcompat.com/issues/839","labels_url":"https://api.github.com/repos/webcompat/webcompat.com/issues/839/labels{/name}","comments_url":"https://api.github.com/repos/webcompat/webcompat.com/issues/839/comments","events_url":"https://api.github.com/repos/webcompat/webcompat.com/issues/839/events","html_url":"https://github.com/webcompat/webcompat.com/issues/839","id":119557891,"number":839,"title":"images are optimized againandagainandagainandagain","user":{"login":"hallvors","id":120136,"avatar_url":"https://avatars.githubusercontent.com/u/120136?v=3","gravatar_id":"","url":"https://api.github.com/users/hallvors","html_url":"https://github.com/hallvors","followers_url":"https://api.github.com/users/hallvors/followers","following_url":"https://api.github.com/users/hallvors/following{/other_user}","gists_url":"https://api.github.com/users/hallvors/gists{/gist_id}","starred_url":"https://api.github.com/users/hallvors/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hallvors/subscriptions","organizations_url":"https://api.github.com/users/hallvors/orgs","repos_url":"https://api.github.com/users/hallvors/repos","events_url":"https://api.github.com/users/hallvors/events{/privacy}","received_events_url":"https://api.github.com/users/hallvors/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-30T19:03:11Z","updated_at":"2015-11-30T21:08:34Z","closed_at":null,"body":"The build process job for optimizing jpg and png images overwrites the originals. It's odd to run the optimizations again and again on those same files, and it's annoying that Git actually thinks some of them have changes that should be checked in."},"comment":{"url":"https://api.github.com/repos/webcompat/webcompat.com/issues/comments/160762122","html_url":"https://github.com/webcompat/webcompat.com/issues/839#issuecomment-160762122","issue_url":"https://api.github.com/repos/webcompat/webcompat.com/issues/839","id":160762122,"user":{"login":"miketaylr","id":67283,"avatar_url":"https://avatars.githubusercontent.com/u/67283?v=3","gravatar_id":"","url":"https://api.github.com/users/miketaylr","html_url":"https://github.com/miketaylr","followers_url":"https://api.github.com/users/miketaylr/followers","following_url":"https://api.github.com/users/miketaylr/following{/other_user}","gists_url":"https://api.github.com/users/miketaylr/gists{/gist_id}","starred_url":"https://api.github.com/users/miketaylr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miketaylr/subscriptions","organizations_url":"https://api.github.com/users/miketaylr/orgs","repos_url":"https://api.github.com/users/miketaylr/repos","events_url":"https://api.github.com/users/miketaylr/events{/privacy}","received_events_url":"https://api.github.com/users/miketaylr/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T21:08:34Z","updated_at":"2015-11-30T21:08:34Z","body":"> Would it be hard to only optimize images that are newer than already optimized file inside ./dist ?\r\n\r\nHm, probably not. We could have the task move them to `webcompat/static/img/dist/` (which should be .gitignore'd) and check the last-modified date on those before running the task. \r\n\r\nOne minor wrinkle is this would allow us to check in large unoptimized files into the repo. I don't know if that will be an real issue in practice though."}}