GIMP Plug-in: Script-Fu Batch NEF to JPEG

Posted:12/02/2014 8:08PM

GIMP Plug-in: Script-Fu Batch NEF to JPEG

Mike Mclain shares his GIMP Plug-in to easily perform Batch NEF to JPEG conversion with the UFRAW application

Preface:

Many years ago, (around circa 2009) back when I was a graduate Ph.D engineering student, I wrote a GIMP plug-in for my friend Jason (who was also a graduate Ph.D engineering student at the time) that would convert his digital cameras Nikon Electronic Format (NEF) images in to a more computer friendly Joint Photographic Experts Group (JPEG) image format.

Likewise, since I had never worked with the Nikon Electronic Format (NEF) image format nor had ever wrote a GIMP Script-Fu plug-in before, I figured this task would be a perfect opportunity to learn something new (and upon further reflection, the results obtained were, in fact, rather pleasing since I learned how GIMP plug-ins worked and created a rather nifty batch Nikon Electronic Format (NEF) image processing tool to share).

Note: screenshots presented, within this article, are done so under the fair use doctrine since their inclusion is strictly educational.

Installing:

To begin, in order to get this plug-in working you will need a copy of the GNU Image Manipulation Program (GIMP) 2.6 or later which you can obtain Here.

Next, in order to open the NEF encoded images within GIMP, you will need to install the Unidentified Flying Raw (UFRaw) Application from Here or from the UFRaw homepage found Here.

Afterwords, you will need to download a copy of my NEF to JPG GIMP plug-in from Here and then unzip it into your GIMP script folder.

Now, for those of you who do not know where the GIMP plug-in folder is located at. The technical way to find your GIMP plug-in folder is to, first launch the GIMP application, next click "Edit" in the application tool bar, and finally click the Preferences option.

Likewise, once the preferences application panel has loaded, you will then need to click the Folders option icon (located at the bottom of the panels scrollable list on the left) and upon expanding this option (via clicking) you will then need to select the Scripts option.

Conversely, upon doing this step, you should now see a list of directories displayed where all the script files are currently located at and, if you are using windows vista, the default user scripts location (as in only your windows account can run this script) will likely be something like "C:\Users\(vista user name)\.gimp-2.6\scripts".

Alternatively, as long as you are using a Windows platform, I believe most GIMP installs will (by default) place all the core scripts in the "C:\Program Files\GIMP-2.0\share\gimp\2.0\scripts" folder or in the "C:\Program Files (x86)\GIMP-2.0\share\gimp\2.0\scripts" folder respectively (depending upon whether the GIMP installation was a 32 bit or a 64 bit installation, noting you can locate this path using the steps provided above) and successfully installing this plug-in into the core scripts folder will allow the script to be run on all user accounts.

Note: be sure to exit your copy of GIMP before installing this script!

Now, after you have copied the Script-Fu Batch NEF to JPG plug-in into your script folder, you will need to launch GIMP again and upon loading GIMP you should now see a menu option called Scripts appear on the main menu


The New Menu Option.

The New Menu Option.

About the Plug-in:

Likewise, upon clicking the Scripts menu option, the NEF plugging, if installed correctly, will appear and upon clicking the NEF sub menu option, a list of 4 NEF plug-in options will appear (noting that each option is designed to fulfill a different NEF processing role depending upon your requirements).


The Script-Fu Batch NEF to JPG plug-in Options.

The Script-Fu Batch NEF to JPG plug-in Options.

Additionally: The single file NEF plug-ins are predominantly designed for testing or configurational purposes only, thus allowing you to get the outputted JPEG format how you like it prior to performing a batch conversion.

Overview of The Batch NEF to Advanced JPG option:

The Batch NEF to Advanced JPEG plug-in option looks like this...


The Batch NEF to Advanced JPG option.

The Batch NEF to Advanced JPG option.

and the options are explained as follows...

Comment allows you to embed a comment into the JPG file which is not inherently visible.

Once you have selected your desired conversion options, click the OK button and go make a sandwich or watch some TV (assuming you have a lot of images to convert) because loading and converting the NEF image, into the JPEG format, is a rather time consuming task that takes around 30 seconds on an midrange computer.

Note: during the execution of this script, GIMP might say this application is no longer responding; however, it really is working correctly, so just leave it alone and let it run. Again, the conversion process does take some time to complete and I highly recommend that you multiply the number of files you wish to convert by 30 seconds in order to estimate the time it will take to complete the conversion process.

Warning: Do not close GIMP during the conversion process unless you want to start the NEF conversion over from scratch. This plug-in does not currently support resuming a conversion upon stopping, although it is possible to manually remove the NEF files from the specified conversion folder in order to emulate this particular feature.

Overview of The Batch NEF to JPG option:

The Batch NEF to JPEG plug-in option looks like this...


The Batch NEF to JPG option.

The Batch NEF to JPG option.

and the options are explained as follows...

Once you have selected your desired conversion options, click the OK button and go make a sandwich or watch some TV (assuming you have a lot of images to convert) because loading and converting the NEF image, into the JPEG format, is a rather time consuming task that takes around 30 seconds on an midrange computer.

Note: during the execution of this script, GIMP might say this application is no longer responding; however, it really is working correctly, so just leave it alone and let it run. Again, the conversion process does take some time to complete and I highly recommend that you multiply the number of files you wish to convert by 30 seconds in order to estimate the time it will take to complete the conversion process.

Warning: Do not close GIMP during the conversion process unless you want to start the NEF conversion over from scratch. This plug-in does not currently support resuming a conversion upon stopping, although it is possible to manually remove the NEF files from the specified conversion folder in order to emulate this particular feature.

Overview of The NEF to Advanced JPG option:

The NEF to Advanced JPEG plug-in option looks like this...


The NEF to Advanced JPG option.

The NEF to Advanced JPG option.

and the options are explained as follows...

Comment allows you to embed a comment into the JPG file which is not inherently visible.

Once you have selected your desired conversion options, click the OK button and go make a sandwich or watch some TV because loading and converting a NEF image, into the JPEG format, is a rather time consuming task that takes around 30 seconds on an midrange computer.

Overview of The NEF to Advanced JPG option:

The NEF to Advanced JPEG plug-in option looks like this...


The NEF to JPG option.

The NEF to JPG option.

and the options are explained as follows...

Once you have selected your desired conversion options, click the OK button and go make a sandwich or watch some TV because loading and converting a NEF image, into the JPEG format, is a rather time consuming task that takes around 30 seconds on an midrange computer.

Concluding Remarks:

Overall, while this particular plug-in is currently (if not permanently stuck) in beta development; however, this plug-in seems to work reasonably well (as my friend did not voice any complaints upon his usage of it) and, in turn, I hope it works reasonably well for you.

Enjoy!

Comments:

comments powered by Disqus