|
FlatImage
A configurable Linux containerization system
|
Functions | |
| ENUM (ImageFormat, JPG, PNG) | |
| Value< void > | resize_impl (fs::path const &path_file_src, fs::path const &path_file_dst, uint32_t width, uint32_t height) |
| Internal implementation for resizing an image. | |
|
inline |
Internal implementation for resizing an image.
Reads an image file, determines its format (JPG or PNG), and resizes it using ImageMagick to the specified dimensions. The resize maintains aspect ratio by using the larger dimension (width or height) as the constraint.
| path_file_src | Path to the source image file |
| path_file_dst | Path to the destination image file |
| width | Target width for the resized image |
| height | Target height for the resized image |
Definition at line 55 of file image.hpp.