rastertotpcl icon indicating copy to clipboard operation
rastertotpcl copied to clipboard

Send BMP image with SG command in TPCL

Open GabiAndi opened this issue 2 years ago • 4 comments

I am currently developing a connector for a Toshiba printer. The plugin is written in Python and everything seems to work fine. However I can't send BMP images. In the toshiba manuals it is simply described that the SG command should be sent as follows:

{SG;x,y,width,height,2(BMP mode),graphic_data|}

Any graphic_data you send is taken as a command error. I've tried sending the image with and without a header, but it doesn't seem to work.

I did not find information about it, so I ask this question here. Thanks.

PS: sorry for my bad english

GabiAndi avatar Aug 26 '22 13:08 GabiAndi

Hi GabiAndi,

ich have the same problem with the SG-Commend. Do you have a solution now ?

Thanks Rudi

Bitschuster avatar Jun 19 '23 13:06 Bitschuster

Hello! I couldn't find a solution. In fact, in the company where I work we are printing labels without images. Trying to reverse engineer Toshiba's proprietary program that designs labels, I couldn't figure out how they treat the data.

GabiAndi avatar Jul 19 '23 14:07 GabiAndi

Proyect link: https://gitlab.com/flexar-libre/toshiba-printer-bsa4t

GabiAndi avatar Jul 19 '23 14:07 GabiAndi

Inkscape plugin: https://gitlab.com/flexar-libre/inkscape-extension-prn

GabiAndi avatar Jul 19 '23 14:07 GabiAndi