Hi, Your ideas make perfectly sense and a preference for globally switching compression on and off would be great. Currently preferences are unfortunately not available in MITK modules (only in the application framework). However, I see several benefits in moving this to the MITK module level and opened bug
http://bugs.mitk.org/show_bug.cgi?id=17974 for that. This is a mid-term solution though and will require some work. Currently, I can't think of another easy work-around except for changing the MITK sources themselves. Best, Sascha On 07/16/2014 09:56 PM, Pierre-Yves Menguy wrote: > Hello, > > I want to discuss about another request : how about allowing the user > to enable or disable image compression when saving them? An option in > the General preference page would be perfect in my opinion. I dived > just enough to find where the switch should be located, not enough to > find all necessary changes. > Source of my request : > mitkImageWriter.cpp, function WriteByITK, Line 223 : > //use compression if available > imageIO->UseCompressionOn(); > What I imagined : > // Check preferences if it has access to the Pref service ? Or > create an Get/Set-er in the class, thus making possible : > // imageIO->SetUseCompression( this->GetUseCompression() ); > > It takes a lot of time to compress my images, sometimes for little > gain (from 315 Mo to 297 Mo). Even when the compression is very > efficient (binary images, mostly : 150 Mo -> ~3 Mo), I would prefer to > use more disk space instead of CPU time (we have some computers with > low-end CPUs, but enough disk space). > > Would it be feasible easily, or would it require a lot of time/changes ? > I don't understand fully how all parts of the workbench are loaded, if > there is a 'strict' order, so I don't have any idea of how much work > that it represents. > > Also, is there anyone else interested ? > > > Regards, > > Pierre-Yves Menguy. ------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
