xmlgraphics-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48797] [PATCH] Optimize EPS and PS file size
Date Thu, 18 Mar 2010 16:45:14 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48797

--- Comment #9 from Calixte Denizet <calixte.denizet@ac-rennes.fr> 2010-03-18 16:45:14
UTC ---
(In reply to comment #8)
> Calixte, do you want to send a patch? Maybe a clever refactoring of
> PDFGraphics2D could actually improve things in a better way. Currently, the
> clipping shape is established for every shape operation which is why this
> probably has such a big effect on file size. The "disableClipping" is just a
> work-around but is not really fixing the problem, it would seem.
> 

I'm not sure that "disableClipping" is just a workaround... that depends of
what you draw. In my case, the clipping shape is determinated as the bounding
box of my datas, so I know that what I draw is always included in the clipping
shape, so no need to check and to consume resources !

I agree with you when you don't really know what you draw : a solution could be
to make the clipping on the Java side and to send the "clipped" object to the
PS writer. If you want I can work on this solution and send you a patch, it
could be an interesting feature... I'll look at PDFGraphics2D...

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

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


Mime
View raw message