Cover Style

Default: ImageStyle Object

The cover-style field allows you to configure the style of the automatically generated cover image.

Here is an example configuration:

config/larupload.php
<?php

return [
    'cover-style' => ImageStyle::make(
        name: 'cover',
        width: 500,
        height: 500,
        mode: LaruploadMediaStyle::CROP
    )
];

This configuration specifies that the cover image should have a width and height of 500 pixels. The LaruploadMediaStyle::CROP constant indicates that the image should be center cropped to fit the specified dimensions.

Last updated