Open rcantin-w opened 2 months ago
It seems Prismic's Migration API strips images' crops of their contentUrlSuffix
value, which is what is needed to render the correct ratio of image.
Should look like:
'32:15': {
contentUrlSuffix: '&rect=0,136,482,226&w=3200&h=1500',
width: 3200,
height: 1500
}
Now looks like:
'32:15': { contentUrlSuffix: '', width: 3200, height: 1500 }
This is probably something to report to Prismic.
From Prismic:
Ok thanks for sharing, helps a lot, I reached out to the team, these url params should still be there. Not sure why they got stripped.
I imagine this will ultimately require another migration, but don't think we can do anything until we hear more from Prismic.
@davidpmccormick Have you heard anything back from Prismic yet? Worth chasing them if not?
https://prismic.atlassian.net/servicedesk/customer/portal/1/PCS-5263
Unfortunately the link in that response (https://prismic.atlassian.net/browse/BT-107) doesn't resolve anywhere useful. I have asked that they point us somewhere where we can keep up-to-date with the status of the bug.
@davidpmccormick did we ever get that bug link? Wondering if we want to use a FE catchup to brainstorm ideas for this, lmk if useful!
Still nothing. I have chased again.
Currently, we do not have an estimated time for when this issue will be resolved. We’re also reaching out to Atlassian support to understand why you can’t see the open bug. We apologize for any inconvenience these issues may cause.
We'd noticed images dimensions were a bit off following the content migration, for example in search they should all be the same format but aren't anymore:
Then e2e tests flagged that the expected URL for an image wasn't right:
It seems the
rect
,w
andh
is missing, which is probably in line with the first issue. We should figure out why this is happening and fix it.