Zverik / svg-resize

Resizes and frames an SVG image
29 stars 8 forks source link

List all options #2

Open hellocatfood opened 8 years ago

hellocatfood commented 8 years ago

Currently there is no way to know the processing options. Can the Readme state what processing options are available?

ChildishGiant commented 6 years ago
# is there a good way to get rid of this function?
def prepare_options(options):
    if 'width' not in options:
        options['width'] = None
    if 'height' not in options:
        options['height'] = None
    if 'longest' not in options:
        options['longest'] = None
    if 'shortest' not in options:
        options['shortest'] = None
    if 'margin' not in options:
        options['margin'] = '0'
    if not 'trim' in options:
        options['trim'] = False
    if not 'frame' in options:
        options['frame'] = False

The options seem to be: