Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.1.8
-
None
-
None
-
Operating System: All
Platform: All
-
34784
-
Patch available
Description
TranscoderFactory configures itself in the constructor, where the available
Transcoders are added through Java code. This patch avalonizes
TranscoderFactory, so it can be configured in cocoon.roles and cocoon.xconf.
Basically you can do
<transcoder-factory>
<transcoder class="org.apache.batik.transcoder.image.JPEGTranscoder"
mime-type="image/jpeg"/>
<transcoder class="org.apache.batik.transcoder.image.JPEGTranscoder"
mime-type="image/jpg"/>
<transcoder class="org.apache.batik.transcoder.image.PNGTranscoder"
mime-type="image/png"/>
<transcoder class="org.apache.batik.transcoder.image.TIFFTranscoder"
mime-type="image/tiff"/>
</transcoder-factory>
in cocoon.xconf
Transcoders are added through Java code. This patch avalonizes
TranscoderFactory, so it can be configured in cocoon.roles and cocoon.xconf.
Basically you can do
<transcoder-factory>
<transcoder class="org.apache.batik.transcoder.image.JPEGTranscoder"
mime-type="image/jpeg"/>
<transcoder class="org.apache.batik.transcoder.image.JPEGTranscoder"
mime-type="image/jpg"/>
<transcoder class="org.apache.batik.transcoder.image.PNGTranscoder"
mime-type="image/png"/>
<transcoder class="org.apache.batik.transcoder.image.TIFFTranscoder"
mime-type="image/tiff"/>
</transcoder-factory>
in cocoon.xconf