Bug 27248 - [PATCH] Adding support for rendering-color-space property
Summary: [PATCH] Adding support for rendering-color-space property
Status: NEW
Alias: None
Product: Batik - Now in Jira
Classification: Unclassified
Component: (RFE) Request For Extension (show other bugs)
Version: 1.5
Hardware: All All
: P3 normal
Target Milestone: ---
Assignee: Batik Developer's Mailing list
URL:
Keywords: NeedsReleaseNote, PatchAvailable
Depends on:
Blocks: 26816
  Show dependency tree
 
Reported: 2004-02-26 11:40 UTC by Thomas Deweese
Modified: 2009-03-30 01:26 UTC (History)
0 users



Attachments
A Patch that adds support for rendering-color-space (269.01 KB, patch)
2004-02-26 11:41 UTC, Thomas Deweese
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Deweese 2004-02-26 11:40:42 UTC
Batik should have support for the rendering-color-space property.
Comment 1 Thomas Deweese 2004-02-26 11:41:46 UTC
Created attachment 10567 [details]
A Patch that adds support for rendering-color-space
Comment 2 Thomas Deweese 2004-02-26 11:47:12 UTC
The patch attached to this bug report adds support for 
the SVG 1.2 property 'rendering-color-space'.  This property
allows subtree's of the document to be render/composed in
colorspaces other than sRGB.

The current patch has a few issues.
1) It requires JDK 1.4 to function properly (it also requires
   1.4 to compile, but the compile part should be easy to fix).
2) It involves lying to Java2D about almost everything.  The
   patch tells Java2D it is working in sRGB when in fact it is
   working in what ever colorspace the user requested.  This seems
   to be needed for two reasons.  First, if you don't do this it
   appears to convert everything to 'sRGB' composite and covert back!
   Second (which is probably related to first) performance.
   As it turns out lying in this manner isn't too hard so the patch 
   works :)
Comment 3 Thomas Deweese 2005-03-22 12:15:48 UTC
Reassigning all open bugs to the development list.
Sorry for the mass mailing.
Comment 4 Helder Magalhães 2009-03-30 01:26:43 UTC
(In reply to comment #2)
> 1) It requires JDK 1.4 to function properly (it also requires
>    1.4 to compile, but the compile part should be easy to fix).

Update: Java version 1.4 is now the minimum required so this may worth a retry...? :-)

I haven't tested if the patch still applies cleanly, though: given its date, it will likely need some modification(s).