I am creating PDF files with TCPDF. I have a test script that generates an embedded pdf, as well as a script that saves the PDF file to the server and then sends it via email.
PDF files saved in a file have extremely poor image quality on some images. You can see it below:

The PDF files shown inline (in the browser) have excellent image quality: 
Does anyone know why there will be a difference between the two? The same code just saved in accordance with the documentation:
$pdf->Output(self::$base_url.$filename, 'I');
vs
$pdf->Output(self::$base_url.$filename, 'F');
source share