Apache::AxKit::Plugin::SvgCgiSerialize - CGI-Parameter Plugin


Apache-AxKit-Language-Svg2AnyFormat documentation  | view source Contained in the Apache-AxKit-Language-Svg2AnyFormat distribution.

Index


NAME

Top

Apache::AxKit::Plugin::SvgCgiSerialize - CGI-Parameter Plugin

SYNOPSIS

Top

  AddHandler axkit .svg

  ## Fairly important to cache the output because
  ## transformation is highly CPU-Time and Memory consuming
  AxCacheDir /tmp/axkit_cache

  ## When using SvgCgiSerialize this is vital 
  ## because the cgi-parameters are not used
  ## by default to build the cache
  AxAddPlugin Apache::AxKit::Plugin::QueryStringCache

  <Files ~ *.svg>
    AxAddStyleMap application/svg2anyformat Apache::AxKit::Language::Svg2AnyFormat
    AxAddProcessor application/svg2anyformat NULL

    ## optional with this variable you can
    ## overwrite the default output format 
    ## PNG
    ## Supported Values:
    ##    image/jpeg
    ##    image/png
    ##    image/gif
    ##    application/pdf
    PerlSetVar SVGOutputMimeType image/jpeg

    ## optional module to pass the format using cgi-parameters
    ## to the module. For supported values see above
    ## and the man-page of the plugin
    AxAddPlugin Apache::AxKit::Plugin::SvgCgiSerialize   
  </Files>

DESCRIPTION

Top

This plugin reads out the CGI-Parameter mime_type and passes it into the Module.

PNG: http://localhost/my.svg?mime_type=image/png

JPG: http://localhost/my.svg?mime_type=image/jpeg

GIF: http://localhost/my.svg?mime_type=image/gif

PDF: http://localhost/my.svg?mime_type=application/pdf

VERSION

Top

0.01

SEE ALSO

Top

Apache::AxKit::Language::Svg2AnyFormat

AUTHOR

Top

Tom Schindl <tom.schindl@bestsolution.at>


Apache-AxKit-Language-Svg2AnyFormat documentation  | view source Contained in the Apache-AxKit-Language-Svg2AnyFormat distribution.