You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by David Green <dg...@gmail.com> on 2009/05/04 18:09:02 UTC

rendered image quality when rendering to PDF

I'm currently attempting to integrate
FOP<http://greensopinion.blogspot.com/2009/04/mylyn-wikitext-produces-pdf.html>with
Mylyn
WikiText <http://www.eclipse.org/mylyn> and I'm having troubles with the
quality of images.  Images appear to be rendered to their original size,
however they are blurry (there is a loss of quality).  I've experienced the
same problem when using both PNG and JPG images.  Any help in resolving this
issue would be greatly appreciated.
I'm using FOP 0.95.  My XSL-FO source looks something like this:

<external-graphic
src="url(file:/Users/dgreen/Documents/mine/workspace-mylyn.wikitext/org.eclipse.mylyn.wikitext.help.ui/help/images/editor-tabs.png)"
width="100%" content-height="100%" content-width="scale-to-fit"
scaling="uniform"/>

this also has the same issue:

<external-graphic
src="url(file:/Users/dgreen/Documents/mine/workspace-mylyn.wikitext/org.eclipse.mylyn.wikitext.help.ui/help/images/editor-tabs.png)"/>


My apologies if this topic has already been covered -- I wasn't able to find
anything in the mail archives or in the issue tracker.  Any help is greatly
appreciated.

Regards,

David

Re: rendered image quality when rendering to PDF

Posted by David Green <dg...@gmail.com>.
Jeff,

Thanks for the suggestion.  I do love SVG, however in this case it  
won't help me -- I'm building a framework and toolkit for others to  
use, and they're likely to have PNG, GIF, JPG, etc.

Regards,

David

On 4-May-09, at 9:22 AM, jgriffith@cssi.org wrote:

> I gave up and switched to SVG. That resolved the
> problem completely. The JPG issue seems to be a
> rasterization problem. The original graphic was
> produced at one resolution, and FOP/PDF seems to want
> to scan it a second time at a different resolution.
> I wasn't able to find a way to get the two resolutions
> to match and also avoid changes in aspect ratio.
> In the end, I just gave up (too many transformations)
> and switched to SVG. That image gets created by the
> PDF file, so there's not loss or noise introduced
> in the final image.
>
> Jeff Griffith
> CSSI
>
>
> Quoting David Green <dg...@gmail.com>:
>
>> I'm currently attempting to integrate
>> FOP<http://greensopinion.blogspot.com/2009/04/mylyn-wikitext-produces-pdf.html 
>> >with
>> Mylyn
>> WikiText <http://www.eclipse.org/mylyn> and I'm having troubles  
>> with the
>> quality of images.  Images appear to be rendered to their original  
>> size,
>> however they are blurry (there is a loss of quality).  I've  
>> experienced the
>> same problem when using both PNG and JPG images.  Any help in  
>> resolving this
>> issue would be greatly appreciated.
>> I'm using FOP 0.95.  My XSL-FO source looks something like this:
>>
>> <external-graphic
>> src="url(file:/Users/dgreen/Documents/mine/workspace-mylyn.wikitext/ 
>> org.eclipse.mylyn.wikitext.help.ui/help/images/editor-tabs.png)"
>> width="100%" content-height="100%" content-width="scale-to-fit"
>> scaling="uniform"/>
>>
>> this also has the same issue:
>>
>> <external-graphic
>> src="url(file:/Users/dgreen/Documents/mine/workspace-mylyn.wikitext/ 
>> org.eclipse.mylyn.wikitext.help.ui/help/images/editor-tabs.png)"/>
>>
>>
>> My apologies if this topic has already been covered -- I wasn't  
>> able to find
>> anything in the mail archives or in the issue tracker.  Any help is  
>> greatly
>> appreciated.
>>
>> Regards,
>>
>> David
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>


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


Re: rendered image quality when rendering to PDF

Posted by jg...@cssi.org.
I gave up and switched to SVG. That resolved the
problem completely. The JPG issue seems to be a
rasterization problem. The original graphic was
produced at one resolution, and FOP/PDF seems to want
to scan it a second time at a different resolution.
I wasn't able to find a way to get the two resolutions
to match and also avoid changes in aspect ratio.
In the end, I just gave up (too many transformations)
and switched to SVG. That image gets created by the
PDF file, so there's not loss or noise introduced
in the final image.

Jeff Griffith
CSSI


Quoting David Green <dg...@gmail.com>:

> I'm currently attempting to integrate
> FOP<http://greensopinion.blogspot.com/2009/04/mylyn-wikitext-produces-pdf.html>with
> Mylyn
> WikiText <http://www.eclipse.org/mylyn> and I'm having troubles with the
> quality of images.  Images appear to be rendered to their original size,
> however they are blurry (there is a loss of quality).  I've experienced the
> same problem when using both PNG and JPG images.  Any help in resolving this
> issue would be greatly appreciated.
> I'm using FOP 0.95.  My XSL-FO source looks something like this:
>
> <external-graphic
> src="url(file:/Users/dgreen/Documents/mine/workspace-mylyn.wikitext/org.eclipse.mylyn.wikitext.help.ui/help/images/editor-tabs.png)"
> width="100%" content-height="100%" content-width="scale-to-fit"
> scaling="uniform"/>
>
> this also has the same issue:
>
> <external-graphic
> src="url(file:/Users/dgreen/Documents/mine/workspace-mylyn.wikitext/org.eclipse.mylyn.wikitext.help.ui/help/images/editor-tabs.png)"/>
>
>
> My apologies if this topic has already been covered -- I wasn't able to find
> anything in the mail archives or in the issue tracker.  Any help is greatly
> appreciated.
>
> Regards,
>
> David
>



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


Re: rendered image quality when rendering to PDF

Posted by David Green <dg...@gmail.com>.
I've created  Bug
47157<https://issues.apache.org/bugzilla/show_bug.cgi?id=47157> to
track this issue.

On Mon, May 4, 2009 at 9:09 AM, David Green <dg...@gmail.com> wrote:

> I'm currently attempting to integrate FOP<http://greensopinion.blogspot.com/2009/04/mylyn-wikitext-produces-pdf.html>with Mylyn
> WikiText <http://www.eclipse.org/mylyn> and I'm having troubles with the
> quality of images.  Images appear to be rendered to their original size,
> however they are blurry (there is a loss of quality).  I've experienced the
> same problem when using both PNG and JPG images.  Any help in resolving this
> issue would be greatly appreciated.
> I'm using FOP 0.95.  My XSL-FO source looks something like this:
>
> <external-graphic
> src="url(file:/Users/dgreen/Documents/mine/workspace-mylyn.wikitext/org.eclipse.mylyn.wikitext.help.ui/help/images/editor-tabs.png)"
> width="100%" content-height="100%" content-width="scale-to-fit"
> scaling="uniform"/>
>
> this also has the same issue:
>
> <external-graphic
> src="url(file:/Users/dgreen/Documents/mine/workspace-mylyn.wikitext/org.eclipse.mylyn.wikitext.help.ui/help/images/editor-tabs.png)"/>
>
>
> My apologies if this topic has already been covered -- I wasn't able to
> find anything in the mail archives or in the issue tracker.  Any help is
> greatly appreciated.
>
> Regards,
>
> David
>