Skip to content

Commit 91e781f

Browse files
resolved protocol unknown error in html to png script
1 parent f2af98f commit 91e781f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/html_to_png.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,12 @@ else
4444
fi
4545

4646
echo "Converting JaCoCo report: $JACOCO_HTML -> reports/jacoco.png"
47-
wkhtmltoimage --width 1600 --quality 90 "$JACOCO_HTML" "${PNG_OUTPUT}/jacoco.png"
47+
wkhtmltoimage --enable-local-file-access --width 1600 --quality 90 \
48+
"$JACOCO_HTML" "${PNG_OUTPUT}/jacoco.png"
4849

4950
echo "Converting PMD report: $PMD_HTML -> reports/pmd.png"
50-
wkhtmltoimage --width 1600 --quality 90 "$PMD_HTML" "${PNG_OUTPUT}/pmd.png"
51+
wkhtmltoimage --enable-local-file-access --width 1600 --quality 90 \
52+
"$PMD_HTML" "${PNG_OUTPUT}/pmd.png"
5153

5254
# Copy HTML assets for artifact collection
5355
echo "Copying HTML assets into ${HTML_OUTPUT}"

0 commit comments

Comments
 (0)