View Issue Details

IDProjectCategoryView StatusLast Update
0006252mantisbtfeaturepublic2006-09-12 00:52
Reporterasmaloney Assigned Tovboctor  
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionfixed 
Fixed in Version1.1.0a1 
Summary0006252: Control over display size of inlined images
Description

It would be tremendously useful to have images which are inlined limited in display size and then be able to click them to see the full image. This could be done by either creating a thumbnail [more efficient] or just scaling using width and height in the HTML [less efficient].

Thumbnails would be good for people who have slow connections [and might help with 0004881].

TagsNo tags attached.

Relationships

has duplicate 0007265 closedvboctor bug view page table sizing 

Activities

wpeenz

wpeenz

2006-05-10 21:22

reporter   ~0012816

2nd the feature request; our users often upload big images. After initially viewing the image you usually scroll past it to add notes without the need to look at the image.

vboctor

vboctor

2006-05-16 11:26

manager   ~0012848

Fix committed and will be part of Mantis 1.1. Two new configuration options were added $g_preview_max_height and $g_preview_max_width.

config_defaults_inc.php -> 1.301
/core/file_api.php -> 1.73

To apply a quick patch manually:

Replace:
PRINT "<br /><img src=\"file_download.php?file_id=$v_id&type=bug\" />";

With:
PRINT "<br />$t_href_start<img style="border:0; max-width:500; max-height:250;" src=\"file_download.php?file_id=$v_id&type=bug\" />$t_href_end";