Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Export ¶
func Export(svgData string, opts ExportOptions) ([]byte, error)
Export converts SVG to the specified format
func GetFileExtension ¶
GetFileExtension returns the file extension for a format
func GetMimeType ¶
GetMimeType returns the MIME type for a format
Types ¶
type ExportOptions ¶
type ExportOptions struct {
Format Format
Width int // For raster formats, 0 = use SVG dimensions
Height int // For raster formats, 0 = use SVG dimensions
Quality int // For JPEG, 0-100 (default 90)
DPI int // Dots per inch (default 96)
}
ExportOptions configures export settings
Click to show internal directories.
Click to hide internal directories.