You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by bu...@apache.org on 2006/07/24 09:38:56 UTC
DO NOT REPLY [Bug 40098] New: - Incorrect scaling with -dpi
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=40098>.
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=40098
Summary: Incorrect scaling with -dpi
Product: Batik
Version: 2.0
Platform: All
OS/Version: Windows XP
Status: NEW
Severity: major
Priority: P2
Component: SVG Rasterizer
AssignedTo: batik-dev@xmlgraphics.apache.org
ReportedBy: silverbanana@gmx.de
Using the dpi option with batik rasterizer does not scale some things correctly,
especcialy filter settings. E.g. the blur filter will lead to different visual
results if used with different dpi settings while only a scaling should take place.
--
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.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org
DO NOT REPLY [Bug 40098] - Incorrect scaling with -dpi
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=40098>.
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=40098
deweese@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From deweese@apache.org 2006-07-24 11:36 -------
The '-dpi' option adjust the mapping from 'real world' units
to user space units.
So when dpi==100, 1 inch is treated as 100 user space units.
When dpi==200, 1 inch is treated as 200 user space units.
Most of the elements of your document use 'real world' units
however your filter specification (out of nessesity) uses
'user space' units for the stdDev of the gaussian blur.
This means that your filter doesn't scale with the rest
of your document.
If you want to define a 'scalable' document you need
to provide a viewBox that will be fit to the given
width and height (then just give the desired
width/height on the command line).
--
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.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org
DO NOT REPLY [Bug 40098] - Incorrect scaling with -dpi
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=40098>.
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=40098
------- Additional Comments From silverbanana@gmx.de 2006-07-24 07:41 -------
Created an attachment (id=18631)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=18631&action=view)
An image which does not scale correctly when converted with dpi option
convert this image with:
java -jar batik-rasterizer.jar test.svg -m image/jpeg -d dpi200.jpg -q 0.99
-dpi 200
and with:
java -jar batik-rasterizer.jar test.svg -m image/jpeg -d dpi100.jpg -q 0.99
-dpi 100
to see the effect.
--
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.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org