How can i have screenshot detailed view in bug view page rather than on clicking attached file.
So that when i print a bug view page i should get the attached file also in the print.
screenshot view in bug view page
Moderators: Developer, Contributor
Re: screenshot view in bug view page
In config_inc.php (if you don't have it copy/rename config_inc.php.sample) add the lines
############################
# Bug Attachments Settings
############################
# Specifies the maximum size below which an attachment is previewed in the bug
# view pages. To disable this feature, set max size to 0.
# This feature applies to: bmp, png, gif, jpg
$g_preview_attachments_inline_max_size = 640;
I'm not sure what you'll need to set the size to as we don't use this option. I'm not sure if the size in is bytes or pixels. You'll have to play around with it some.
There are other settings in that section of config_defaults_inc.php (don't make changes to that file because it's overwritten when you upgrade Mantis). Copy any lines you want to change to config_inc.php and make your changes there. Config_inc.php settings override the ones in config_defaults_inc.php.
############################
# Bug Attachments Settings
############################
# Specifies the maximum size below which an attachment is previewed in the bug
# view pages. To disable this feature, set max size to 0.
# This feature applies to: bmp, png, gif, jpg
$g_preview_attachments_inline_max_size = 640;
I'm not sure what you'll need to set the size to as we don't use this option. I'm not sure if the size in is bytes or pixels. You'll have to play around with it some.
There are other settings in that section of config_defaults_inc.php (don't make changes to that file because it's overwritten when you upgrade Mantis). Copy any lines you want to change to config_inc.php and make your changes there. Config_inc.php settings override the ones in config_defaults_inc.php.
Re: screenshot view in bug view page
Set the maximum size in bytes.
If you want to control the max width / height, use:
If you want to control the max width / height, use:
Code: Select all
# Specifies the maximum width for the auto-preview feature. If no maximum width should be imposed
# then it should be set to 0.
$g_preview_max_width = 0;
# Specifies the maximum height for the auto-preview feature. If no maximum height should be imposed
# then it should be set to 0.
$g_preview_max_height = 250;
Migrate your MantisBT to the MantisHub Cloud