Skip to content

src/dazzle_back/runtime/image_processor.py

Generated: 2026-03-30T04:38:47.411387+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

Image processing utilities for DNR.

Provides thumbnail generation and image optimization.

Key Exports

  • ImageProcessingError
  • ImageProcessor
  • ThumbnailService
  • is_available
  • generate_thumbnail
  • optimize_image
  • get_dimensions
  • get_format
  • convert_format
  • crop_to_square
  • generate
  • should_generate

Dependencies

Imports

  • __future__.annotations
  • io.BytesIO
  • typing.TYPE_CHECKING
  • typing.Any
  • typing.Literal
  • PIL.Image
  • PIL.Image
  • PIL.Image
  • PIL.Image
  • PIL.Image
  • PIL.Image
  • PIL.ExifTags
  • PIL.Image
  • PIL.Image

Event Interactions

None detected.

Invariants and Assumptions

No invariants documented.

Tests

  • tests/integration/test_runtime_e2e.py
  • tests/integration/test_runtime_pipeline.py
  • tests/unit/test_runtime_test_routes.py
  • tests/unit/test_runtime_services.py
  • tests/unit/test_runtime_mcp_tools.py

Notes

This page was automatically generated by tools/gen_reference_docs.py.