I have the following html. It works fine but now i need sometime to print a base64 image for a QRcode and some others clients want to have their logo printed on the receipt on their thermal printer, but everytime i append a <img> tag woth any kind of image the text get smaller, and it get smaller with same proportion of the size of the image.
You can see in the example 1 with no image added, example 2 image with medium size (QrCode), example 3 a big image got the text super small (this was just for an example, no client want it so big)
<html>
<head>
<meta charset="utf-8">
<style>
th, td {
font-size: 13px;
font-family: Arial, Helvetica, sans-serif;
}
body {
max-width: 270px;
}
</style>
</head>
<body>
<table width="95%" align="center" border="0">
<tr></tr>
<tr>
<td align="center" valign="top">
<h3>Olha, eu posso te vender mais barato nas próximas compras</h3>
</td>
</tr>
<tr>
<td align="center" valign="top">
<p>Leia nosso QRCode e se cadastre</p>
</td>
</tr>
<tr>
<td align="center" valign="top"></td>
</tr>
<tr>
<td align="center" valign="top"></td>
</tr>
</table>
<table width="95%" align="center" border="0">
<tr>
<td width="10%"> </td>
<td width="30%"> </td>
<td width="40%"> </td>
<td width="20%"> </td>
</tr>
<tr>
<td align="center" colspan="4" valign="top">
<strong><< PEDIDO #3517 iFood >></strong>
</td>
</tr>
<tr>
<td align="center" colspan="4" valign="top">
<strong>Delivery</strong>
</td>
</tr>
<tr>
<td align="center" colspan="4" valign="top">
<strong>REALIZE DELIVERY</strong><br/><br/>
</td>
</tr>
<tr>
<td colspan="2">Previsto: </td>
<td colspan="2">12/07/2024 06:50</td>
</tr>
<tr>
<td colspan="2">Entrega</td>
<td colspan="2">12/07/2024 07:20</td>
</tr>
<tr>
<td colspan="2">Cliente</td>
<td colspan="2">PEDIDO DE TESTE - Leonardo Cavalcanti</td>
</tr>
<tr>
<td colspan="2">Telefone</td>
<td colspan="2">0800 705 4050</td>
</tr>
<tr>
<td colspan="2">Localizador iFood</td>
<td colspan="2">55800311</td>
</tr>
<tr>
<td colspan="4">1 pedido(s) na sua loja</td>
</tr>
<tr>
<td align="center" colspan="4" valign="top">
<br/><br/><strong><< ITENS DO PEDIDO >></strong><br/><br/>
</td>
</tr>
<tr>
<td align="left">1 UN</td>
<td align="left" colspan="2" valign="top">PEDIDO DE TESTE - ITEM 1 - NÃO ENTREGAR</td>
<td align="right">R$14,46</td>
</tr>
<tr>
<td align="left">1 UN</td>
<td align="left" colspan="2" valign="top">PEDIDO DE TESTE - ITEM 2 - NÃO ENTREGAR</td>
<td align="right">R$15,83</td>
</tr>
<tr>
<td align="center" colspan="4" valign="top">
<br/><br/><strong><< TOTAL >></strong><br/><br/>
</td>
</tr>
<tr>
<td colspan="3">Valor total dos itens</td>
<td align="right">R$30,29</td>
</tr>
<tr>
<td colspan="3">Taxa de entrega</td>
<td align="right">R$10,00</td>
</tr>
<tr>
<td colspan="3"><strong>VALOR TOTAL</strong></td>
<td align="right"><strong>R$41,28</strong></td>
</tr>
<tr>
<td align="center" colspan="4" valign="top">
<br/><br/><strong><< PAGAMENTO >></strong><br/><br/>
</td>
</tr>
<tr>
<td colspan="4">NÃO COBRAR NA ENTREGA</td>
</tr>
<tr>
<td colspan="3">Pagamento online (Vale refeição)</td>
<td align="right">R$41,28</td>
</tr>
<tr>
<td align="center" colspan="4" valign="top">
<br/><br/><strong><< ENTREGA #3517 >></strong><br/><br/>
</td>
</tr>
<tr>
<td colspan="3">Horário:</td>
<td align="right"><strong>07:20</strong></td>
</tr>
<tr>
<td align="left" colspan="4">
<strong>PEDIDO DE TESTE - LEONARDO CAVALCANTI</strong>
</td>
</tr>
<tr>
<td align="left" colspan="4">
<strong>Rua TESTE, 999999</strong>
</td>
</tr>
<tr>
<td align="left" colspan="4">
Complemento: <strong>Complemento TESTE</strong>
</td>
</tr>
<tr>
<td align="left" colspan="4">
Referência: <strong>TESTE</strong>
</td>
</tr>
<tr>
<td align="left" colspan="4">
<strong>Bairro TESTE</strong>
</td>
</tr>
<tr>
<td align="left" colspan="4">TESTE - XX</td>
</tr>
<tr>
<td align="left" colspan="4" valign="top">
<br><br>
<p width="95%" align="center">impresso por</p>
</td>
</tr>
<tr>
<td align="center" colspan="4" valign="top">
<strong>| KDoQ Delivery</strong> - Realize TI |
</td>
</tr>
</table>
</body>
</html>
