Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 667 Bytes

cover-style.md

File metadata and controls

29 lines (20 loc) · 667 Bytes
description
Default: ImageStyle Object

Cover Style

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

Here is an example configuration:

{% code title="config/larupload.php" %}

<?php

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

{% endcode %}

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.