RSS/Atom feed Twitter
Site is read-only, email is disabled

ufraw/lensfun

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

7 of 7 messages available
Toggle history

Please log in to manage your subscriptions.

ufraw/lensfun Maurizio Loreti 10 Jul 08:35
  ufraw/lensfun Patrick Shanahan 10 Jul 12:31
   ufraw/lensfun Maurizio Loreti 10 Jul 13:30
    ufraw/lensfun Patrick Shanahan 10 Jul 15:25
     ufraw/lensfun Maurizio Loreti 10 Jul 16:55
      ufraw/lensfun Patrick Shanahan 10 Jul 17:39
  ufraw/lensfun Akkana Peck 10 Jul 17:13
Maurizio Loreti
2014-07-10 08:35:18 UTC (over 9 years ago)

ufraw/lensfun

Hello, list -
I am a satisfied GIMP user, and I am using the skl's "Mac on OS X" 2.8.10p2 release running under OS X 10.9.4.

I have problems with the "lensfun" corrections to my photo pictures; I am not sure if this is related to GIMP itself, or to the Mac port I am using.

What happens is:

if I open a Canon RAW image (a CR2 file), GIMP recalls the "ufraw" plugin window; in the third tab ("Lens Correction"), ufraw does not know my camera Canon 6D, nor my other camera Canon Powershot G15, nor my lens Canon 24-70 EF L II (note the "II"), nor other lenses I have. If I open a Canon JPG image, the plugin GIMP-Lensfun v0.2.3 (Filters -> Enhance -> GIMP-Lensfun, inserted I think in the distribution by skl) does not know the same cameras and objectives.

The lensfun correction files are shipped by skl in the directory /Applications/Gimp.app/Contents/Resources/share/lensfun/ , and are named compact-canon.xml and slr-canon.xml.

I have tried do download the last versions from the lensfun distribution, now hosted on sourceforge; under the URL http://sourceforge.net/p/lensfun/code/ci/master/tree/data/db/ there are three files canon-related, named compact-canon.xml, slr-canon.xml and mil-canon.xml. Just copying the first two files, or all three, on my GIMP tree, makes GIMP choke on the format of these files - both for RAW images and for JPG images; probably the xml file format has changed with the time.

QUESTION: how can I upgrade GIMP so that it will use modern and complete lensfun files?

(@_  |
//\  | Maurizio Loreti - Fisico in pensione, nonno felice di
V_/_ | due nipotini, vagabondo e fotografo a tempo perso...
Patrick Shanahan
2014-07-10 12:31:22 UTC (over 9 years ago)

ufraw/lensfun

* Maurizio Loreti [07-10-14 04:37]: [...]

I have problems with the "lensfun" corrections to my photo pictures; I am not sure if this is related to GIMP itself, or to the Mac port I am using.

What happens is:

if I open a Canon RAW image (a CR2 file), GIMP recalls the "ufraw" plugin window; in the third tab ("Lens Correction"), ufraw does not know my camera Canon 6D, nor my other camera Canon Powershot G15, nor my lens Canon 24-70 EF L II (note the "II"), nor other lenses I have. If I open a Canon JPG image, the plugin GIMP-Lensfun v0.2.3 (Filters -> Enhance -> GIMP-Lensfun, inserted I think in the distribution by skl) does not know the same cameras and objectives.

The lensfun correction files are shipped by skl in the directory /Applications/Gimp.app/Contents/Resources/share/lensfun/ , and are named compact-canon.xml and slr-canon.xml.

I have tried do download the last versions from the lensfun distribution, now hosted on sourceforge; under the URL http://sourceforge.net/p/lensfun/code/ci/master/tree/data/db/ there are three files canon-related, named compact-canon.xml, slr-canon.xml and mil-canon.xml. Just copying the first two files, or all three, on my GIMP tree, makes GIMP choke on the format of these files - both for RAW images and for JPG images; probably the xml file format has changed with the time.

QUESTION: how can I upgrade GIMP so that it will use modern and complete lensfun files?

You don't have to, just replace the "compact-canon.xml" and/or "slr-canon.xml" files with the one that contains the information you need. Or just edit the current files adding the relevant information. I use darktable rather than gimp for raw processing and had to do that when I upgraded my D200 to D7100. And there is still missing lenses in the lensfun database.

(paka)Patrick Shanahan       Plainfield, Indiana, USA          @ptilopteri
http://en.opensuse.org    openSUSE Community Member    facebook/ptilopteri
http://wahoo.no-ip.org        Photo Album: http://wahoo.no-ip.org/gallery2
Registered Linux User #207535                    @ http://linuxcounter.net
Maurizio Loreti
2014-07-10 13:30:22 UTC (over 9 years ago)

ufraw/lensfun

On Thu, Jul 10, 2014 at 2:31 PM, Patrick Shanahan wrote:

You don't have to, just replace the "compact-canon.xml" and/or "slr-canon.xml" files with the one that contains the information you need.

*As I said*, replacing these files don't work; their xml format is different.

If I replace the files, there will be no diagnostic in the terminal where I start GIMP; but there will be NO Canon cameras and NO Canon objectives at all available for ufraw into GIMP.

Copying the same new files in the ufraw tree makes ufraw barf with the diagnostic "/opt/local/share/lensfun/compact-canon.xml:22:61: Unknown element !" and several others similar. Yes, I could "edit the current files adding the relevant information", but if the lensfun file format has changed this 1) requires actions from the ufraw and the GIMP team; and 2) for me, merging the information from the new files into the old ones, if they obey a different syntax, could be a nightmare.

(@_  |
//\  | Maurizio Loreti - Retired physicist, happy grandfather
V_/_ | of two grandsons, wanderer and amateur photographer...
Patrick Shanahan
2014-07-10 15:25:59 UTC (over 9 years ago)

ufraw/lensfun

* Maurizio Loreti [07-10-14 09:32]:

On Thu, Jul 10, 2014 at 2:31 PM, Patrick Shanahan wrote:

You don't have to, just replace the "compact-canon.xml" and/or "slr-canon.xml" files with the one that contains the information you need.

*As I said*, replacing these files don't work; their xml format is different.

If I replace the files, there will be no diagnostic in the terminal where I start GIMP; but there will be NO Canon cameras and NO Canon objectives at all available for ufraw into GIMP.

Copying the same new files in the ufraw tree makes ufraw barf with the diagnostic "/opt/local/share/lensfun/compact-canon.xml:22:61: Unknown element !" and several others similar. Yes, I could "edit the current files adding the relevant information", but if the lensfun file format has changed this 1) requires actions from the ufraw and the GIMP team; and 2) for me, merging the information from the new files into the old ones, if they obey a different syntax, could be a nightmare.

err, xml = xml, but editing by hand should be "no big thing".

AND, the "barf" you see is because you have not copied xml files. afaik, there is no "element !" in any of the lensfun xml files. I just grepped my entire lensfun install and there is no "html" appearing in *any* xml file.

*As I said*

(paka)Patrick Shanahan       Plainfield, Indiana, USA          @ptilopteri
http://en.opensuse.org    openSUSE Community Member    facebook/ptilopteri
http://wahoo.no-ip.org        Photo Album: http://wahoo.no-ip.org/gallery2
Registered Linux User #207535                    @ http://linuxcounter.net
Maurizio Loreti
2014-07-10 16:55:51 UTC (over 9 years ago)

ufraw/lensfun

On Thu, Jul 10, 2014 at 5:25 PM, Patrick Shanahan wrote:

AND, the "barf" you see is because you have not copied xml files. afaik, there is no "element !" in any of the lensfun xml files. I just grepped my entire lensfun install and there is no "html" appearing in *any* xml file.

About that you are right; I got the files using a "wget http://URL/slr-canon.xml" and wget got all the data of the code frame. My fault.

HOWEVER, downloading the files correctly, GIMP and ufraw both "barf" again; the first line reads and is not accepted: the old files begin with a plain "". See, when you say

err, xml = xm

you are not right: the _format_ of the xml file has changed, indeed, as I said. But the change now is straightforward.

(@_  |
//\  | Maurizio Loreti - Fisico in pensione, nonno felice di
V_/_ | due nipotini, vagabondo e fotografo a tempo perso...
Akkana Peck
2014-07-10 17:13:18 UTC (over 9 years ago)

ufraw/lensfun

Maurizio Loreti writes:

I have tried do download the last versions from the lensfun distribution, now hosted on sourceforge; under the URL http://sourceforge.net/p/lensfun/code/ci/master/tree/data/db/ there are three files canon-related, named compact-canon.xml, slr-canon.xml and mil-canon.xml.

Patrick Shanahan writes:

AND, the "barf" you see is because you have not copied xml files. afaik, there is no "element !" in any of the lensfun xml files. I just grepped my entire lensfun install and there is no "html" appearing in *any* xml file.

Could this be because of Sourceforge's charming habit of giving you an HTML download page when you click on Download for a file, instead of taking you straight to the file you asked for? I've downloaded HTML files more than once, because I chose "Save link as" instead of remembering that with sourceforge, you have to click, view the download page and only then can you "Save as". Always check files after you download them to make sure you got the file you thought you were getting.

...Akkana

Patrick Shanahan
2014-07-10 17:39:11 UTC (over 9 years ago)

ufraw/lensfun

* Maurizio Loreti [07-10-14 12:58]:

On Thu, Jul 10, 2014 at 5:25 PM, Patrick Shanahan wrote:

AND, the "barf" you see is because you have not copied xml files. afaik, there is no "element !" in any of the lensfun xml files. I just grepped my entire lensfun install and there is no "html" appearing in *any* xml file.

About that you are right; I got the files using a "wget http://URL/slr-canon.xml" and wget got all the data of the code frame. My fault.

HOWEVER, downloading the files correctly, GIMP and ufraw both "barf" again; the first line reads and is not accepted: the old files begin with a plain "". See, when you say

err, xml = xm

you are not right: the _format_ of the xml file has changed, indeed, as I said. But the change now is straightforward.

That is possible, but in this case I believe not.

Why don't you edit the version line and make it what you believe gimp/ufraw desire and try again? You do want it to work???

And a grep for "version" of my lensfun-data-0.2.8-9.1.noarch install reveals nill. I believe 2.8 is the latest from sf and 2.8-9.1 is the latest on openSUSE which I run.

(paka)Patrick Shanahan       Plainfield, Indiana, USA          @ptilopteri
http://en.opensuse.org    openSUSE Community Member    facebook/ptilopteri
http://wahoo.no-ip.org        Photo Album: http://wahoo.no-ip.org/gallery2
Registered Linux User #207535                    @ http://linuxcounter.net