TCPDF ERROR: [Image] Unable to get the size of the image:

After a 18.0.5 to 19.0.2 upgrade we are experiencing problems. At the moment the problem appears when generating a pdf from offers, orders and invoices, and when trying to validate a payment.
In the prior state (18.0.5) it did not happen.

The error is
TCPDF ERROR: [Image] Unable to get the size of the image:
data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAXwBf…Eb6A0kGTCG8nqKQOEAEAVOhu/H/2Q==

Any Idea about a solution?

Thnaks in advanced

PD. The installation is on a 22.04 ubuntu server updated.