Benjamin_Loison commented on issue Benjamin_Loison/overleaf#38 2025-03-26 00:05:37 +01:00
Does not leverage previous compilations?

-background white does not help.

Benjamin_Loison commented on issue Benjamin_Loison/overleaf#38 2025-03-26 00:05:00 +01:00
Does not leverage previous compilations?

DuckDuckGo search Linux convert png to jpg with transparent pixels to white.

Benjamin_Loison commented on issue Benjamin_Loison/overleaf#38 2025-03-26 00:04:30 +01:00
Does not leverage previous compilations?

Just setting transparency with white would meet my needs.

Benjamin_Loison commented on issue Benjamin_Loison/overleaf#38 2025-03-26 00:02:51 +01:00
Does not leverage previous compilations?

DuckDuckGo search JPG compression with transparency.

Benjamin_Loison commented on issue Benjamin_Loison/overleaf#38 2025-03-26 00:01:36 +01:00
Does not leverage previous compilations?

Maybe JPG can be written as is in the PDF contrarily to PNG.

Benjamin_Loison commented on issue Benjamin_Loison/overleaf#38 2025-03-25 23:57:20 +01:00
Does not leverage previous compilations?

0.68s for quality 25.

Benjamin_Loison commented on issue Benjamin_Loison/overleaf#38 2025-03-25 23:56:55 +01:00
Does not leverage previous compilations?
Bash script:
for file in actual_figures/*.{png,JPG}
do
    fileName=`basename $file`
    convert -quality 1 $file $fileName.jpg
    mv $fileName{.jpg,}
Benjamin_Loison commented on issue Benjamin_Loison/overleaf#38 2025-03-25 23:50:34 +01:00
Does not leverage previous compilations?

Can append .jpg to ease the JPG compression.

Benjamin_Loison commented on issue Benjamin_Loison/overleaf#38 2025-03-25 23:21:55 +01:00
Does not leverage previous compilations?

For testing can try generating PNG as .jpg.

Unclear if want to have JPG compression or rescale without rescaling in the article.

Benjamin_Loison commented on issue Benjamin_Loison/overleaf#38 2025-03-25 23:18:59 +01:00
Does not leverage previous compilations?

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…

Benjamin_Loison commented on issue Benjamin_Loison/overleaf#38 2025-03-25 23:14:32 +01:00
Does not leverage previous compilations?
Bash script:
for file in actual_figures/*.{png,JPG}
do
    #echo $file
    #echo `basename $file`
    convert -size "`file $file 
Benjamin_Loison commented on issue Benjamin_Loison/overleaf#38 2025-03-25 23:09:31 +01:00
Does not leverage previous compilations?

Maybe the slowness is due to .svg.

Benjamin_Loison commented on issue Benjamin_Loison/overleaf#38 2025-03-25 23:07:37 +01:00
Does not leverage previous compilations?
file *.png *.JPG 
Benjamin_Loison commented on issue Benjamin_Loison/overleaf#38 2025-03-25 23:07:11 +01:00
Does not leverage previous compilations?

Spaces for resolution in -size works fine.

Benjamin_Loison commented on issue Benjamin_Loison/overleaf#38 2025-03-25 23:03:20 +01:00
Does not leverage previous compilations?

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…

Benjamin_Loison commented on issue Benjamin_Loison/overleaf#40 2025-03-25 18:19:20 +01:00
Notify on completed compilation
JavaScript code:
function getElementByXpath(path) {
	return document.evaluate(path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singl
Benjamin_Loison commented on issue Benjamin_Loison/overleaf#40 2025-03-25 17:46:09 +01:00
Notify on completed compilation
new Date().toLocaleString()
"25/03/2025, 17:45:58" 
Benjamin_Loison commented on issue Benjamin_Loison/overleaf#40 2025-03-25 17:44:54 +01:00
Notify on completed compilation
const d = new Date();
let time = d.getTime();

gives milliseconds.