support SVG files with missing width & height
the long journey can be read at the end.
please support svg images that do not specify a width and height. currently these are not displayed properly - this leads to the fact that you can not change the image anymore - as the context-menu is only available over the displayed image area.....
i have attached two test svg image files
the test.svg
one leads to the described behavior.
the test_with_size.svg
one works as expected.
the only difference is that the second one specifies a height and width.
original finding story:
today i tried to add a svg image as image to a new CardBook contact.
the 'attach from file' dialog allows this to do. but this breaks the image-view.
if i now open this contact the area where the image normally is is just gray -
and also the context-menu is not working anymore.
i searched for a textual part from this contact in all files in my profile folder and found the svg image this way (it is a company logo) at
/home/stefan/.thunderbird/myprofile/cardbook/XXX-XXX/mediacache/daf4eaa5-XXX-XXXX-XXXX-d001c02fcaf1..photo.svg
i closed Thunderbird and overwrite this file with a png image (but leave the exact same svg file name ;-) )
opened Thunderbird again - and yeah - this worked - the image is shown and the context menu also worked again.