Skip to content

capturegraph.procedures.nodes.automatic.conversions #

Data conversion procedures transform data from one type to another while preserving essential information. These procedures enable data processing workflows where captured data needs to be converted to different formats for storage, display, or analysis.

Conversion procedures handle format transformations, size adjustments, and quality optimizations automatically.

ConvertImageToThumbnail #

Bases: Procedure[PImageThumbnail]

Converts a full-size image to a smaller thumbnail version.

Processes an image to create a smaller, more compact version suitable for previews, galleries, or list views. Maintains aspect ratio while reducing file size.

Attributes:

Name Type Description
image Procedure[PImage]

The full-size image to convert to a thumbnail

Source code in capturegraph-lib/capturegraph/procedures/nodes/automatic/conversions.py
@make_procedure
class ConvertImageToThumbnail(Procedure[PImageThumbnail]):
    """
    Converts a full-size image to a smaller thumbnail version.

    Processes an image to create a smaller, more compact version
    suitable for previews, galleries, or list views. Maintains
    aspect ratio while reducing file size.

    Attributes:
        image (Procedure[PImage]): The full-size image to convert to a thumbnail
    """

    image: Procedure[PImage]