{"action":"opened","issue":{"url":"https://api.github.com/repos/mozilla/mozjpeg/issues/296","repository_url":"https://api.github.com/repos/mozilla/mozjpeg","labels_url":"https://api.github.com/repos/mozilla/mozjpeg/issues/296/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/mozjpeg/issues/296/comments","events_url":"https://api.github.com/repos/mozilla/mozjpeg/issues/296/events","html_url":"https://github.com/mozilla/mozjpeg/issues/296","id":337694258,"node_id":"MDU6SXNzdWUzMzc2OTQyNTg=","number":296,"title":"buggy jpeg_mem_dst forces straight copy src to dst in jpegtran","user":{"login":"kkopachev","id":2279051,"node_id":"MDQ6VXNlcjIyNzkwNTE=","avatar_url":"https://avatars2.githubusercontent.com/u/2279051?v=4","gravatar_id":"","url":"https://api.github.com/users/kkopachev","html_url":"https://github.com/kkopachev","followers_url":"https://api.github.com/users/kkopachev/followers","following_url":"https://api.github.com/users/kkopachev/following{/other_user}","gists_url":"https://api.github.com/users/kkopachev/gists{/gist_id}","starred_url":"https://api.github.com/users/kkopachev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkopachev/subscriptions","organizations_url":"https://api.github.com/users/kkopachev/orgs","repos_url":"https://api.github.com/users/kkopachev/repos","events_url":"https://api.github.com/users/kkopachev/events{/privacy}","received_events_url":"https://api.github.com/users/kkopachev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-02T23:18:49Z","updated_at":"2018-07-02T23:18:49Z","closed_at":null,"author_association":"NONE","body":"I have a progressive input.jpg with 10 scans. I would like to supply custom scans file and save image progressive, but with another scans configuration. \r\n```\r\n./jpegtran -debug -copy none -optimize -scans scans.txt -outfile mozjpegtran-new.jpg input.jpg\r\n```\r\n\r\nAs a result, I expect progressive file with specified scans.\r\n\r\nActual result is just straight copy of input file. \r\nI managed to figure out that if force this if to false state\r\nhttps://github.com/mozilla/mozjpeg/blob/7678cba14037c9381119df6c6452e18f70ccb327/jpegtran.c#L569-L575\r\n, disabling `jpeg_mem_dst`, it all works as expected. \r\n\r\nThis is causing https://github.com/mozilla/mozjpeg/issues/221 and https://github.com/mozilla/mozjpeg/issues/174"}}
{"actor":{"display_login":"kkopachev"}}