webtrees icon indicating copy to clipboard operation
webtrees copied to clipboard

No images in slideshow

Open SeniorSupportEngineer opened this issue 2 years ago • 5 comments

I upgraded my webtrees to 2.1.15, and after that there are no images shown in the slideshow module. Before the upgrade I had no issues with it.

When I view a image from control panel I see

Bestandsnaam: 00001-006161_001.jpg Titel: 00001-006161_001 Mediatype: Formaat:

When I manually change it to Formaat: JPG the image is shown in the slideshow.

But when I import a gedcom from my program (that has not changed or updated) the Formaat is back to empty and the image that I changed manually is not shown in the slideshow.

I will check my export program, maybe there I clicked something wrong. But I do this many times, never had a issue before.

SeniorSupportEngineer avatar Jan 11 '23 10:01 SeniorSupportEngineer

webtrees is now much more conformed to the GEDCOM standard. You should adjust your export program to set the format of your multimedia files.

The GEDCOM standard 5.5.1 says:

MULTIMEDIA_RECORD:= n @XREF:OBJE@ OBJE {1:1} +1 FILE <MULTIMEDIA_FILE_REFN> {1:M} +2 FORM <MULTIMEDIA_FORMAT> {1:1} +3 TYPE <SOURCE_MEDIA_TYPE> {0:1} +2 TITL <DESCRIPTIVE_TITLE> {0:1} +1 REFN <USER_REFERENCE_NUMBER> {0:M} +2 TYPE <USER_REFERENCE_TYPE> {0:1} +1 RIN <AUTOMATED_RECORD_ID> {0:1} +1 <<NOTE_STRUCTURE>> {0:M} +1 <<SOURCE_CITATION>> {0:M} +1 <<CHANGE_DATE>> {0:1}

You can see that the element FORM is mandatory "{1:1}" for each file. The format depends on the type of that file and is for example JPG or GIF or WAV or PDF, ...

hartenthaler avatar Jan 11 '23 12:01 hartenthaler

Oke, my program exports it at 5.5, before the upgrade of webtrees I did not have a issue.

And a upgrade to a new version of my program cost money :(

SeniorSupportEngineer avatar Jan 11 '23 14:01 SeniorSupportEngineer

If FORM is missing, webtrees will extract the extension from FILE.

This is almost certainly a bug in webtrees.

fisharebest avatar Jan 11 '23 14:01 fisharebest

Any update when it will be fixed?

SeniorSupportEngineer avatar Jun 14 '23 08:06 SeniorSupportEngineer

Currently i fixed it within app/MediaFile.php __construct as last do a check

//Some gedcom files don't have the FORM if ($this->multimedia_file_refn !== '' && $this->multimedia_format === '') { $this->multimedia_format = strtoupper(pathinfo($this->multimedia_file_refn, PATHINFO_EXTENSION)); }

SeniorSupportEngineer avatar Jun 15 '23 13:06 SeniorSupportEngineer