Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image in article body #19

Open
pr0xity opened this issue Oct 4, 2024 · 1 comment
Open

Image in article body #19

pr0xity opened this issue Oct 4, 2024 · 1 comment
Milestone

Comments

@pr0xity
Copy link
Contributor

pr0xity commented Oct 4, 2024

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
Copy link
Contributor Author

pr0xity commented Oct 4, 2024

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//issues/21]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants