View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008852 | mantisbt | other | public | 2008-02-01 14:57 | 2008-11-29 09:44 |
Reporter | jmunro | Assigned To | |||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | new | Resolution | open | ||
Product Version | 1.1.1 | ||||
Summary | 0008852: 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. | ||||
Tags | attachments, icon | ||||
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. |
|
The normal attachment pictures they use are 16x16 256 colour gifs, so presumably you'd use the frame that was closest to that |
|
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. |
|