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 Jul 8 03:07:35 2006  
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 Sep 17 22:11:10 2006, comment #6:

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

Fred Kiefer <FredKiefer>
Project Member
Sun Sep 17 22:09:50 2006, 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 Sep 17 17:24:31 2006, comment #4:

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

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

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


Charles Philip Chan <cpchan>
Sat Sep 16 08:29:25 2006, 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 Philip Chan <cpchan>
Sun Sep 10 16:14:11 2006, comment #1:

Could you give an exemple of picture ?

Christophe JALADY <thecat>
Sat Jul 8 03:07:35 2006, original submission:

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



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 Sep 17 22:11:10 2006FredKieferCategoryGui/AppKit=>Backend
Sat Sep 16 08:36:48 2006cpchanAttached File-=>Added test.png, #10769

Back to the top

Powered by Savane 3.1-cleanup1