Skip to content

Larger pins having blurry images - replacement of size in URL is broken #118

Description

@kdambekalns

The "size replacement" of embedded pin images seems to be broken in

widgets/pinit_main.js

Lines 1567 to 1569 in 78f5658

backgroundImage: pin.images["237x"].url.replace(
/\/237x\//,
"/"+imgWidth+"/"

The URL I see in the generated source code contains 236x – so the replacement does not work as expected.

This seems to have been broken about mid-October 2023, judging from reports about blurry images I found on the internet (e.g. https://wordpress.org/support/topic/embed-pinterest-url-not-working-and-blurry-embedded-pin-images/) and a customer report.

Digging deeper the data returned from the endpoint does have a 237x entry, but that URL contains 236x.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions