{"action":"created","issue":{"url":"https://api.github.com/repos/ImageMagick/ImageMagick/issues/262","repository_url":"https://api.github.com/repos/ImageMagick/ImageMagick","labels_url":"https://api.github.com/repos/ImageMagick/ImageMagick/issues/262/labels{/name}","comments_url":"https://api.github.com/repos/ImageMagick/ImageMagick/issues/262/comments","events_url":"https://api.github.com/repos/ImageMagick/ImageMagick/issues/262/events","html_url":"https://github.com/ImageMagick/ImageMagick/issues/262","id":174947501,"number":262,"title":"tiff:rows-per-strip not honored in some cases","user":{"login":"lightmare","id":1419852,"avatar_url":"https://avatars.githubusercontent.com/u/1419852?v=3","gravatar_id":"","url":"https://api.github.com/users/lightmare","html_url":"https://github.com/lightmare","followers_url":"https://api.github.com/users/lightmare/followers","following_url":"https://api.github.com/users/lightmare/following{/other_user}","gists_url":"https://api.github.com/users/lightmare/gists{/gist_id}","starred_url":"https://api.github.com/users/lightmare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lightmare/subscriptions","organizations_url":"https://api.github.com/users/lightmare/orgs","repos_url":"https://api.github.com/users/lightmare/repos","events_url":"https://api.github.com/users/lightmare/events{/privacy}","received_events_url":"https://api.github.com/users/lightmare/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-04T12:50:52Z","updated_at":"2016-09-05T16:51:13Z","closed_at":null,"body":"- `COMPRESSION_JPEG`\r\nhttps://github.com/ImageMagick/ImageMagick/blob/728dc6a600cf4cbdac846964c85cc04339db8ac1/coders/tiff.c#L3490\r\n\r\nHere 16 is added to the number of rows per strip when it's already a multiple of 16:\r\n```c\r\nrows_per_strip+=(16-(rows_per_strip % 16));\r\n```\r\nProper up-rounding would be:\r\n```c\r\nrows_per_strip += 15 - (rows_per_strip + 15) % 16;\r\n```\r\n\r\nMoreover, the rounding factor should ideally be `8 * vertical_subsampling`\r\n\r\n- `COMPRESSION_ADOBE_DEFLATE`\r\nhttps://github.com/ImageMagick/ImageMagick/blob/728dc6a600cf4cbdac846964c85cc04339db8ac1/coders/tiff.c#L3540\r\n\r\nHere neither `tiff:rows-per-strip` nor input image `TIFFTAG_ROWSPERSTRIP` are honored; instead, single-strip output is forced:\r\n```c\r\nrows_per_strip=(uint32) image->rows;\r\n```\r\n\r\nSame for `COMPRESSION_CCITTFAX3/4`\r\n"},"comment":{"url":"https://api.github.com/repos/ImageMagick/ImageMagick/issues/comments/244785233","html_url":"https://github.com/ImageMagick/ImageMagick/issues/262#issuecomment-244785233","issue_url":"https://api.github.com/repos/ImageMagick/ImageMagick/issues/262","id":244785233,"user":{"login":"mikayla-grace","id":10504993,"avatar_url":"https://avatars.githubusercontent.com/u/10504993?v=3","gravatar_id":"","url":"https://api.github.com/users/mikayla-grace","html_url":"https://github.com/mikayla-grace","followers_url":"https://api.github.com/users/mikayla-grace/followers","following_url":"https://api.github.com/users/mikayla-grace/following{/other_user}","gists_url":"https://api.github.com/users/mikayla-grace/gists{/gist_id}","starred_url":"https://api.github.com/users/mikayla-grace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikayla-grace/subscriptions","organizations_url":"https://api.github.com/users/mikayla-grace/orgs","repos_url":"https://api.github.com/users/mikayla-grace/repos","events_url":"https://api.github.com/users/mikayla-grace/events{/privacy}","received_events_url":"https://api.github.com/users/mikayla-grace/received_events","type":"User","site_admin":false},"created_at":"2016-09-05T16:51:13Z","updated_at":"2016-09-05T16:51:13Z","body":"We remove the lines you identified in the latest patch.  Thanks."}}
{"actor":{"display_login":"mikayla-grace"}}