Increase JPG/PNG size to 800px
200px height was too small and when you expand it gets blurry.
Solves #5 (closed)
Merge request reports
Activity
231 231 232 232 $return_var = NULL; 233 233 234 exec('inkscape -h200 --export-png=' . $new_png . ' ' . $starting_svg . ' 2>&1', $backend_output, $return_var); 234 exec('inkscape -h800 --export-png=' . $new_png . ' ' . $starting_svg . ' 2>&1', $backend_output, $return_var); Not really related to this specific PR, but I would look into escaping the parameters,
$new_png
and$starting_svg
. It looks like the structure of$new_png
does not allow for an injection attack, but$new_png
is more vulnerable. While$new_png
is being somewhat escaped bygetOrganizationFilename()
, there may still be room to improve. I'd suggestescapeshellarg()
just to make sure. The same goes for all calls toexec
.
231 231 232 232 $return_var = NULL; 233 233 234 exec('inkscape -h200 --export-png=' . $new_png . ' ' . $starting_svg . ' 2>&1', $backend_output, $return_var); 234 exec('inkscape -h800 --export-png=' . $new_png . ' ' . $starting_svg . ' 2>&1', $backend_output, $return_var); mentioned in commit a11e7381
Please register or sign in to reply