View Issue Details

IDProjectCategoryView StatusLast Update
0008852mantisbtotherpublic2008-11-29 09:44
Reporterjmunro Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status newResolutionopen 
Product Version1.1.1 
Summary0008852: icon attachments to show icon
Description

If you attach a .ico file to a bug, it would be nice if Mantis could show the icon rather than the default file.gif

I realize .ico files are a Windows file format and afaik don't display in web browsers, so some sort of php ico-to-gif converter might need to be used/created.

Tagsattachments, icon

Activities

ryandesign

ryandesign

2008-02-01 15:44

reporter   ~0016911

I built a PHP .ico viewer a couple years ago. It used ImageMagick to do the conversion. One tricky bit is that an ICO can contain multiple frames, so you have to decide which one to display, or display them all. My script did the latter. I'll clean it up and attach it here. Maybe it'll help someone implement this feature for Mantis.

jmunro

jmunro

2008-02-01 15:47

reporter   ~0016912

The normal attachment pictures they use are 16x16 256 colour gifs, so presumably you'd use the frame that was closest to that

vboctor

vboctor

2008-02-03 21:48

manager   ~0016931

I agree that it would be nice to do that. However, I think the proper way to do that is to have some form of extensibility for file previews. Such extensibility should provide a way where a plugin can be added to handle certain file type, e.g. flash, icons, etc.