mirror of
https://git.familie-radermacher.ch/linux/ptouch-print.git
synced 2026-04-08 11:42:20 +00:00
write_png: show physical output size
This commit is contained in:
committed by
Dominic Radermacher
parent
cb76f2ae75
commit
25e7a8c876
@@ -286,6 +286,7 @@ int write_png(gdImage *im, const char *file)
|
|||||||
gdImageSetResolution(im, 180, 180);
|
gdImageSetResolution(im, 180, 180);
|
||||||
gdImagePng(im, f);
|
gdImagePng(im, f);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
printf(_("printing '%s' requires %.1f mm of tape\n"), file, (float)gdImageSX(im) / gdImageResolutionX(im) * 25.4);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user