bugGNUstep - Bugs: bug #17059, NSImage and bits per channel > 8

 
 

You are not allowed to post comments on this tracker with your current authentification level.

bug #17059: NSImage and bits per channel > 8

Submitted by:  Charles Philip Chan <cpchan>
Submitted on:  Sat 08 Jul 2006 03:07:35 AM UTC  
 
Category: BackendSeverity: 3 - Normal
Item Group: BugStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

(Jump to the original submission Jump to the original submission)

Sun 17 Sep 2006 10:11:10 PM UTC, comment #6:

Changed category to backend, as this only fails on xlib.

Fred Kiefer <FredKiefer>
Project Member
Sun 17 Sep 2006 10:09:50 PM UTC, comment #5:

For the xlib backend this is a well known limitation. There was some mail exchange a while ago on it. As far as I remember the solutution was as simple as to extend the switch statement on bits_per_sample in _bitmap_combine_alpha to handle 16 bits correctly. The code below this was never planed to handle this case, but looks like it is capable of doing so.
You should give this a try and come up with a nice patch :-)

Fred Kiefer <FredKiefer>
Project Member
Sun 17 Sep 2006 05:24:31 PM UTC, comment #4:

Your test.png file exemple work for me.
I have the 'art' backends ... maybe an issue ?

Christophe JALADY <thecat>
Sat 16 Sep 2006 08:36:48 AM UTC, comment #3:

Sorry the file size was too larfe. Here is a scaled down image.

Charles

Charles Philip Chan <cpchan>
Sat 16 Sep 2006 08:29:25 AM UTC, comment #2:

> Could you give an exemple of picture ?


Sorry for the delay- I have been away. I have just tested it with the latest GUI and jpeg's works fine. However, png with depth greater than 8 doesn't not show at all. Attached is an example created with "import" from ImageMagick (if I use the -depth 8 option the image will show).

Charles

Charles Philip Chan <cpchan>
Sun 10 Sep 2006 04:14:11 PM UTC, comment #1:

Could you give an exemple of picture ?

Christophe JALADY <thecat>
Sat 08 Jul 2006 03:07:35 AM UTC, original submission:

NSImage doesn't seem to support images with bits per channel greater than 8.

Thanks.

Charles

Charles Philip Chan <cpchan>

 

Attached Files
file #10769:  test.png added by cpchan (188kB - image/png - PNG test file)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 17 Sep 2006 10:11:10 PM UTCFredKieferCategoryGui/AppKit=>Backend
Sat 16 Sep 2006 08:36:48 AM UTCcpchanAttached File-=>Added test.png, #10769

Back to the top


Powered by Savane 3.1-cleanup