screenshot view in bug view page

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
minnu
Posts: 18
Joined: 16 Oct 2007, 10:45

screenshot view in bug view page

Post by minnu »

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.
vzw614
Posts: 143
Joined: 15 May 2008, 14:59

Re: screenshot view in bug view page

Post by vzw614 »

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.
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Re: screenshot view in bug view page

Post by vboctor »

Set the maximum size in bytes.

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
Post Reply