LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-10-2019, 04:12 PM   #16
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757

Quote:
Originally Posted by RandomTroll View Post
It is clear.
I think it is evident that we have a different definition of clarity.
Quote:
Originally Posted by RandomTroll View Post
It was a follow-up question to test the hypothesis. A responder said it was the alpha channel. To test that hypothesis ...
You keep saying that yet your statement bears little credibility. You were quite insistent that you wanted an automated, non-X solution. This hard requirement does not make sense for diagnostic purposes.

Be that as it may, after some research I do not think that there is an alpha channel to begin with, even though there are four channels. I found this specification. Pay attention to section 6 (6.5.3 in particular) and 7:
Code:
...

6.5.3 APP14 marker segment for colour encoding

A marker segment containing an APP14 marker and the first six bytes of the application data APi (for i = 1 to 6) of the
segment coded as X'41', X'64', X'6F', X'62', X'65', X'00' (the zero-terminated string "Adobe", according to
Rec. ITU-T T.50 or ISO/IEC 646 coding) shall identify an APP14 marker segment for colour encoding. AP12 is assumed
to contain a single-byte transform flag as defined below; the rest of the marker segment is ignored.

Transform flag values of 0, 1 and 2 shall be supported and are interpreted as follows:

            0 * CMYK for images that are encoded with four components in which all four CMYK values are
                  complemented; RGB for images that are encoded with three components; i.e., the APP14 marker does not
                  specify a transform applied to the image data.

            1 * An image encoded with three components using YCbCr colour encoding.

            2 * An image encoded with four components using YCCK colour encoding.

...

7 Conversions between colour encodings

Conversion between the RGB and YCbCr colour encodings uses the process specified in Rec. ITU-T T.871 |
ISO/IEC 10918-5.

YCCK is obtained from CMYK by converting the CMY channels to YCC channels using the process specified in
Rec. ITU-T T.871 | ISO/IEC 10918-5 for conversion of RGB channels to YCbCr, but with C (Cyan) substituted for
R (Red), M (Magenta) substituted for G (Green), and Y (Yellow) substituted for B (Blue); the first C of YCCK is the
value Cb and the second C of YCCK is the value Cr that result from that process. The K value in YCCK is computed by
complementing the black channel value in CMYK.
I also found this thread (unrelated to ImageMagick) which deals with inverted colours in a JPEG. I only gave it a cursory look but it seems that an APP marker is being ignored/misinterpreted which results in inverted colours.

My best guess at this point is that something similar might be happening with ImageMagick but I am not sure. Again, it is probably best to contact the developers about this issue. I am not going to spent any more time on this case.
 
Old 07-11-2019, 03:42 PM   #17
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,963

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
I took this up on ImageMagick's forum. The excellent snibgo pointed me to the nub: it's a CMY colorspace and ImageMagick renders it as though it expected a CMY display.
Code:
 -colorspace sRGB
converts the colorspace. If I use that command with convert, fbi can display the target image; it would seem fbi can't do the conversion. -negate yields an image that ImageMagick displays correctly but fbi still can't display the image. I'm disappointed they can't handle this automatically. I should submit some code to do it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: GPL Medicine: What Medsphere Will Try Next LXer Syndicated Linux News 0 02-17-2007 06:01 AM
LXer: Vista Gets Taste of Linux Medicine LXer Syndicated Linux News 0 02-14-2007 03:16 PM
LXer: Industry, Academia, Medicine And Government Leaders Team Up To Tackle Personal Health Records LXer Syndicated Linux News 0 07-27-2006 07:54 AM
LXer: Open source and open medicine take centre stage at UN research symposium LXer Syndicated Linux News 0 04-13-2006 06:54 AM
Medicine Software fisayo Linux - Software 3 01-02-2006 05:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration