gathering / tgno-backend

The future backend for tg.no
2 stars 0 forks source link

Image in article body #19

Closed pr0xity closed 1 week ago

pr0xity commented 2 weeks ago

We need a way to show a image using the id of the image

Images from the article body looks like this <embed embedtype=\"image\" format=\"fullwidth\" id=\"7\" alt=\"TG-promo-6\"/>

pr0xity commented 2 weeks ago

Also need to have a look at the main image output in the json from https://dev.tg.no/api/v2/news/12/ Currently gives

    "main_image": {
        "url": "/media/images/20220113211909-302b6da0-me.2e16d0ba.fill-100x100.jpg",
        "full_url": "https://dev.tg.no/media/images/20220113211909-302b6da0-me.2e16d0ba.fill-100x100.jpg",
        "width": 100,
        "height": 100,
        "alt": "Gamer over shoulder picture"
    }

But we want a bigger image not 100x100...

[Editors note: https://github.com/gathering/tgno-backend/issues/21]

mfyll commented 1 week ago

Issue closed, this is already working 👍 💯 🥇 EDIT: And #25 also solves this in an even better way, good job @niccofyren