# sec_interp.exporters.image_exporter module

Image exporter module for raster formats (PNG, JPG).

class sec_interp.exporters.image_exporter.ImageExporter(settings: dict[str, Any])

  Bases: `BaseExporter`

  Exporter for raster image formats (PNG, JPG, JPEG).

  Initialize the exporter with settings.

  Parameters:

    settings – Dictionary containing export settings such as: - width: Output width in pixels - height: Output height in pixels - dpi: Dots per inch for resolution - background_color: Background color (QColor) - legend_renderer: Optional renderer for legend overlay

  get_supported_extensions() → list[str]

    Get supported image extensions.

  export(output_path: Path, map_settings: qgis.core.QgsMapSettings) → bool

    Export map to raster image.

    Parameters:

      - output_path – Output file path

      - map_settings – QgsMapSettings instance configured for rendering

    Returns:

      True if export successful, False otherwise