Images are not being displayed
Submitted by myny on Sat, 04/04/2020 - 14:01
Forums:
Hi,
I am having issues with displaying images in H5P with Moodle 3.8. Even if I reuse Greeting Card (https://h5p.org/node/885) the image of earth does not get displayed. Console in the browser does not show any issues. Could you please help me to figure out what could be the problem?
papi Jo
Mon, 04/06/2020 - 15:46
Permalink
I have seen this happen at
I have seen this happen at times... Try this: after uploading the Greeting Card activity, in edit mode, change the image (put a new image in). What happens?
myny
Mon, 04/06/2020 - 18:04
Permalink
The image shows up then.
The image shows up then. However, this does not solve my issue as I want to add some images the user wont be able to modify.
myny
Mon, 04/06/2020 - 18:06
Permalink
The image shows up if I do
The image shows up if I do that. However, this does not solve my issue as I want to create content where user wont be able to modify some images.
myny
Mon, 04/06/2020 - 18:08
Permalink
The image shows up if I do
The image shows up if I do that. However, this does not solve my issue as I want to create content where user wont be able to modify some images.
BV52
Mon, 04/06/2020 - 18:17
Permalink
Hi myny,Other users can't
Hi myny,
Other users can't modify the images, since you need to be on the editor to do this.
-BV
myny
Mon, 04/06/2020 - 19:41
Permalink
Sorry for duplicate comments.
Sorry for duplicate comments. I cannot delete them now.
Anyways .. to make things clear I want to add some images which will be displayed in the content without the need of using the editor to add them.
papi Jo
Mon, 04/06/2020 - 22:23
Permalink
Ssorry, this not clear at all
Ssorry, this not clear at all. Please explain.
myny
Tue, 04/07/2020 - 06:36
Permalink
I want to develop .h5p
I want to develop .h5p package that contains and displays images. The best example I found, is with Greeting Card. Inside the .h5p package there is an image (earth.jpg), but after installation, the image is not displayed. I have exactly the same issue. I found out that the image is added into Moodle file system. It is even in mdl_files table (Moodle database). I have a suspicion that in this table it is added to wrong 'filearea'. The 'filearea' says "editor" while I have noticed that images that are being displayed in other packages have two entries in mdl_files one with 'fileareal="editor" and other with 'filearea'="content" (this is the case for example in Collage example). The other packages display image if the image was added via the editor.
papi Jo
Tue, 04/07/2020 - 14:34
Permalink
@myny Thanks for the detailed
@myny Thanks for the detailed explanation. Maybe the Greeting Card H5P content is not up-to-date and not a good starting point for developing a new content?