Files
trx-rs/src
sjg 53dfe72143
Sync docs to Wiki / wiki (push) Has been cancelled
[fix](trx-wefax): validate row widths and log dimensions before PNG save
png::Writer::write_image_data only validates the total byte count,
so if individual scan lines were pushed at the wrong width the total
could still match and the resulting PNG would be silently skewed.
Explicitly check each row against pixels_per_line before encoding
and bail with a descriptive error if any row disagrees.

Also log the final file path, dimensions, and byte size at debug
level so corrupted-image reports have something concrete to look at.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 00:27:46 +02:00
..