- https://github.com/Benjamin-Loison
- Joined on
2022-10-16
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
Still compiling on PLMLaTeX after 8 minutes when not in draft. It seems to have taken about 10 minutes.
With draft mode it takes 9 seconds.
The resolution does not seem to blame but the…