GIMP Plugin: Difference between revisions

From RawPedia
Jump to navigation Jump to search
No edit summary
(Updated)
Line 1: Line 1:
This article describes how to make it possible to have GIMP open raw images by using RawTherapee.
You can open raw images in GIMP using RawTherapee as a plugin.
 
It currently describes the method only for Linux. Windows and macOS users are invited to contribute.


= Requirements =
= Requirements =
* RawTherapee 5.2
* RawTherapee 5.3
* GIMP 2.9.5
* GIMP 2.9.6
* The <code>file-rawtherapee</code> plugin
* The RawTherapee executable must be found from the <code>$PATH</code> environment variable. This will be the case if you installed RawTherapee system-wide.
 
= Installation =
# Perhaps in the future the RawTherapee installer or even GIMP itself will contain the plugin. For now you must compile it yourself.
#* If you already have [[Linux#Clone_the_source|the source code]], go into the <code>tools/gimp-plugin</code> folder.
#* If you do not have the source code, just download these files: <code>[https://raw.githubusercontent.com/Beep6581/RawTherapee/dev/tools/gimp-plugin/file-formats.h file-formats.h]</code> and <code>[https://github.com/Beep6581/RawTherapee/raw/dev/tools/gimp-plugin/file-rawtherapee.c file-rawtherapee.c]</code>
# Compile the plugin: <code>gimptool-2.0 --build file-rawtherapee.c</code>
# Install the compiled plugin. To find GIMP's plugins folder run GIMP and look in Preferences > Folders > Plug-Ins. For example:
#* Install for the current user only: <code>cp file-rawtherapee ~/.config/GIMP/2.9/plug-ins</code>
#* Install for all users: <code>sudo cp file-rawtherapee /usr/lib/gimp/2.0/plug-ins</code>
# Let the plugin find RawTherapee by making sure that <code>rawtherapee</code> and <code>rawtherapee-cli</code> executables can be found on <code>$PATH</code>:
#* If you installed RawTherapee system-wide using a package manager, you're probably all set.
#* If you're running RawTherapee from some custom folder, e.g. <code>~/programs/rt</code> then you have two options:
## Either sudo-edit the <code>/etc/environment</code> file and add a line like this but with the correct path: <code>export PATH=$PATH:$HOME/programs/rt</code>
## Or symlink the executables into /usr/bin: <code>sudo ln -s ~/programs/rt/rawtherapee /usr/bin/rawtherapee && sudo ln -s ~/programs/rt/rawtherapee-cli /usr/bin/rawtherapee-cli</code>
# Lastly, setup GIMP. Go to Edit > Preferences > Image Import and make sure that "Raw Importer" is set to the file-rawtherapee plugin.
# Done.


= Usage =
= Usage =
Just open a raw file from GIMP. A RawTherapee editor window should open automatically, which you can use to tweak your raw file. When you close the window, the image gets imported into GIMP.
Just open a raw file from GIMP. A RawTherapee editor window should open automatically, which you can use to tweak your raw file. When you close the window, the image gets imported into GIMP.

Revision as of 23:39, 30 September 2017

You can open raw images in GIMP using RawTherapee as a plugin.

Requirements

  • RawTherapee 5.3
  • GIMP 2.9.6
  • The RawTherapee executable must be found from the $PATH environment variable. This will be the case if you installed RawTherapee system-wide.

Usage

Just open a raw file from GIMP. A RawTherapee editor window should open automatically, which you can use to tweak your raw file. When you close the window, the image gets imported into GIMP.