<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вс, 27 авг. 2023 г., 01:13 Andrew Randrianasulu <<a href="mailto:randrianasulu@gmail.com">randrianasulu@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вс, 27 авг. 2023 г., 01:01 Andrew Randrianasulu <<a href="mailto:randrianasulu@gmail.com" rel="noreferrer noreferrer noreferrer" target="_blank">randrianasulu@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вс, 27 авг. 2023 г., 00:56 Stefan de Konink via Cin <<a href="mailto:cin@lists.cinelerra-gg.org" rel="noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">cin@lists.cinelerra-gg.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Saturday, August 26, 2023 11:26:17 PM CEST, Andrew Randrianasulu via Cin <br>
wrote:<br>
> Also, can illustrative pngs be compressed (lossy) with pngquant utility? It<br>
> makes paletted pngs. Not sure how various pdf viewers will react to that<br>
> ....<br>
<br>
I would first suggest to find out if PNG support is even part of the <br>
regular PDF options. Some suggests not, some suggest 256 colors are <br>
(without transparency).<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">this file from ~2008 suggest pdf can have jpeg variants or zip compression for "streams" with some pre-filtering?</div><div dir="auto"><br></div><div dir="auto"><a href="https://tug.org/TUGboat/tb30-3/tb96szabo.pdf" rel="noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://tug.org/TUGboat/tb30-3/tb96szabo.pdf</a><br></div><div dir="auto"><br></div><div dir="auto">here is github:</div><div dir="auto"><br></div><div dir="auto"><a href="https://github.com/pts/pdfsizeopt" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://github.com/pts/pdfsizeopt</a><br></div><div dir="auto"><br></div><div dir="auto">warning, contain python 2.x</div><div dir="auto"><br></div><div dir="auto">there are other tools using perl + ghostscript.... Or even something with dotnet!</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">And slightly down the line:</div><div dir="auto"><br></div><div dir="auto"><a href="https://gitlab.mister-muffin.de/josch/img2pdf" rel="noreferrer noreferrer noreferrer" target="_blank">https://gitlab.mister-muffin.de/josch/img2pdf</a><br></div><div dir="auto"><br></div><div dir="auto">===</div><div dir="auto">For JPEG, JPEG2000, non-interlaced PNG and TIFF images with CCITT Group 4
encoded data, img2pdf directly embeds the image data into the PDF without
re-encoding it. It thus treats the PDF format merely as a container format for
the image data. In these cases, img2pdf only increases the filesize by the size
of the PDF container (typically around 500 to 700 bytes). Since data is only
copied and not re-encoded, img2pdf is also typically faster than other
solutions for these input formats.<br></div><div dir="auto">====</div><div dir="auto"><br></div><div dir="auto">as found via this stackowerflow:</div><div dir="auto"><br></div><div dir="auto"><a href="https://stackoverflow.com/questions/14220221/how-to-insert-transparent-png-in-pdf" target="_blank" rel="noreferrer">https://stackoverflow.com/questions/14220221/how-to-insert-transparent-png-in-pdf</a><br></div><div dir="auto"><br></div><div dir="auto">thing is, I have no idea yet if latex2pdf can use any of this ....</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><a href="https://tex.stackexchange.com/questions/45498/choosing-whether-to-include-pdf-or-png-in-pdflatex">https://tex.stackexchange.com/questions/45498/choosing-whether-to-include-pdf-or-png-in-pdflatex</a><br></div><div dir="auto"><br></div><div dir="auto">this answer suggest you can use pdf instead of png. I wonder if pdf in question can be one generated by img2pdf ?</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div dir="auto"><br></div><div dir="auto">But I guess html version can benefit from smaller pngs too?</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
-- <br>
Stefan<br>
-- <br>
Cin mailing list<br>
<a href="mailto:Cin@lists.cinelerra-gg.org" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">Cin@lists.cinelerra-gg.org</a><br>
<a href="https://lists.cinelerra-gg.org/mailman/listinfo/cin" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://lists.cinelerra-gg.org/mailman/listinfo/cin</a><br>
</blockquote></div></div></div>
</blockquote></div></div></div>
</blockquote></div></div></div>