# Cover Style

The `cover-style` field allows you to configure the style of the automatically generated cover image.&#x20;

Here is an example configuration:

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

```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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mostafaznv.gitbook.io/larupload/advanced-usage/configuration/cover-style.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
