I want to create images through jsonapi with the focal point set
Expand the doTransform function
Example of a body with the focal point set
{
"data": {
"type": "media--image",
"attributes": {
"name": "Image without focal point"
},
"relationships": {
"field_media_image": {
"data": {
"type": "file--file",
"id": "xxxx",
"meta": {
"focal_point": {
"x": 700,
"y": 400
}
}
}
}
}
}
}
Active
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
No activities found.