Picture

Class: Code16\Sharp\Show\Fields\SharpShowPictureField

Configuration

The picture field has no configuration.

Transformer

You must value this field with an URL of the image.

If you are using Sharp built-in Upoad solution, be sure to use the SharpUploadModelThumbnailUrlTransformer:

function find($id): array
{
    return $this
        ->setCustomTransformer(
            "picture", 
            new SharpUploadModelThumbnailUrlTransformer(600)
        )
        ->transform([...]);
}
1
2
3
4
5
6
7
8
9

See related documentation of this transformer here.

Last Updated:
Contributors: antoine