[Bug 64998] New: emf convert png too slow

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 64998] New: emf convert png too slow

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64998

            Bug ID: 64998
           Summary: emf convert png too slow
           Product: POI
           Version: 4.1.2-FINAL
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLF
          Assignee: [hidden email]
          Reporter: [hidden email]
  Target Milestone: ---

Created attachment 37622
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37622&action=edit
image1.emf

convert the attached emf to png is too slow(~20s).
on my machine, other wmf/emf conversion is quite fast(normally <1s).

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 64998] emf convert png too slow

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64998

--- Comment #1 from liming-coder <[hidden email]> ---
also i feel the lastest version is a bit slowdown regarding emf/wmf conversion,
though there is no acutual benchmark test.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 64998] emf convert png too slow

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64998

--- Comment #2 from liming-coder <[hidden email]> ---
i tried https://www.photopea.com/ by dragging the image1.emf into it. it
display lines and shapes quite fast, and then it start loading some fonts,which
is a bit slow(maybe it need to load font from server).
with poi,maybe it's also related to font loading?

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 64998] emf convert png too slow

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64998

--- Comment #3 from liming-coder <[hidden email]> ---
i tried https://www.photopea.com/ by dragging the image1.emf into it. it
display lines and shapes quite fast, and then it start loading some fonts,which
is a bit slow(maybe it need to load font from server).
with poi,maybe it's also related to font loading?

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 64998] emf convert png too slow

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64998

--- Comment #4 from liming-coder <[hidden email]> ---
i also tried https://www.photopea.com/ by dragging image1.emf into it. it
displays lines and shapes quite fast, then it start loading somes fallback
fonts, which is a bit slow(i guess these fonts need to load from server).

with poi, maybe it's the same font loading problem??

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 64998] emf convert png too slow

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64998

--- Comment #5 from liming-coder <[hidden email]> ---
shit, i posted it three times. sorry. maybe slow network...

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 64998] emf convert png too slow

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64998

--- Comment #6 from Andreas Beeker <[hidden email]> ---
Sometimes adding -Dsun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine
to the JVM args helps - see the render page for more details.

In this case it didn't make any difference.
I've tested it with Java 14 (2.5sec) and Java 8 (9.2sec) on my machine.

I'll try a bit of profiling now.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 64998] emf convert png too slow

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64998

--- Comment #7 from liming-coder <[hidden email]> ---
can you post the render page link please.

thanks.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 64998] emf convert png too slow

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64998

--- Comment #8 from Andreas Beeker <[hidden email]> ---
http://poi.apache.org/components/slideshow/ppt-wmf-emf-renderer.html

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 64998] emf convert png too slow

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64998

--- Comment #9 from Andreas Beeker <[hidden email]> ---
I forgot to mentioned, that I've profiled the slideshow and most of the time is
spent in Graphics2D.draw(), but doesn't mean POI isn't to be blamed of the bad
performance.

My guess is, the culprit are the dotted lines - those can be really
time-consuming when the wrong scaling and other parameters are given. Parts of
the image are anyway distorted, but I haven't found out why yet ...

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]