Exporting notes (with certain JPEGs) to PDF results in oversized PDF.
This is the from github issues I have been working on.
I have tried to reproduce this issue.
The PDF is not oversized with every JPEG of those dimensions or above, but there are certain JPEGs that cause this issue of oversizing.
I have tried 2 JPEGs(4000X6000) of 6MB exported PDF is of 82MB.
I have also tried with a different JPEG( 4400X6216 ) of 5.88 MB exported PDF is of 8.89MB.
I have studied how the pdf is exported in Joplin.
If I am not wrong, it uses ElectronJS printToPDF
method in its webContents module to export notes to PDF.
can any one confirm if I am right about printToPDF