https://bugs.kde.org/show_bug.cgi?id=463132

--- Comment #2 from Mirco Miranda <mirco...@gmail.com> ---
(In reply to Nicolas Fella from comment #1)
> Mirco, you worked a lot on RAW stuff, any idea what's going on here?

If I disable libkdcraw support and recompile Gwenview, the raw files are
displayed correctly. Gwenview treats RAW files differently from other images
assuming there is no plugin capable of reading them. There is probably a
logical conflict within the code due to the presence of the plugin.

The solutions can be the following:
1- disable KDCraw search from CMakeList of Gwenview (find_package(KF5KDcraw))
2- patch Gwenview to contemplate the presence of the plug-in

Solution 1 makes loading RAW files slow (plugin by default looks for maximum
quality). To speed up the loading I added a hack to the plugin: by setting the
quality to 1 in QImageReader, it does more or less what KDCraw does and makes
loading much faster (sa:
https://invent.kde.org/frameworks/kimageformats/-/blob/master/src/imageformats/raw_p.h).
 
So, the solution 2 could be 
a) check if raw plugin is installed: set quality on raw file loading and bypass
the KDRaw code 
or
b) use the current code an fix it to coexist with raw plugin (when installed).

I'm not familiar with Gwenview code, so I should do a deep debugging. Solution
a) could be solved with a few lines of code.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to