View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005227 | mantisbt | feature | public | 2005-02-09 08:32 | 2011-06-21 03:43 |
Reporter | mgerben | Assigned To | |||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | new | Resolution | open | ||
Product Version | 0.19.2 | ||||
Summary | 0005227: Feature rqst: Automatic conversion of attached screendumps to Jpeg, PNG or GIF | ||||
Description | I have disabled uploading files to our Mantis because our users will use it to attach screendumps - in full BMP-format, so that's 2.2MB per image. | ||||
Tags | No tags attached. | ||||
Also see 0005015 rougly about the same thing. |
|
you mention you're using imagemagick. if you can attach your patch here, let's integrate it with config options (like other 3rd party / optional tools) and make it official. |
|
No problem. File is core/file_api.php At the bottom I added this function to remove the extension from a filename: --------------------Get basename given the filename or its full path.function file_get_basename( $p_filename ) {
} if ( $dot_found ) { ################################################### the end Then in function 'file_add' I add the following - the first IF statement is still part of the original code: if ( !file_type_check( $p_file_name ) ) { Convert all bmp files to png - here's the bit I added:$t_bmp2png = (strtolower( file_get_extension($p_file_name)) == "bmp" );
} #################################### rest of 'file add'. Notes:
Good luck with it. |
|