DiscussionsIssue archiveWebsite:Tracker

Archived issue #0028609

Bugtracker - extend size of images to be inlined

Open CASCADEWebsite:Trackerclosed4 public notes

Search issues

Description

Mantis automatically inlines attached images if they fit into specific size limits. Unfortunately, the current limit is too light - so that most images are not inlined and have to be downloaded to be seen.

It is suggested to increase size limit (which should be configurable according to description) to at least 1.6 MiB.

Steps to reproduce

See attachments for #0028559 for example.

Public activity

4 archived notes

Participants are labeled by their role within this record.

01Commenter 1
I've set up the following configuration options:

/**
 * Specifies the maximum size (in bytes) below which an attachment is
 * previewed in the bug view pages.
 * To disable the previewing of attachments, set max size to 0.
 * @global int $g_preview_attachments_inline_max_size
 */
$g_preview_attachments_inline_max_size = 2 * 1024 * 1024;

/**
 * Specifies the maximum width for the auto-preview feature. If no maximum width should be imposed
 * then it should be set to 0.
 * @global int $g_preview_max_width
 */
$g_preview_max_width = 600;

/**
 * Specifies the maximum height for the auto-preview feature. If no maximum height should be imposed
 * then it should be set to 0.
 * @global int $g_preview_max_height
 */
$g_preview_max_height = 0;


Is it OK for you now? If not, please suggest exact figures.
02Author
> $g_preview_max_width = 600;
I would extend the width to 800 pixels.
03Commenter 3
Ok, done.
04Author
The problem has been fixed - so I suppose the bug can be closed.