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/09/15 13:34:35 UTC

DO NOT REPLY [Bug 40519] New: - While generating output as image/tiff it is only possible to use PackBits compression.

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=40519>.
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=40519

           Summary: While generating output as image/tiff it is only
                    possible to use PackBits compression.
           Product: Fop
           Version: 1.0dev
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: images
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: ohernandez@notariado.org


While generating output as image/tiff it is only possible to use PackBits
compression. I would like to use TIFF CCITT T.4 compression for output images.

-- 
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 40519] - While generating output as image/tiff it is only possible to use PackBits compression.

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=40519>.
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=40519


jeremias@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|ohernandez@notariado.org    |fop-
                   |                            |dev@xmlgraphics.apache.org
             Status|ASSIGNED                    |NEW




-- 
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 40519] - While generating output as image/tiff it is only possible to use PackBits compression.

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=40519>.
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=40519


ohernandez@notariado.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|fop-                        |ohernandez@notariado.org
                   |dev@xmlgraphics.apache.org  |
             Status|NEW                         |ASSIGNED




------- Additional Comments From ohernandez@notariado.org  2006-09-15 11:40 -------
Created an attachment (id=18866)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=18866&action=view)
Java2DRenderer.getPageImage(): Extract code into a protected method.

Java2DRenderer.getPageImage(): Extract code into a protected method to
instantiate the BufferedImage that we paint on. Right now, it always
allocates an 24 bit RGB image with an 8-bit alpha channel.

In next patch: Override the new protected method described above to create the
Buffered image depending on the configuration.

-- 
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 40519] - While generating output as image/tiff it is only possible to use PackBits compression.

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=40519>.
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=40519





------- Additional Comments From ohernandez@notariado.org  2006-09-19 16:09 -------
I also have tryed to put jai_core.jar, jai_imageio.jar and jai_codec.jar on the
classpath of the aplication (not in the jdk) and the patch went fine.

Today I finish my job in notariado.org so I wont be available on
ohernandez@notariado.org. For further contact please e-mail me in
tramuntanal@gmail.com.

Special thanks to Jeremias, don't hesitate to contact me for any 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 40519] - While generating output as image/tiff it is only possible to use PackBits compression.

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=40519>.
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=40519


jeremias@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED




------- Additional Comments From jeremias@apache.org  2006-09-18 08:56 -------
Patch applied with modifications. Thanks Oliver!
http://svn.apache.org/viewvc?view=rev&rev=447325

You'll see from the change that I've solved the multi-page problem with the
ImageWriter. Please test and send feedback if it works for you, too. I'll write
some docs about it in the meantime.

-- 
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 40519] - While generating output as image/tiff it is only possible to use PackBits compression.

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=40519>.
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=40519





------- Additional Comments From ohernandez@notariado.org  2006-09-18 13:25 -------
(In reply to comment #7)

You're wellcome!
I've just tried your patch and it works ok for me after some tests.
Thanks for your improvements, your help and for dedicating your time to this
issue. I'll keep on testing tomorrow and I'll give more feedback.


-- 
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 40519] - While generating output as image/tiff it is only possible to use PackBits compression.

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=40519>.
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=40519


jeremias@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From jeremias@apache.org  2006-09-20 06:52 -------
Thanks for the feedback. I think it was an important addition to FOP.

-- 
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 40519] - While generating output as image/tiff it is only possible to use PackBits compression.

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=40519>.
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=40519





------- Additional Comments From ohernandez@notariado.org  2006-09-18 12:14 -------
(In reply to comment #4)
> Against what branch of FOP did you do the patch? I can't apply it and it's
> really weird because your patch tries to change the license header which has
> been done long ago. It's important to do an "svn up" before creating the patch.
> And you should make sure you're producing the patch from FOP Trunk.
> 
> I'll try to port your changes manually from your patch. But if you can supply
> updated patches against the latest FOP Trunk that would help.

Sorry, but I had a lot of problems with a proxy and couldn't do an update. I did
a visual comparation to the source from web and it seemed to me that I had the
same source, but it was old. sorry, today I've solved the problem but i see you
did the update manually. Thanks!

-- 
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 40519] - While generating output as image/tiff it is only possible to use PackBits compression.

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=40519>.
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=40519





------- Additional Comments From ohernandez@notariado.org  2006-09-19 11:45 -------
(In reply to comment #9)

  Today I've been trying the patch with CCITT T.4, CCITT T.6 and PackBits. All
has worked fine. I ran everything in a Windows XP PC with jdk 1.5.0_03 and jai
tools installed on the jdk.

  There's a little quality difference between CCITT T.4 and PackBits that I
think it's due to the inherent compression of each type, or maybe some
antialiasing on PackBits. Anyway the difference of quality is widely compensed
by the difference of weight 2592kB on PackBits vs 240kB on CCITT T.4 for the
same rendered MTIFF.
  Apparently there's no significant difference between CCITT T.4 and CCITT T.6.

-- 
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.