|
Hi community, I have a content type which has a plain image field like this: In my main I then use the Bolt $image = $content->getFieldValue('image');This returns an array (or might be an object) as follows (this is when it has been serialized as JSON); The thumbnail link is returned with a size of 400x400, without cropping, even though my thumbnail config says 320x240 and 1000x750 with cropping. Where does this 400x400 come from? I wondered if it can be configured on a per-field basis (which would be ideal) but I couldn't see anything in the Image field's documentation. |
Replies: 1 comment
|
I've answered by own question: It comes from here, so looks like it is always hard-coded to 400x400 with no cropping: core/src/Entity/Field/ImageField.php Line 67 in 161ca2f |
I've answered by own question:
It comes from here, so looks like it is always hard-coded to 400x400 with no cropping:
core/src/Entity/Field/ImageField.php
Line 67 in 161ca2f