You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by bu...@apache.org on 2006/03/08 12:10:27 UTC

DO NOT REPLY [Bug 38891] New: - Massive WMFTranscoder problems

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38891>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38891

           Summary: Massive WMFTranscoder problems
           Product: Batik
           Version: 2.0
          Platform: All
        OS/Version: other
            Status: NEW
          Severity: major
          Priority: P2
         Component: (RFE) Request For Extension
        AssignedTo: batik-dev@xmlgraphics.apache.org
        ReportedBy: C.Ullenboom@java-tutor.com


While transforming a wmf file -- which is exported from a MS ppt -- squiggle 
and Adobe isn't able to load and render is properly. The loading can be fixed 
easy, because both readers do not accept the encoding Cp1252. After deleting 
encoding="Cp1252" in the svg file Adobe and squiggle will show �something� but 
broken:

- The text has strange positions
- No font information is kept
- No graphics are embedded or linked
- No transparency of elements

I placed the examples here:

http://www.java-tutor.com/docs/p.ppt
http://www.java-tutor.com/docs/p.wmf
http://www.java-tutor.com/docs/p.svg

I'm using WMFTranscoder form 1.6. I tried version batik-src-06-03-08.zip too, 
but got a

Processing : p.wmf...Exception in thread "main" java.lang.NullPointerException
	at org.apache.batik.svggen.ImageHandlerBase64Encoder.encodeImage
(ImageHandlerBase64Encoder.java:156)
	at org.apache.batik.svggen.ImageHandlerBase64Encoder.handleHREF
(ImageHandlerBase64Encoder.java:132)
	at org.apache.batik.svggen.DefaultImageHandler.handleImage
(DefaultImageHandler.java:95)
	at org.apache.batik.svggen.SimpleImageHandler.handleImage
(SimpleImageHandler.java:125)
	at org.apache.batik.svggen.SVGTexturePaint.toSVG
(SVGTexturePaint.java:135)
	at org.apache.batik.svggen.SVGPaint.toSVG(SVGPaint.java:133)
	at org.apache.batik.svggen.SVGPaint.toSVG(SVGPaint.java:115)
	at org.apache.batik.svggen.SVGGraphicContextConverter.toSVG
(SVGGraphicContextConverter.java:100)
	at org.apache.batik.svggen.DOMGroupManager.addElement
(DOMGroupManager.java:168)
	at org.apache.batik.svggen.SVGGraphics2D.fill(SVGGraphics2D.java:1395)
	at org.apache.batik.transcoder.wmf.tosvg.WMFPainter.paint
(WMFPainter.java:1070)
	at org.apache.batik.transcoder.wmf.tosvg.WMFPainter.paint
(WMFPainter.java:448)
	at org.apache.batik.transcoder.wmf.tosvg.WMFTranscoder.transcode
(WMFTranscoder.java:200)
	at org.apache.batik.transcoder.wmf.tosvg.WMFTranscoder.main
(WMFTranscoder.java:277)
	at T.main(T.java:10)

 Christian

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


DO NOT REPLY [Bug 38891] - Massive WMFTranscoder problems

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38891>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38891


cam@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


DO NOT REPLY [Bug 38891] - Massive WMFTranscoder problems

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38891>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38891





------- Additional Comments From jeremias@apache.org  2006-04-01 13:23 -------
(In reply to comment #4)
> (In reply to comment #3)
> > >    It looked to me like an issue with the new ImageWriter stuff.
> 
> > You are right, The transcoding of the WMF goes on without any problem with an
> > earlier SVN version (earlier than the ImageWriter modifications, but later 
> > than the WMF transcoder modifications).
> 
>    Interesting this worked just fine for me.  I was basing my statement
> on the stack trace.  Does the code fail for you as well then?  How are
> you running the transcoder?  Do you include the 'resources' directory
> on the class path?

I guess it's the ImageWriterRegistry reporting null because it can't find any
ImageWriter implementation (just as your questions suggests). Should we throw an
exception if no ImageWriter implementation can be reported? I think that would
make sense.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


DO NOT REPLY [Bug 38891] - Massive WMFTranscoder problems

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38891>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38891





------- Additional Comments From deweese@apache.org  2006-04-18 00:02 -------
I wonder if Cameron's recent fix for data url images when running
from jars will fix this problem as well.  Can you retest with latest SVN?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


DO NOT REPLY [Bug 38891] - Massive WMFTranscoder problems

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38891>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38891





------- Additional Comments From herve.girod@club-internet.fr  2006-03-09 23:38 -------
> 
>    It looked to me like an issue with the new ImageWriter stuff.
> 

You are right, The transcoding of the WMF goes on without any problem with an
earlier SVN version (earlier than the ImageWriter modifications, but later than
the WMF transcoder modifications). The only (known) problem was that
transparency was not handled.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


DO NOT REPLY [Bug 38891] - Massive WMFTranscoder problems

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38891>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38891





------- Additional Comments From deweese@apache.org  2006-03-09 11:50 -------
(In reply to comment #1)

> I will try to look at your examples this week-end. May be you could delete the
> cloud from the image and try again, if the result is OK (apart from the
> transparency), this is a "texture loading" problem in the WMF transcoding code.

   It looked to me like an issue with the new ImageWriter stuff.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


DO NOT REPLY [Bug 38891] - Massive WMFTranscoder problems

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38891>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38891





------- Additional Comments From deweese@apache.org  2006-03-12 01:48 -------
(In reply to comment #3)
> >    It looked to me like an issue with the new ImageWriter stuff.

> You are right, The transcoding of the WMF goes on without any problem with an
> earlier SVN version (earlier than the ImageWriter modifications, but later 
> than the WMF transcoder modifications).

   Interesting this worked just fine for me.  I was basing my statement
on the stack trace.  Does the code fail for you as well then?  How are
you running the transcoder?  Do you include the 'resources' directory
on the class path?


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


DO NOT REPLY [Bug 38891] - Massive WMFTranscoder problems

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38891>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38891





------- Additional Comments From herve.girod@club-internet.fr  2006-03-08 20:42 -------
Behavior for Batik 1.6 is expected (Cp1252 stuff and problem with the resulting
image after correcting the encoding). A lot of enhancements of the WMF
transcoding process where introduced since in SVN repository.
As I submitted a huge patch for these enhancements, I consider my duty to look
at the SVN snapshot behavior...
It seems to be a problem with the texture loading from the WMF file, may be with
the cloud. I don't think that the transparency is corrected in SVN, too.
I will try to look at your examples this week-end. May be you could delete the
cloud from the image and try again, if the result is OK (apart from the
transparency), this is a "texture loading" problem in the WMF transcoding code.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org