Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update previews_configuration.adoc #1296

Merged
merged 2 commits into from
Jun 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,20 @@ The example below adds the preview provider for `SGI` and `HEIC` images:

NOTE: You have to add all default providers if you do not want to disable them.

=== Maximum Image Dimensions

Images up to a certain size feature preview generation (thumbnails and media viewer renderings). Images above that size show a default icon.
The default value is defined in `config/config.sample.php` as `6016x4000` which is sufficient for 24MP landscape images.

The following example would change the limit so that 24MP portrait images also feature preview generation:

[source,php]
----
'preview_max_dimensions' => '6016x6016',
----

NOTE: The dimensions here limit the size of the original image (input to the preview generator). A setting below limits the size of the generated preview images (output). For more details see the xref:configuration/server/config_sample_php_parameters.adoc#define-the-maximum-dimensions-of-the-original-image-for-preview-generation[Define the maximum dimensions of the original image for preview generation].

=== Maximum Preview Size

There are two configuration options for setting the maximum size (in pixels) of a preview. These are `preview_max_x` which represents the x-axis and `preview_max_y` which represents the y-axis. The default value you can reference in `config/config.sample.php` is set to 2048.
Expand Down