|
From: | Mike Miller |
Subject: | [Octave-bug-tracker] [bug #47746] imwrite writes incorrect TIFF pixel values from uint8 array on i686-linux-gnu |
Date: | Thu, 19 May 2016 15:48:28 +0000 (UTC) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0 |
Update of bug #47746 (project octave): Status: None => Patch Submitted _______________________________________________________ Follow-up Comment #11: I'm attaching a patch that fixes the error I saw on a Debian 32-bit system. The problem occurs when writing uintN-based images and the library quantum depth is greater than 8, the scaling factor used to quantize the pixels may be less than 1. There may be an equivalent bug in the read_images function, where the divisor could be less than 1 if the GM quantum depth is 8 and we are reading a 16-bit image file, but I don't have a way to test that currently. (file #37210) _______________________________________________________ Additional Item Attachment: File name: bug47746.patch Size:5 KB _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?47746> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |