I am currently working on a PHP script that is converting SVG to png and for that purpose I am currently using the Inkscape solution. It works like a charm but when there is a lot of visitors it is causing server load even if I am using a dedicated server with a powerful CPU.I am looking for a way to do the same job but with less load and generates images with less capacity (KBs).
Asked
Active
Viewed 561 times
-1
-
1add more servers, and/or optimize code, and/or switch rendering apps to one that's more efficient. – Marc B Jun 14 '16 at 14:10
-
@MarcB That's what i am looking for a rendering app that is more efficient and less consumming – Belatar Yassine Jun 14 '16 at 14:15
-
And asking for software recommendations is explicitly off-topic. – Marc B Jun 14 '16 at 14:16
-
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it. – Robert Longson Jun 14 '16 at 14:16
-
Are those individual, new SVG images every time? If not - implement some form of caching. – CBroe Jun 15 '16 at 10:22
1 Answers
1
Assuming you are not asking for software recommandation but for a way to speed up inkscape PNG rendering, consider changing the resolution of the output PNG. This can be done on the command line with the -d
option.

Joce
- 2,220
- 15
- 26
-
-
In pixels or in a distance unit? In pixels of course not. If image is for display on screen (or print), you prescribe the scaling of the image. If the resolution for this scaling is lower than the one of the screen, pixel effects become visible. – Joce Jun 15 '16 at 14:18