1

I am printing an image (monochrome) from a portable thermal printer (model: Brother PJ-623) using Raspberry Pi. Image is stored in eps format.

Problem: It takes ~9-12 seconds before the printing is started. I think may be the issue is in format of the image. So is there any format which the printer can read faster than eps format?

Or any other solution if possible?

EDIT: I'm using gnuplot in Qt-creator to create the image file.

Any help would be highly appreciated.

Best regards, Hammad Tariq

4

2 回答 2

1

我在 GNUPLOT 中使用以下命令尝试了其他格式,如 png 和 pdf:

set term png size H,W

其中 H,W 是生成图像的分辨率。

但他们一开始并没有帮助,因为印刷品包含扭曲。原来问题出在dpi上。

因此,经过一些研究,我发现了以下链接:

GNUPLOT pdf 终端

我使用上面的链接找到了以下命令:

set terminal postscript enhanced color
set output '| ps2pdf - plot.pdf'

它将 ps 文件转换为 pdf,pdf 中的结果与 ps 文件中的结果相同。

打印机读取仅需 3 秒。

我希望它会在未来对某人有所帮助。问候,哈马德

于 2013-11-20T08:45:59.763 回答
0

如果您的 EPS 是基于矢量的,那么您在格式上确实没有选择余地。唯一的其他选择是 PDF,它的效率可能低于 EPS。您使用的驱动程序可能在打印矢量图形方面效率不高。您可以通过将图像转换为高分辨率 JPEG 并查看打印时间是否存在差异来进行测试。

但是,如果您将 EPS 格式用于光栅图像,那么您最好还是使用高质量的 JPEG 文件。与 TIFF 和 JPEG 相比,EPS 在存储像素信息方面效率低下。

当然,我不得不想知道 10 秒的打印时间有什么不好。这只是一件好奇的事情,还是这些打印速度超快至关重要?

于 2013-11-13T16:45:30.860 回答