Caching the images in HTML for performance?

179 views
Skip to first unread message

Homer Kommrad

unread,
Jun 15, 2013, 4:38:32 AM6/15/13
to wkhtmlt...@googlegroups.com
I have HTML files with image elements in it , with urls to other places on internet , nothing local. 

I'm converting the same html incessantly, with changing some text in it every time . 

The problem is that the converter is downloading the same images every time , i believe. And if there was a way to download these images only once , it would be an amazing throughput increase for me .


Is there such an option already ? or a solution ?

sa wanwisa

unread,
Jun 17, 2013, 1:44:55 PM6/17/13
to wkhtmlt...@googlegroups.com
No there isn't. But when you are a programmer it shouldn't be to hard to make something yourself.

I did something similar in a solution that I've made with wkHTMLtoPdf. I pre process the HTML before I use wkHTMLtoPdf

Greetings,
Kees van Spelde

Op zaterdag 15 juni 2013 10:38:32 UTC+2 schreef Homer Kommrad het volgende:

Jakob Truelsen

unread,
Jun 17, 2013, 2:03:23 PM6/17/13
to wkhtmlt...@googlegroups.com
Also if someone is willing to do the work, it would not be that hard
to add it to wkhtmltopdf. For most cases it would probably be enough
to create an instance of
QNetworkDiskCache and assign it to the QNetworkAccessManager.

/Jakob
> --
> You received this message because you are subscribed to the Google Groups
> "wkhtmltopdf Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to wkhtmltopdf-d...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Homer Kommrad

unread,
Jun 18, 2013, 2:31:34 AM6/18/13
to wkhtmlt...@googlegroups.com
Actually im just using the binary file with  runtime.exec() in java . And using another layer to cache the images seems more suitable to my need i guess
Reply all
Reply to author
Forward
0 new messages