{"action":"created","issue":{"url":"https://api.github.com/repos/FLIF-hub/FLIF/issues/151","labels_url":"https://api.github.com/repos/FLIF-hub/FLIF/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/FLIF-hub/FLIF/issues/151/comments","events_url":"https://api.github.com/repos/FLIF-hub/FLIF/issues/151/events","html_url":"https://github.com/FLIF-hub/FLIF/issues/151","id":116088950,"number":151,"title":"RGGB compression somtimes worse than RawSpeedCompress+LZMA2","user":{"login":"StephanBusch","id":15246743,"avatar_url":"https://avatars.githubusercontent.com/u/15246743?v=3","gravatar_id":"","url":"https://api.github.com/users/StephanBusch","html_url":"https://github.com/StephanBusch","followers_url":"https://api.github.com/users/StephanBusch/followers","following_url":"https://api.github.com/users/StephanBusch/following{/other_user}","gists_url":"https://api.github.com/users/StephanBusch/gists{/gist_id}","starred_url":"https://api.github.com/users/StephanBusch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephanBusch/subscriptions","organizations_url":"https://api.github.com/users/StephanBusch/orgs","repos_url":"https://api.github.com/users/StephanBusch/repos","events_url":"https://api.github.com/users/StephanBusch/events{/privacy}","received_events_url":"https://api.github.com/users/StephanBusch/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-10T11:33:01Z","updated_at":"2015-11-12T17:07:14Z","closed_at":"2015-11-10T23:32:02Z","body":"In my ongoing tests with RGGB created by dcraw compression of FLIF is sometimes worse\r\nthan RawSpeedCompress+LZMA2. RawSpeedCompress uses different Delta versions for uncompressed pixel data and applies ZigZag-encoding which helps all kinds of general purpose compressors.\r\n\r\nhttps://drive.google.com/file/d/0ByLIAFlgldSoNFR6RmcwdTgxQTQ/view?usp=sharing\r\nleica_m82_05.rggb 11.359.612 (FLIF 0.1)\r\nleica_m82_05.rggb 10.928.429 (FLIF 0.1.3_slower_but_stronger -n)\r\nleica_m82_05.rggb   5.560.365 (RawSpeedCompress3 + LZMA2)\r\n\r\nhttps://drive.google.com/file/d/0ByLIAFlgldSoalhkSkdsNmJNaDA/view?usp=sharing\r\nnikon_1_v2_17.rggb 9.931.720 (FLIF 0.1)\r\nnikon_1_v2_17.rggb 9.636.696 (FLIF 0.1.3_slower_but_stronger -n)\r\nnikon_1_v2_17.rggb 8.810.004 (RawSpeedCompress3 + LZMA2)\r\n\r\nhttps://drive.google.com/file/d/0ByLIAFlgldSoZmJDUXl2YWVPS2M/view?usp=sharing\r\nnikon_d5200_14.rggb 24.334.053 (FLIF 0.1)\r\nnikon_d5200_14.rggb 23.684.359 (FLIF 0.1.3_slower_but_stronger -n)\r\nnikon_d5200_14.rggb 21.527.675 (RawSpeedCompress3 + LZMA2)\r\n\r\nCan you please check why FLIF is worse here?\r\nWill future versions also get something like Delta+ZigZag+LZ?\r\n\r\nIn almost every case the -n switch provided better compression on RGGB"},"comment":{"url":"https://api.github.com/repos/FLIF-hub/FLIF/issues/comments/156168114","html_url":"https://github.com/FLIF-hub/FLIF/issues/151#issuecomment-156168114","issue_url":"https://api.github.com/repos/FLIF-hub/FLIF/issues/151","id":156168114,"user":{"login":"psykauze","id":7633907,"avatar_url":"https://avatars.githubusercontent.com/u/7633907?v=3","gravatar_id":"","url":"https://api.github.com/users/psykauze","html_url":"https://github.com/psykauze","followers_url":"https://api.github.com/users/psykauze/followers","following_url":"https://api.github.com/users/psykauze/following{/other_user}","gists_url":"https://api.github.com/users/psykauze/gists{/gist_id}","starred_url":"https://api.github.com/users/psykauze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psykauze/subscriptions","organizations_url":"https://api.github.com/users/psykauze/orgs","repos_url":"https://api.github.com/users/psykauze/repos","events_url":"https://api.github.com/users/psykauze/events{/privacy}","received_events_url":"https://api.github.com/users/psykauze/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T17:07:14Z","updated_at":"2015-11-12T17:07:14Z","body":"As I see, Flif outperform the other method by >1% on average, that is really good. Because each compressor has its own method, sometimes one compressor that usually be worse than others can be more efficient for some case.\r\n\r\nYou can check some plots at issue #144 you will see that FLIF can sometimes outperform JPEG in its own sandbox, and sometimes webp outperform FLIF."}}