diff --git a/modules/tga_converter.py b/modules/tga_converter.py index 82e59bc..def71f6 100644 --- a/modules/tga_converter.py +++ b/modules/tga_converter.py @@ -296,6 +296,10 @@ class TGAConverter: else: image = image.convert('RGBA') + # Apply canvas sizing if requested + if canvas_size: + image = self._apply_canvas(image, canvas_size, upscale) + # Determine output path and format if output_name is None: output_name = tga_path.stem @@ -327,6 +331,10 @@ class TGAConverter: else: image = Image.fromarray(pixels, 'RGB') + # Apply canvas sizing if requested + if canvas_size: + image = self._apply_canvas(image, canvas_size, upscale) + # Determine output path and format if output_name is None: output_name = tga_path.stem