Gaussian Blur photoshop effect parameters


hello,

 

im working on svg format exporter, , need export of ai effects svg filters.

i encountered problem effect -> (photoshopeffects) blur -> gaussian blur effect.

when getting effect parameters there binary entry in dictionary , not documented naywhere in docs type of data that.

 

when serializing document gaussianblur effect info fxg foramt, here can find in xml :

 

 

<ai:liveeffect index="0" major="1" minor="0" name="psadapter_plugin_gblr">

    <ai:dict data="b go 1 prevdres 300 datasize 24 ">

        <ai:entry name="data" value="aaaaavjkcyaaaaaazg91yj/xmzmgaaaa" valuetype="n"/>

    </ai:dict>

</ai:liveeffect>

 

attribute value holds binary data describing gaussianblur effect radius set 1,1 value.

can tell how decode binary data dig out radius value it?

 

thanks in advance,

rafał

ok, found problem leave solution, maybe need this.

 

so value attribute value="aaaaavjkcyaaaaaazg91yj/xmzmgaaaa" base64 encoded.

 

when decoded presents sth this, dots "." zeros (actually below presented data represents gaussian blur effect data radius == 2, not 1,1 in previous post):

 

....rds ....doub@.......

 

this same data in hex

 

00 00 00 01 52 64 73 20 00 00 00 00 64 6f 75 62 40 00 00 00 00 00 00 00

 

and last 8 bytes represents double number in big endian:

 

@....... == 40 00 00 00 00 00 00 00

 

im working on windows, after switching little endian get

 

.......@  or 00 00 00 00 00 00 00 40

 

which our radius in double format.

to more precise initial number in binary data typeieee64bitfloatingpoint, , can googled in python/apple's header files, here instance http://svn.python.org/projects/python/trunk/lib/plat-mac/carbon/appleevents.py.

 

cheers

 




More discussions in Illustrator SDK


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support