Project

General

Profile

Actions

Defect #30164

open

Missing images in a wiki page are not visualized

Added by Darko Palic almost 6 years ago. Updated 7 months ago.

Status:
Confirmed
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

Right now if a wiki page has referenced a image/picture, it is not visualizing the lack of the attached binary.
It would be great to add a image reference like this https://upload.wikimedia.org/wikipedia/commons/e/e4/Comic_image_missing.svg with the missing image name as a caption to let the user know, that he has forgot to upload a image

In following cases the images of a wiki page could be missing:

  • you create a new wiki article, you already reference the wished image, and you later want to batch-upload all images
  • you cleanup the current wiki pages, by copying some parts into new wiki pages, but you forget to re-upload the images again

In both cases the issue can happen quickly. Sadly if you miss to upload the images afterwards, you need a admin to determine where the images have been and to reupload them again.
This is not user friendly.


Files

firefox-broken-image.png (3.8 KB) firefox-broken-image.png Go MAEDA, 2019-06-02 02:59
clipboard-202405091319-3dctk.png (26.6 KB) clipboard-202405091319-3dctk.png Katsuya HIDAKA, 2024-05-09 06:19
edge.png (7.46 KB) edge.png Katsuya HIDAKA, 2024-05-09 06:20
firefox.png (5.92 KB) firefox.png Katsuya HIDAKA, 2024-05-09 06:20
safari.png (5.88 KB) safari.png Katsuya HIDAKA, 2024-05-09 06:20
chrome.png (7.46 KB) chrome.png Katsuya HIDAKA, 2024-05-09 06:20
Actions #1

Updated by Darko Palic almost 6 years ago

symmetrical issue to #30165

Actions #2

Updated by Go MAEDA over 5 years ago

Firefox displays a broken image icon for a missing image but Chrome does not. So, it is not easy for Chrome users to detect that some images are missing.

Actions #3

Updated by Go MAEDA almost 5 years ago

  • Status changed from New to Confirmed
Actions #4

Updated by Katsuya HIDAKA 7 months ago

Perhaps the reason why the missing attached image is not visualized on the wiki page is because the alt attribute of the img tag of the image rendered on the wiki page is not set. This is correct behavior based on the HTML specification below.

Setting this attribute to an empty string (alt="") indicates that this image is not a key part of the content (it's decoration or a tracking pixel), and Visual browsers will also hide the broken image icon if the alt attribute is empty and the image fails to display. Visual browsers will also hide the broken image icon if the alt attribute is empty and the image failed.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#:~:text=Setting%20this%20attribute,failed%20to%20display

In other words, the missing image can be visualized by explicitly setting the alt value.

h1. Wiki

Without alt text

!nonexistent-image.png!

With alt text

!nonexistent-image.png(alt text)!

The display results for each browser are as follows. For some reason, only Firefox does not display the icon, but the alt text is displayed, so you can notice that the image is missing.

Chrome Safari Edge Firefox
Actions

Also available in: Atom PDF