You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 31, 2026. It is now read-only.
Describe the bug
When using --max-size or --scale together with --fix-size, the output image width or height is not aligned to a multiple of 4 as expected.
To Reproduce
Steps to reproduce the behavior:
Add --fix-size or -fs to arguments.
Add --max-size 10 to arguments.
Use any PNG file as input.
Run the command. The generated DDS file will have a width or height not divisible by 4 (e.g. 10x10).
Expected behavior
The output image should have both width and height as multiples of 4.
This is required for BC compression formats and should be ensured by --fix-size.
System (please complete the following information):
Not relevant.
Additional context fix_size is only used in filter_decode_png.cpp and not applied in filter_scale_image.cpp.
Describe the bug
When using
--max-sizeor--scaletogether with--fix-size, the output image width or height is not aligned to a multiple of 4 as expected.To Reproduce
Steps to reproduce the behavior:
--fix-sizeor-fsto arguments.--max-size 10to arguments.Expected behavior
The output image should have both width and height as multiples of 4.
This is required for BC compression formats and should be ensured by
--fix-size.System (please complete the following information):
Not relevant.
Additional context
fix_sizeis only used infilter_decode_png.cppand not applied infilter_scale_image.cpp.todds/src/pipeline/filter_decode_png.cpp
Lines 68 to 73 in ca6c521
todds/src/pipeline/filter_scale_image.cpp
Lines 37 to 56 in ca6c521