VILLASframework / web-backend

A go implementation of the backend for VILLASweb
https://fein-aachen.org/en/projects/villas-web/
GNU General Public License v3.0
1 stars 2 forks source link

Fails to upload SVG images #68

Closed stv0g closed 1 year ago

stv0g commented 3 years ago

Backend response:

{
  "message":"Error on DB Query or transaction: unable to decode image configuration: Dimensions of image file are not set: image: unknown format",
  "success":false
}
stv0g commented 3 years ago

In GitLab by @skolen on Jun 2, 2021, 09:13

mentioned in commit b99ac9982c5213b179d720091b0af5141863adea

stv0g commented 3 years ago

In GitLab by @skolen on Jun 2, 2021, 09:15

I added a fallback solution (see b99ac998 ) in case the config (size) of an image cannot be determined (e.g. for SVG).