Documentation
¶
Overview ¶
Package imagefile tells what picture some bytes are and what file name to write them under, for every place that writes a picture out of a model.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSVG ¶
CheckSVG is nil when data is one well-formed SVG document — a single root element svg in the SVG namespace and no text outside it — else why it is not.
func CheckStaticSVG ¶
CheckStaticSVG is nil when data is one well-formed SVG document without active content that can execute or load external resources.
func ContentType ¶
ContentType is the type data's signature gives when it is one of the images written (PNG, JPEG, GIF, BMP, WebP), image/svg+xml for one well-formed SVG document, or "" when data is no such image.
func DecodeDataURL ¶
DecodeDataURL decodes a data URL and reports its declared media type, if any.
Types ¶
type ActiveContentError ¶
type ActiveContentError struct {
Construct string
}
ActiveContentError is an SVG construct that can load or execute active content.
func (*ActiveContentError) Error ¶
func (e *ActiveContentError) Error() string