Logo

Cake Planner

Backend

image_processor.cpp

File Header Information

FieldValue
SPDX CommentImage Processor Implementation
SPDX TypeSOURCE
ContributorZHENG Robert
License IDMIT
Fileimage_processor.cpp
DescriptionImage Processor Implementation
Version0.15.0
Date2026-01-24
AuthorZHENG Robert (robert@hase-zheng.net)
CopyrightCopyright (c) 2026 ZHENG Robert
LicenseMIT

Table of Contents

API Documentation

void ImageProcessor::generateWebPVersions(const QString& sourcePath)

Generates WebP versions of an image in multiple resolutions.

ParameterDescription
sourcePathThe file path of the source image.

QImage img(sourcePath)

Function implementation.


QFileInfo fileInfo(sourcePath)

Function implementation.


void ImageProcessor::deleteAllVersions(const QString& sourcePath)

Deletes the original image and all generated WebP versions.

ParameterDescription
sourcePathThe file path of the original image (used to derive version filenames).

QFileInfo fileInfo(sourcePath)

Function implementation.