From 5bfbca9a83cb85284e55e43d46e35d897ad795a8 Mon Sep 17 00:00:00 2001 From: Jason Novinger Date: Mon, 15 Sep 2025 23:49:43 +0000 Subject: [PATCH] Fixes #20298: Add placeholder for failed image thumbnail generation (#20359) --- netbox/templates/extras/object_imageattachments.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/netbox/templates/extras/object_imageattachments.html b/netbox/templates/extras/object_imageattachments.html index 9c3c137a9..981927d45 100644 --- a/netbox/templates/extras/object_imageattachments.html +++ b/netbox/templates/extras/object_imageattachments.html @@ -27,6 +27,16 @@ alt="{{ object.description|default:object.name }}" /> + {% empty %} + +
+
+ +
{% trans "Thumbnail cannot be generated" %}
+
{% trans "Click to view original" %}
+
+
+
{% endthumbnail %}
{{ object }}