1
0
mirror of https://git.familie-radermacher.ch/linux/ptouch-print.git synced 2026-04-06 02:42:21 +00:00

write_png: show physical output size

This commit is contained in:
Pascal de Bruijn
2026-03-05 18:33:15 +01:00
committed by Dominic Radermacher
parent cb76f2ae75
commit 25e7a8c876

View File

@@ -286,6 +286,7 @@ int write_png(gdImage *im, const char *file)
gdImageSetResolution(im, 180, 180);
gdImagePng(im, f);
fclose(f);
printf(_("printing '%s' requires %.1f mm of tape\n"), file, (float)gdImageSX(im) / gdImageResolutionX(im) * 25.4);
return 0;
}