Commit 832722abd for imagemagick.org
commit 832722abd22cc0ae431e703ad6e582cfa37af7c5
Author: Dirk Lemstra <dirk@lemstra.org>
Date: Sun Jul 26 09:14:55 2026 +0200
Set the page values when reading the x and y offset in a tga file (#8847).
diff --git a/coders/tga.c b/coders/tga.c
index bec8b0c95..324cdf9fa 100644
--- a/coders/tga.c
+++ b/coders/tga.c
@@ -238,6 +238,8 @@ static Image *ReadTGAImage(const ImageInfo *image_info,ExceptionInfo *exception)
*/
image->columns=tga_info.width;
image->rows=tga_info.height;
+ image->page.x=(ssize_t) tga_info.x_origin;
+ image->page.y=(ssize_t) tga_info.y_origin;
if ((tga_info.image_type != TGAMonochrome) &&
(tga_info.image_type != TGARLEMonochrome))
{