Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
libopenraw on Fedora 26
#1
I am running gimp 2.28 on Fedora 26 (kernel 4.13.5-200). I installed gimp through the dnf package manager. The installation included libopenraw-0.1.2-1 as a dependency. However, I cannot open PEF raw files from my Pentax camera. The gimp open dialog does not even see the .pef files. 

I can install the ufraw-gimp package and open the files. However, the ufraw interface actually gets in the way of some things I want to do. What makes this more curious for me, I was able to open the PEF files without installing ufraw-gimp on one or more previous versions of Fedora. Unfortunately, I did not record the details of the previous version because I didn't know I would need them.

I can open the PEF files in darktable and gwenview, but I assume they use different libraries. I see libraw1394 and LibRaw in my rpm listing. 

Is this a known problem? What can I do to troubleshoot the problem? I am willing to build from source for troubleshooting. Eventually, I would like to get back packages for convenience and consistency. 

Thanks!
Reply
#2
A bit more research. I wanted to see if anything else used libopenraw so I could test its ability to open PEF files:

[root@hermes ~]# dnf erase libopenraw
Dependencies resolved.
===========================================================================================
 Package                             Arch                           Version                                  Repository                        Size
===========================================================================================
Removing:
 libopenraw                          x86_64                         0.1.2-1.fc26                             @fedora                          540 k
Removing dependent packages:
 gegl                                x86_64                         0.2.0-32.fc26                            @fedora                          2.9 M
 gimp                                x86_64                         2:2.8.22-2.fc26                          @fedora                           63 M
Removing unused dependencies:
 babl                                x86_64                         0.1.30-1.fc26                            @updates                         683 k
 dcraw                               x86_64                         9.27.0-3.fc26                            @fedora                          527 k
 gimp-libs                           x86_64                         2:2.8.22-2.fc26                          @fedora                          5.4 M
 libspiro                            x86_64                         20150131-4.fc26                          @fedora                           69 k
 libwmf                              x86_64                         0.2.8.4-53.fc26                          @updates                         439 k
 suitesparse                         x86_64                         4.4.6-8.fc26                             @fedora                          3.4 M
Remove  9 Packages

Freed space: 77 M
Is this ok [y/N]: n
Operation aborted.



Using dcraw to test libopenraw:

dcraw -v 20170821P-00166.pef
Loading Pentax K10D image from 20170821P-00166.pef ...
Scaling with darkness 0, saturation 4095, and
multipliers 1.990120 1.000000 1.006117 1.000000
AHD interpolation...
Converting to sRGB colorspace...
Writing data to 20170821P-00166.ppm ...


So the problem appears to be with gimp or at least its interaction with libopenraw.
Reply
#3
First, you are unlikely to get a Fedora-based reply on this forum. There might be a Fedora user or maybe not.

I use Kubuntu 16.04 & bearing that in mind.

Quote:..However, I cannot open PEF raw files from my Pentax camera. The gimp open dialogue does not even see the .pef files.

Gimp 2.8.x does not support any form of from-camera-raw format. You will need a plugin. The recommended way, as I understand it, is preferably use the software that comes from the camera (maybe not possible with linux) or an application like RawTherapee or Darktable, save to some other format, open in Gimp

Quote:...I was able to open the PEF files without installing ufraw-gimp on one or more previous versions of Fedora.

Have to use the (slightly) updated nuFraw as an example. In theory the base application nufraw will open and sent an image to Gimp. AFAIK this fails. Uses a cross-compiled from Windoze plugin that no longer works. screenshot https://i.imgur.com/DxivTt8.jpg

However the gimp plugin does work, https://i.imgur.com/MU9fvdU.jpg but as expected you only get an 8 bit image.

The nufraw page is https://sourceforge.net/projects/nufraw/

Quote:I can open the PEF files in darktable and gwenview, but I assume they use different libraries. I see libraw1394 and LibRaw in my rpm listing.

Since Gimp on its own does not open the camera-raw, not sure where your experiments with libopenraw come in. However for nufraw that is not listed as a dependency. see: https://i.imgur.com/AjcYp9g.jpg

My advice. If you do not like (n)ufraw. Use Darktable, Save-As-some-format, Open in Gimp

An alternative is possibly the development version Gimp 2.9.x

If you go to https://discuss.pixls.us/t/community-bui...tware/2137 there is a portable, an appimage, that might work with Fedora. That will use (a suitably recent) Darktable / RawTherapee to open straight into Gimp as a 16 image. One file, if it works the benefit is you keep your existing Gimp 2.8.x

It is also a good place to ask your question, https://discuss.pixls.us I think there are Fedora users there.
Reply
#4
Actually, GIMP will open RAW files in various formats *IF* the build incorporates libopenraw. It is mentioned peripherally in the "Artist's Guide to GIMP" blog page "Building GIMP source" (https://www.artistsguidetogimp.com/?page_id=55). 

In addition, Fedora includes a ufraw-gimp package that allows GIMP to use ufraw as a front end to open RAW files. The problem with ufraw-gimp for me is that opening a RAW file first uses the ufraw interface before the image is opened in GIMP. If I want to automate a GIMP workflow with PythonFu, there is no procedure to open with ufraw. There is one for opening RAW files witih libopenraw, "file-raw-load". I assume ufraw-gimp is available in all Linux distributions.

I have just gone through the exercise of rebuilding the GIMP, GEGL, and BABL packages. GEGL requires libopenraw-devel,  But the GIMP build for Fedora 26 doesn't seem to incorporate it. I'm trying to figure why, or more correctly, how to achieve the incorporation.

I suppose my next step will be to ignore the Fedora packages and build GIMP from the git source tree. That will have to be another night. 
Reply


Forum Jump: