Commit 0bfd6e16 authored by Rafael Monnerat's avatar Rafael Monnerat

Included transform to convert an image to svg

parent 5421188e
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Transform" module="Products.PortalTransforms.Transform"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_config</string> </key>
<value>
<object>
<klass>
<global id="1.1" name="UserDict" module="UserDict"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>__allow_access_to_unprotected_subobjects__</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>data</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_config_metadata</string> </key>
<value>
<object>
<klass> <reference id="1.1"/> </klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>data</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>image_to_svg</string> </value>
</item>
<item>
<key> <string>inputs</string> </key>
<value>
<tuple>
<string>image/*</string>
</tuple>
</value>
</item>
<item>
<key> <string>module</string> </key>
<value> <string>Products.PortalTransforms.transforms.image_to_svg</string> </value>
</item>
<item>
<key> <string>output</string> </key>
<value> <string>image/svg</string> </value>
</item>
<item>
<key> <string>output_encoding</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
41034
\ No newline at end of file
41035
\ No newline at end of file
from Products.PortalTransforms.libtransforms.imagemagick_transform import ImageMagickTransforms
class image_to_svg(ImageMagickTransforms):
__name__ = "image_to_svg"
inputs = ('image/*', )
output = 'image/svg+xml'
format = 'svg'
def register():
return image_to_svg()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment