t2bot / matrix-media-repo

Highly configurable multi-domain media repository for Matrix.

Home Page:https://docs.t2bot.io/matrix-media-repo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SVG thumbnails not working in 1.3.1

surakin opened this issue · comments

Every one I tried generated a correct temporary png file but then the png preview generated in /tmp was always 0 bytes

level=error msg="Unexpected error locating media: png: error encoding thumbnail: png: invalid format: invalid image size: 0x0" allowRemote=true contentLength=0 contentType="" host=____ mediaId=______ method=GET queryString="height=128&width=128" remoteAddr="192.168.20.9:36694" requestId=REQ-0 requestedAnimated=true requestedHeight=128 requestedMethod=scale requestedWidth=128 resource=_______ server=______

Btw, I had to install librsvg2-bin, installing imagemagick alone was not enough (debian bookworm)

Please upgrade to 1.3.1.

I see the same problem in 1.3.1

Turning up your logs to debug and providing those snippets would be appreciated. This is supposed to be fixed.

Apparently it's working properly on latest master 🤔

Presuming duplicate of #460 or #459 then (or rather, the fixes they entail).