- https://github.com/Benjamin-Loison
- Joined on
2022-10-16
Note that previously the PDF was about 81.6 MB and now it is about 84.9 MB. So the PDF size does not seem to matter much.
Now PLMLaTeX compile in 8.09s (that is 14x faster than previously on my laptop and 31x faster than previously on PLMLaTeX).
-alpha remove works fine to have white instead of transparency (by default black), source: the Stack Overflow answer 8437562.
Maybe could use an intermediary PNG setting transparency to white.
DuckDuckGo search Linux convert png to jpg with transparent pixels to white.
Maybe JPG can be written as is in the PDF contrarily to PNG.
Bash script:
for file in actual_figures/*.{png,JPG}
do
fileName=`basename $file`
convert -quality 1 $file $fileName.jpg
mv $fileName{.jpg,}…
For testing can try generating PNG as .jpg.
Unclear if want to have JPG compression or rescale without rescaling in the article.
Being able to specify quality as percentage as for JPG convert would be nice, otherwise have to manually compute and enforce such initial file size portion.
DuckDuckGo search *Linux convert…
Bash script:
for file in actual_figures/*.{png,JPG}
do
#echo $file
#echo `basename $file`
convert -size "`file $file