Login  Register

Re: ImageJ shows corrupted image on tiff

Posted by ctrueden on Apr 30, 2014; 10:30am
URL: http://imagej.273.s1.nabble.com/ImageJ-shows-corrupted-image-on-tiff-tp5007482p5007505.html

Hi Herbie,

> I work on a Mac with PowerPC CPU that, as it is known,
> uses differently ordered bytes (when compared to Intel-CPUs).

The native byte order of your machine should not affect the behavior of
Java programs. The Java specification manages byte ordering in a consistent
way across architectures.

-Curtis


On Wed, Apr 30, 2014 at 4:11 AM, Herbie <[hidden email]> wrote:

> Mark,
>
> sorry for not being sufficiently explicit:
>
> You wrote:
> "The only thing that seems different is the Java version [...]"
>
> ... but that's not true and I thought you were aware of the communicated
> fact that I work on a Mac with PowerPC CPU that, as it is known, uses
> differently ordered bytes (when compared to Intel-CPUs).
>
> I have no idea how the TIFF-norm usually handles this issue, but it does
> and I never had any problems. That said, it is up to the coder to comply
> with the corresponding rules that apparently exist.
>
> Although today most users will work on machines with Intel-CPU, I think
> one should create software that can handle different byte orders...
>
> HTH
>
>
> Herbie
>
> ::::::::::::::::::::::::::::::::::::
> On 29.04.14 22:19, Mark Hiner wrote:
>
>> Herbie,
>>
>>   Not sure why we have different results. The only thing that seems
>> different is the Java version, but I don't see how that would matter here,
>> since we just confirmed it was a problem with interpreting the FillOrder
>> tag. You don't have any other plugins installed that may be being used for
>> opening this file? Did you try with a fresh ImageJ or Fiji?
>>
>>   Yaniv - Curtis Rueden just added FillOrder
>> handling<https://github.com/scifio/scifio/commit/
>> fedcfa5785b0895e6fa38712e86d1f334a7c4706>to
>> SCIFIO and your file now opens perfectly (see this
>> screenshot <http://hinerm.imagej.net/screenshot.png>).
>>
>>   I'll let you know when this is uploaded to Fiji so you can update and
>> get
>> the fix!
>>
>>   Thanks again for reporting this and making SCIFIO/Fiji better :)
>>
>> - Mark
>>
>>
>> On Tue, Apr 29, 2014 at 2:08 PM, Herbie <[hidden email]> wrote:
>>
>>  Mark,
>>>
>>> as mentioned in my most recent post the 32bit-version of ImageJ I'm using
>>> is 1.48v (Java 1.5.0_19) on a Mac PowerPC G4 running OSX 10.4.11.
>>>
>>> The very image opens correctly in ImageJ either by using "File>Open" or
>>> by
>>> dragging it onto the ImageJ-Icon or its Tool-bar. It shows properly in my
>>> browser (TenFourFox 24.4.0) and in Photoshop version 10.0.1.
>>>
>>> Best
>>>
>>> Herbie
>>>
>>> ::::::::::::::::::::::::::::::::::::
>>>
>>> On 29.04.14 20:57, Mark Hiner wrote:
>>>
>>>  Yaniv,
>>>>
>>>>    Once it will be fixed as you mentioned, how do I get the fix? Is it a
>>>> new
>>>>
>>>>  version of ImageJ?
>>>>>
>>>>>
>>>>>  The fix will be in Fiji <http://fiji.sc/Fiji>, and once it's
>>>> available
>>>> it's
>>>>
>>>> just a matter of running "Help>Update Fiji" to get the latest libraries.
>>>>
>>>> the image you've linked in your original post was definitely not the
>>>>
>>>>  corrupted one and it opens perfectly in ImageJ -- confusing.
>>>>>
>>>>>
>>>>>  Herbie - what version of ImageJ were you using, and were you just
>>>> using
>>>> File>Open? I downloaded a fresh 1.48v on OSX and definitely saw the same
>>>> pixel inversion.. it definitely did not open perfectly for me in my
>>>> ImageJ,
>>>> or Fiji.
>>>>
>>>> Also, technically, I would not call the data corrupted.. if I understand
>>>> the flag correctly, all the pixel values are correct, the reader just
>>>> isn't
>>>> accounting for their reversed order.
>>>>
>>>> - Mark
>>>>
>>>>
>>>> On Tue, Apr 29, 2014 at 1:41 PM, ImageJUser100 <[hidden email]>
>>>> wrote:
>>>>
>>>>   Are you saying you downloaded the image from
>>>>
>>>>> https://copy.com/RpBz0qS3RToD
>>>>> ,
>>>>> opened it on ImageJ and it displayed properly?
>>>>>
>>>>> I tried the same file on several Windows systems with ImageJ 1.48 and
>>>>> all
>>>>> of
>>>>> them showed the corrupted image I posted on the last post.
>>>>>
>>>>> Yaniv
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>> http://imagej.1557.x6.nabble.com/ImageJ-shows-corrupted-image-on-tiff-
>>>>> tp5007482p5007491.html
>>>>> Sent from the ImageJ mailing list archive at Nabble.com.
>>>>>
>>>>> --
>>>>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>>>>
>>>>>
>>>>>  --
>>>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>>>
>>>>
>>>>  --
>>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>>
>>>
>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>
>>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html