toConvertThreadRequest method
Converts the ThreadWebRequest
instance into an
ImageConvertThreadRequest
.
This method is used to transform the incoming request object into a format that is processed by image conversion threads. It maps all properties, including ID, image data, and various configuration parameters related to encoding, such as JPEG quality, PNG filter levels, and output formats.
Returns:
ImageConvertThreadRequest
: A new request object containing the same data but structured for internal conversion processes.
Implementation
ImageConvertThreadRequest toConvertThreadRequest() {
return ImageConvertThreadRequest(
id: id,
generateOnlyImageBounds: generateOnlyImageBounds,
jpegChroma: jpegChroma,
jpegQuality: jpegQuality,
pngFilter: pngFilter,
pngLevel: pngLevel,
singleFrame: singleFrame,
outputFormat: outputFormat,
image: image,
);
}