Skip to content

Pulling low resolution images #6

@CodedNil

Description

@CodedNil

On bbc at least, where they use srcset for the images, it is picking up the 480p image rather than the highest resolution (or should it present all options in the struct?)

<picture>
<source srcset="https://ichef.bbci.co.uk/ace/standard/240/cpsprodpb/716d/live/8d31c740-3fbb-11f1-bd52-e755d604ece4.jpg.webp 240w, https://ichef.bbci.co.uk/ace/standard/320/cpsprodpb/716d/live/8d31c740-3fbb-11f1-bd52-e755d604ece4.jpg.webp 320w, https://ichef.bbci.co.uk/ace/standard/480/cpsprodpb/716d/live/8d31c740-3fbb-11f1-bd52-e755d604ece4.jpg.webp 480w, https://ichef.bbci.co.uk/ace/standard/624/cpsprodpb/716d/live/8d31c740-3fbb-11f1-bd52-e755d604ece4.jpg.webp 624w, https://ichef.bbci.co.uk/ace/standard/800/cpsprodpb/716d/live/8d31c740-3fbb-11f1-bd52-e755d604ece4.jpg.webp 800w, https://ichef.bbci.co.uk/ace/standard/976/cpsprodpb/716d/live/8d31c740-3fbb-11f1-bd52-e755d604ece4.jpg.webp 976w" type="image/webp">
<img alt="Stefan Kuiper wears a protective white suit and looks out of shot. Behind him are shelves of orchid plants. " loading="lazy" src="https://ichef.bbci.co.uk/ace/standard/2048/cpsprodpb/716d/live/8d31c740-3fbb-11f1-bd52-e755d604ece4.jpg" srcset="https://ichef.bbci.co.uk/ace/standard/240/cpsprodpb/716d/live/8d31c740-3fbb-11f1-bd52-e755d604ece4.jpg 240w, https://ichef.bbci.co.uk/ace/standard/320/cpsprodpb/716d/live/8d31c740-3fbb-11f1-bd52-e755d604ece4.jpg 320w, https://ichef.bbci.co.uk/ace/standard/480/cpsprodpb/716d/live/8d31c740-3fbb-11f1-bd52-e755d604ece4.jpg 480w, https://ichef.bbci.co.uk/ace/standard/624/cpsprodpb/716d/live/8d31c740-3fbb-11f1-bd52-e755d604ece4.jpg 624w, https://ichef.bbci.co.uk/ace/standard/800/cpsprodpb/716d/live/8d31c740-3fbb-11f1-bd52-e755d604ece4.jpg 800w, https://ichef.bbci.co.uk/ace/standard/976/cpsprodpb/716d/live/8d31c740-3fbb-11f1-bd52-e755d604ece4.jpg 976w" width="2048" height="1152.1800281293952" class="ssrcss-egie1y-Image edrdn950">
</picture>

rs-trafilatura returns this one: https://ichef.bbci.co.uk/news/480/cpsprodpb/716d/live/8d31c740-3fbb-11f1-bd52-e755d604ece4.jpg.webp
With no obvious way in the config to specify which we might want.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions