SVG Overlay in Axis devices : SVG images with text attribute not supported #1238
Replies: 3 comments
-
|
This automatically generated reply acts as a friendly reminder. Answers to your questions will most often come from the community, from developers like yourself. You will, from time to time, find that Axis employees answers some of the questions, but this is not a guarantee. Think of the discussion forum as a complement to other support channels, not a replacement to any of them. If your question remains unanswered for a period of time, please revisit it to see whether it can be improved by following the guidelines listed in Axis support guidelines. |
Beta Was this translation helpful? Give feedback.
-
|
Cool SVG samples tested with Axis Camera: |
Beta Was this translation helpful? Give feedback.
-
SVG Related ACAP:Have you tried uploading the SVG to my SVG Overlay ACAP? It supports only a subset of SVG, and I haven’t tested complex SVGs yet.
Python code tested with ACAPimport requests
import time
CAMERA_IP = "10.176.12.47"
BASE_URL = f"https://{CAMERA_IP}/local/svgoverlay/draw"
USERNAME = "root"
PASSWORD = "pass"
SVG = """<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000">
<rect x="100" y="200" width="300" height="200"
fill="#00ff00" fill-opacity="0.15"
stroke="#00ff00" stroke-width="4"/>
</svg>"""
session = requests.Session()
session.auth = (USERNAME, PASSWORD)
session.verify = False # Axis self-signed certs
headers = {
"Content-Type": "image/svg+xml"
}
try:
# Upload SVG overlay
response = session.post(
BASE_URL,
data=SVG.encode("utf-8"),
headers=headers,
timeout=10
)
response.raise_for_status()
print("Overlay uploaded:", response.status_code)
# Wait 10 seconds before clearing
time.sleep(10)
# Clear overlay
response = session.delete(
BASE_URL,
timeout=10
)
response.raise_for_status()
print("Overlay cleared:", response.status_code)
except requests.exceptions.RequestException as e:
print("Request failed:", e)Output: |
Beta Was this translation helpful? Give feedback.







Uh oh!
There was an error while loading. Please reload this page.
-
Hi Axis Developer Community Members,
I am trying to test different SVGs with the Axis camera:
Error for above SVGs:
Output:
Beta Was this translation helpful? Give feedback.
All reactions