You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2006/04/05 13:04:59 UTC
DO NOT REPLY [Bug 39215] New: - [PATCH] To render GIF external images in RTF output via PNG
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=39215>.
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=39215
Summary: [PATCH] To render GIF external images in RTF output via
PNG
Product: Fop
Version: 1.0dev
Platform: Macintosh
OS/Version: Mac OS X 10.3
Status: NEW
Severity: normal
Priority: P2
Component: rtf
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: ieb@tfd.co.uk
A patch to RtfExternalImage to convert GIF to PNG using javax.image.ImageIO
--
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.
DO NOT REPLY [Bug 39215] - [PATCH] To render GIF external images in RTF output via PNG
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=39215>.
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=39215
------- Additional Comments From jeremias@apache.org 2006-04-05 14:19 -------
(In reply to comment #3)
> Is it Ok to use JAI to build the BufferedImage ?
Hmm, well, it's practically the same problem as with ImageIO. You create a
direct dependency which forces people to have JAI installed. Using the image
adapters decouples the image loading from the underlying image library/codec. It
allows one to use JAI, the other to use ImageIO to load the image. Sorry that
it's so complicated but dependency handling is always a touchy topic.
--
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.
DO NOT REPLY [Bug 39215] - [PATCH] To render GIF external images in RTF output via PNG
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=39215>.
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=39215
------- Additional Comments From ieb@tfd.co.uk 2006-04-05 14:08 -------
Is it Ok to use JAI to build the BufferedImage ?
--
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.
DO NOT REPLY [Bug 39215] - [PATCH] To render GIF external images in RTF output via PNG
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=39215>.
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=39215
------- Additional Comments From ieb@tfd.co.uk 2006-04-05 12:06 -------
Created an attachment (id=18026)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=18026&action=view)
Patch to RtfExternalImage
--
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.
DO NOT REPLY [Bug 39215] - [PATCH] To render GIF external images in RTF output via PNG
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=39215>.
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=39215
jeremias@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |PatchAvailable
------- Additional Comments From jeremias@apache.org 2006-04-05 13:07 -------
Thanks for the patch, Ian. However, there's a fundamental problem with it: It
generates a dependency on JDK 1.4 or later due to the use of ImageIO. FOP must,
for the time being, remain compatible with JDK 1.3. FOP's image package contains
adapters to several image libraries which can read GIF images. The problem is
that you cannot easily use them for this particular use case because they
currently create a decoded bitmap image as a byte array. It would have to be
converted into a BufferedImage and then written to a PNG through the ImageWriter
interface provided by XML Graphics Commons
(http://svn.apache.org/viewcvs.cgi/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/writer/).
I've started documenting requirements for an improved image adapter package:
http://wiki.apache.org/xmlgraphics-fop/ImageSupport. But that's probably for
later since this will take some time to implement properly.
--
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.