You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi so sometimes you have a situation where you have an image carousel as an example and the content is managed remotely by your CMS/CDN.
You don't always know what the width or height is going to be of the asset. So you can't set something explicit.
In that scenario it seems I would set full width.
Unpic will then make a request to the CDN that can be huge still. When actually I want the maximum to be X when using full width so lets say I knew the max the logo was going to be was 250px height, I want to request 0x250.
How can I do that with unpic or is there a better best practice here?
Also how can I pass additional props to the CDN, for example I use storyblok and they have the fit in parameter which could also be useful here.
Is it possible to pass a custom transform url like object to the Astro image component or react component? Or is it only possible to turn on/off cdn.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi so sometimes you have a situation where you have an image carousel as an example and the content is managed remotely by your CMS/CDN.
You don't always know what the width or height is going to be of the asset. So you can't set something explicit.
In that scenario it seems I would set full width.
Unpic will then make a request to the CDN that can be huge still. When actually I want the maximum to be X when using full width so lets say I knew the max the logo was going to be was 250px height, I want to request 0x250.
How can I do that with unpic or is there a better best practice here?
Also how can I pass additional props to the CDN, for example I use storyblok and they have the fit in parameter which could also be useful here.
Is it possible to pass a custom transform url like object to the Astro image component or react component? Or is it only possible to turn on/off cdn.
Beta Was this translation helpful? Give feedback.
All reactions