shithub: imagetools

Download patch

ref: 4b2829d53a89307500dcdd9565b5e83f5e1b599d
parent: 8744d0c37b0c1e593022e3e67e797bc89ccdbc35
author: rodri <rgl@antares-labs.eu>
date: Thu Jul 31 11:48:22 EDT 2025

affinewarp: do not invert scale coefficients

--- a/affinewarp.c
+++ b/affinewarp.c
@@ -48,8 +48,6 @@
 static void
 mkscale(Matrix m, double sx, double sy)
 {
-	sx = sx == 0? 1: 1/sx;
-	sy = sy == 0? 1: 1/sy;
 	Matrix S = {
 		sx, 0, 0,
 		0, sy, 0,
--