{"action":"created","issue":{"url":"https://api.github.com/repos/saitoha/libsixel/issues/34","labels_url":"https://api.github.com/repos/saitoha/libsixel/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/saitoha/libsixel/issues/34/comments","events_url":"https://api.github.com/repos/saitoha/libsixel/issues/34/events","html_url":"https://github.com/saitoha/libsixel/issues/34","id":58905488,"number":34,"title":"img2sixel で libpng を使用すると http://www.schaik.com/pngsuite/basn0g01.png をリサイズした結果が表示されない","user":{"login":"msmhrt","id":236546,"avatar_url":"https://avatars.githubusercontent.com/u/236546?v=3","gravatar_id":"","url":"https://api.github.com/users/msmhrt","html_url":"https://github.com/msmhrt","followers_url":"https://api.github.com/users/msmhrt/followers","following_url":"https://api.github.com/users/msmhrt/following{/other_user}","gists_url":"https://api.github.com/users/msmhrt/gists{/gist_id}","starred_url":"https://api.github.com/users/msmhrt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msmhrt/subscriptions","organizations_url":"https://api.github.com/users/msmhrt/orgs","repos_url":"https://api.github.com/users/msmhrt/repos","events_url":"https://api.github.com/users/msmhrt/events{/privacy}","received_events_url":"https://api.github.com/users/msmhrt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-25T14:02:02Z","updated_at":"2015-02-25T15:11:37Z","closed_at":null,"body":"【概要】\r\n`img2sixel` で libpng を使用すると http://www.schaik.com/pngsuite/basn0g01.png をリサイズした結果が表示されない\r\n\r\n\r\n【発生環境】\r\nOS: Ubuntu 14.04.2 LTS (amd64)\r\nTerminal: mlterm version 3.4.3 post/2015-02-22\r\n\r\n【詳細】\r\nlibpng を使用するようにビルドした `master` ブランチ( https://github.com/saitoha/libsixel/commit/7efd9a4bb4f95d7842fe7cec3b9cf8f48f009804 ) の `img2sixel` で `-h` オプションまたは `-w` オプションを指定（例: `-h 32`）して http://www.schaik.com/pngsuite/basn0g01.png を表示しようとすると何も表示されません。\r\n\r\nstb_image を使用するようにビルドすれば問題ない画像が表示されます。\r\n\r\n`develop` ブランチ( https://github.com/saitoha/libsixel/commit/bf23ab67f59a660320c806b83f391155fc11d622) でも上記と同様の結果になりました。\r\n\r\n以下は使用した `libpng12-dev` の詳細です。\r\n\r\n```\r\nl$ apt-cache show libpng12-dev\r\nPackage: libpng12-dev\r\nPriority: optional\r\nSection: libdevel\r\nInstalled-Size: 655\r\nMaintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>\r\nOriginal-Maintainer: Anibal Monsalve Salazar <anibal@debian.org>\r\nArchitecture: amd64\r\nSource: libpng\r\nVersion: 1.2.50-1ubuntu2\r\nReplaces: libpng12-0-dev, libpng3-dev (<= 1.2.5)\r\nProvides: libpng-dev, libpng12-0-dev, libpng3-dev\r\nDepends: libpng12-0 (= 1.2.50-1ubuntu2), zlib1g-dev\r\nConflicts: libpng-dev, libpng12-0-dev, libpng2 (<< 1.0.12-3), libpng2-dev\r\nFilename: pool/main/libp/libpng/libpng12-dev_1.2.50-1ubuntu2_amd64.deb\r\nSize: 206078\r\nMD5sum: 1c94d131e03fc495db6b898686c5fea5\r\nSHA1: f506b031df4a3d2d6de1098f72da52fce246644f\r\nSHA256: f11324fe7f2432d3af9d2ce179fb7ebc34591ea18b3f0f55e1315d815a912168\r\nDescription-ja: PNG ライブラリ - 開発用\r\n libpng は PNG (ポータブルネットワークグラフィックス) 形式のファイルの読み書\r\n きを行なうためのインターフェースを実装したライブラリです。\r\n .\r\n 本パッケージには、libpng を使うプログラムやパッケージを構築するのに必要 なヘッダと開発用ファイルが含まれています。\r\nDescription-md5: 748198d86eeddc4aa1418e7d1311203c\r\nHomepage: http://libpng.org/pub/png/libpng.html\r\nBugs: https://bugs.launchpad.net/ubuntu/+filebug\r\nOrigin: Ubuntu\r\nSupported: 5y\r\n\r\n$\r\n```"},"comment":{"url":"https://api.github.com/repos/saitoha/libsixel/issues/comments/75976669","html_url":"https://github.com/saitoha/libsixel/issues/34#issuecomment-75976669","issue_url":"https://api.github.com/repos/saitoha/libsixel/issues/34","id":75976669,"user":{"login":"saitoha","id":1162739,"avatar_url":"https://avatars.githubusercontent.com/u/1162739?v=3","gravatar_id":"","url":"https://api.github.com/users/saitoha","html_url":"https://github.com/saitoha","followers_url":"https://api.github.com/users/saitoha/followers","following_url":"https://api.github.com/users/saitoha/following{/other_user}","gists_url":"https://api.github.com/users/saitoha/gists{/gist_id}","starred_url":"https://api.github.com/users/saitoha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saitoha/subscriptions","organizations_url":"https://api.github.com/users/saitoha/orgs","repos_url":"https://api.github.com/users/saitoha/repos","events_url":"https://api.github.com/users/saitoha/events{/privacy}","received_events_url":"https://api.github.com/users/saitoha/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T15:11:36Z","updated_at":"2015-02-25T15:11:36Z","body":"@msmhrt ご報告ありがとうございます。\r\n\r\n- 1/2/4bpp グレイスケール + リサイズ\r\n- 8bpp グレイスケール + 減色\r\n\r\nの組み合わせで不具合が発生していました...\r\n最適な読み方をしようとしていろいろ場合分けしているので、こういったエッジケースを洗い出さなきゃいけないですね..."}}