Replies: 1 comment 6 replies
-
Hey @twan-2022, In the Twill user interface, do you see the correct crops? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to display an image I added in my Twill cms but for some reason it keeps displaying a base64 string that shows a 1 by 1 px image.
In my product model I've got these mediaparams:
I then try to display it like this:
<img src="{{ $product->image('cover') }}" alt="{{ $product->title }}">
But this returns:
data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
Which is a white pixel image of 1 by 1.
I've also tried:
<img src="{{ $product->image('cover', 'default') }}" alt="{{ $product->title }}">
But this has the same result. How am I supposed to display media?
Beta Was this translation helpful? Give feedback.
All reactions