The problem was not in the JDK ( tried both 1.3 & 1.4.2). I just had to
add the parameter <-scriptSecurityOff > to the script to make it run.
But it seems like the parameters to this script has no meaning (i.e I
am using them the wrong way ) :
My call to the script looks like :

-scriptSecurityOff -w 1024 -h 1024 -bg 255.255.255.255 -dpi 1 -q 0.01 -d
. -m image/tiff BPOBeanTemplate.svg

i.e
1.The picture should be just 1024*1024 pixels
2.background color is white
3.The quality is VERY low ( -q = 0.01, where 0 < q < 1 and default is 0.99)
4.Resolution ( -dpi = 1 , default is 96) is very low.

And still the size of the rendered TIFF is 4MB ?? Are there ANY parameters
to be used to compress the image if using this batik.rasterizer.jar ?

Is the only way to shrink the imagesize to change width and height of the
output image ?

Regards
/Gergely

-----Original Message-----
From: Thomas DeWeese [mailto:[EMAIL PROTECTED]
Sent: Friday, December 12, 2003 7:12 PM
To: Batik Users
Subject: Re: AccessControlException when using batik-rasterizer


Hi Gergely,

Gergely Hajdu wrote:

> http://xml.apache.org/batik/svgrasterizer.html
>
> which looks like :
> java -jar batik-rasterizer.jar -d myDir -m image/jpeg samples/*.svg
> that generates JPEG images for all the SVG files found in the samples
> directory.

> But I got the following exception :
> java.security.AccessControlException: access denied
> (java.util.PropertyPermission java.security.policy write)
> at

     I've never seen this problem before.  It seems like something is
not granting the Application 'full' permissions.  Do you know if
someone has adjusted the default permissions for the JDK you are using?

>
java.security.AccessControlContext.checkPermission(AccessControlContext.java
> :267)
> at
java.security.AccessController.checkPermission(AccessController.java:394)
> at java.lang.SecurityManager.checkPermission(SecurityManager.java:540)
> at java.lang.System.setProperty(System.java:636)
> at
>
org.apache.batik.util.ApplicationSecurityEnforcer.installSecurityManager(Unk
> nown Source)
> at
org.apache.batik.util.ApplicationSecurityEnforcer.enforceSecurity(Unknown
> Source)
> at org.apache.batik.apps.rasterizer.Main.execute(Unknown Source)
> at org.apache.batik.apps.rasterizer.Main.main(Unknown Source)
> Exception in thread "main"
> Any ideas how to correct this ?
> Thanks in advance.
> /Gergely
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to