<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://rawpedia.rawtherapee.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Thanatomanic</id>
	<title>RawPedia - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://rawpedia.rawtherapee.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Thanatomanic"/>
	<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/Special:Contributions/Thanatomanic"/>
	<updated>2026-05-31T19:25:13Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.38.4</generator>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Linux&amp;diff=9783</id>
		<title>Linux</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Linux&amp;diff=9783"/>
		<updated>2022-11-05T09:19:26Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Added CentOS 8 update&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Linux&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This page details instructions for compiling RawTherapee on '''GNU/Linux''' systems. There are also instructions for compiling on [[Windows]] and [[macOS]].&lt;br /&gt;
&lt;br /&gt;
When in doubt, [[IRC|join us on IRC]] or in the [[Forum]] and ask a human!&lt;br /&gt;
&lt;br /&gt;
== Dependencies ==&lt;br /&gt;
&lt;br /&gt;
To compile RawTherapee your system will need a set of tools and code libraries from other programs. These are called dependencies, and here is a list of them for the latest version of RawTherapee:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+ Build-time dependencies for RawTherapee:&lt;br /&gt;
! Package      !! Version            !! URL&lt;br /&gt;
|-&lt;br /&gt;
| CMake        || cmake&amp;gt;=3.5         || https://cmake.org/&lt;br /&gt;
|-&lt;br /&gt;
| EXIV2        || exiv2&amp;gt;=0.19        || http://www.exiv2.org/&lt;br /&gt;
|-&lt;br /&gt;
| EXPAT        || expat&amp;gt;=2.1.0       || https://libexpat.github.io/&lt;br /&gt;
|-&lt;br /&gt;
| FFTW3        || fftw&amp;gt;=3.2.2        || http://fftw.org/&lt;br /&gt;
|-&lt;br /&gt;
| GCC          || gcc&amp;gt;=4.9           || https://gcc.gnu.org/&lt;br /&gt;
|-&lt;br /&gt;
| GLIB2        || glib-2.0&amp;gt;=2.24     || https://www.gtk.org/&lt;br /&gt;
|-&lt;br /&gt;
| GLIBMM       || glibmm-2.4&amp;gt;=2.24   || https://www.gtkmm.org/&lt;br /&gt;
|-&lt;br /&gt;
| GTK+         || gtk+-3.16 &amp;lt; 3.24.0 || https://www.gtk.org/&lt;br /&gt;
|-&lt;br /&gt;
| GTKMM        || gtkmm-3.16         || https://www.gtkmm.org/&lt;br /&gt;
|-&lt;br /&gt;
| JPEG         || libjpeg&amp;gt;=6b        || https://libjpeg-turbo.org/ https://jpegclub.org/ https://www.ijg.org/&lt;br /&gt;
|-&lt;br /&gt;
| LCMS2        || lcms&amp;gt;=2.6          || https://www.littlecms.com/&lt;br /&gt;
|-&lt;br /&gt;
| LENSFUN      || lensfun&amp;gt;=0.2       || https://github.com/lensfun/lensfun&lt;br /&gt;
|-&lt;br /&gt;
| LIBCANBERRA  || libcanberra&amp;gt;=0.29  || http://0pointer.de/lennart/projects/libcanberra/ (Linux only)&lt;br /&gt;
|-&lt;br /&gt;
| LIBIPTCDATA  || libiptcdata&amp;gt;=1.0.2 || http://libiptcdata.sourceforge.net&lt;br /&gt;
|-&lt;br /&gt;
| PNG          || libpng&amp;gt;=1.2.44     || http://www.libpng.org/&lt;br /&gt;
|-&lt;br /&gt;
| librsvg      || librsvg&amp;gt;=2.40      || https://github.com/GNOME/librsvg&lt;br /&gt;
|-&lt;br /&gt;
| SIGC         || sigc++-2.0         || https://github.com/libsigcplusplus/libsigcplusplus&lt;br /&gt;
|-&lt;br /&gt;
| TIFF         || libtiff&amp;gt;=4.0.4     || http://libtiff.org/&lt;br /&gt;
|-&lt;br /&gt;
| ZLIB         || zlib&amp;gt;=1.2.3        || http://www.zlib.net/&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
In order to install all these dependencies, you will need to open a console and paste the code from the appropriate section into the console.&lt;br /&gt;
&lt;br /&gt;
The code snippets below list dependencies for the latest RawTherapee code which requires GTK3. We dropped support for GTK2 with release &amp;quot;5.0-r1-gtk2&amp;quot; in February 2017. If you use a modern distribution, just copy and paste the code snippets as they are. If you're on an old distribution without the required GTK3 support, then refer to the archived [[Linux_GTK2|GTK2]] article, then checkout and compile the obsolete &amp;lt;code&amp;gt;5.0-r1-gtk2&amp;lt;/code&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
=== Arch/Manjaro ===&lt;br /&gt;
&lt;br /&gt;
Current versions of Arch and Manjaro work well out of the box. Refer to the [[Linux_GTK2|GTK2]] article if compiling on a version older than 17.1.12.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo pacman -S cmake ninja exiv2 expat fftw glib2 glibmm gtk3 gtkmm3 lcms2 lensfun libcanberra libiptcdata libjpeg-turbo libpng librsvg libsigc++ libtiff zlib&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For Manjaro, you may need to additionally install the &amp;lt;code&amp;gt;pkg-config&amp;lt;/code&amp;gt; package.&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Compilation|Compilation]].&lt;br /&gt;
&lt;br /&gt;
=== CentOS ===&lt;br /&gt;
&lt;br /&gt;
CentOS 8 and newer, lack the &amp;lt;code&amp;gt;libiptcdata&amp;lt;/code&amp;gt; library. Manual compilation is required - any suggestions on how to proceed are welcome.&lt;br /&gt;
&lt;br /&gt;
CentOS 7 has very outdated packages and requires extra steps to install a recent GCC, git, lensfun and libtiff. The steps below were verified to work in CentOS 7.4.1708, but proceed at your own risk.&lt;br /&gt;
&lt;br /&gt;
GCC &amp;gt;=4.9.3:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo yum update&lt;br /&gt;
sudo yum install cmake git&lt;br /&gt;
sudo yum install centos-release-scl&lt;br /&gt;
sudo yum install devtoolset-7-gcc*&lt;br /&gt;
scl enable devtoolset-7 bash&lt;br /&gt;
source /opt/rh/devtoolset-7/enable&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
git &amp;gt;=2.7:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
lensfun:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm&lt;br /&gt;
sudo rpm -ivh epel-release-latest-7.noarch.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
libtiff &amp;gt;=4.0.4:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo yum install ninja-build&lt;br /&gt;
mkdir ~/programs &amp;amp;&amp;amp; cd ~/programs&lt;br /&gt;
wget http://download.osgeo.org/libtiff/tiff-4.0.9.tar.gz&lt;br /&gt;
tar zxvf tiff-4.0.9.tar.gz&lt;br /&gt;
mkdir tiff-4.0.9/libtiff-build &amp;amp;&amp;amp; cd tiff-4.0.9/libtiff-build&lt;br /&gt;
cmake -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/libtiff-4.0.9 -DCMAKE_INSTALL_PREFIX=/usr -G Ninja ..&lt;br /&gt;
ninja-build&lt;br /&gt;
sudo ninja-build install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the other dependencies:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo yum install curl expat-devel fftw-devel gtk3-devel gtkmm30-devel lcms2-devel lensfun-devel libcanberra-devel libiptcdata-devel libjpeg-turbo-devel libpng-devel librsvg2-devel zlib-devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Symlink libatomic:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo ln -s /usr/lib64/libatomic.so.1 /usr/lib64/libatomic.so&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As you proceed to the next step - compilation - you will need to edit the &amp;lt;code&amp;gt;build-rawtherapee&amp;lt;/code&amp;gt; script and add these three lines to the CMake section near the end of the file, for example after the &amp;quot;-DWITH_BENCHMARK&amp;quot; line before the &amp;quot;$HOME&amp;quot; line:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;    -DTIFF_INCLUDE_DIR=&amp;quot;$HOME/programs/tiff-4.0.9/libtiff&amp;quot; \&lt;br /&gt;
    -DTIFF_LIBRARY=&amp;quot;$HOME/programs/tiff-4.0.9/libtiff-build/libtiff/libtiff.so&amp;quot; \&lt;br /&gt;
    -DCMAKE_CXX_FLAGS=&amp;quot;-Wno-deprecated -Wno-parentheses&amp;quot; \&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Compilation|Compilation]].&lt;br /&gt;
&lt;br /&gt;
=== Debian/Ubuntu/Mint/elementary OS ===&lt;br /&gt;
&lt;br /&gt;
Current versions of these distributions work well out of the box (Debian &amp;gt;=9, Ubuntu &amp;gt;=18.04 LTS, Linux Mint &amp;gt;=19, elementary OS &amp;gt;=5). Instructions below assume a fully updated system. Additional packages may need to be installed on your particular system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo apt install git build-essential cmake curl pkg-config libgtk-3-dev libgtkmm-3.0-dev liblensfun-dev librsvg2-dev liblcms2-dev libfftw3-dev libiptcdata0-dev libtiff5-dev libcanberra-gtk3-dev&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Ubuntu 16.04 LTS (Xenial) ====&lt;br /&gt;
RawTherapee 5.8 (release) is the latest version supported for Xenial-based distributions. See [https://github.com/Beep6581/RawTherapee/issues/5943 here] for details. When compiling, follow the manual steps and use git to checkout the &amp;lt;code&amp;gt;5.8&amp;lt;/code&amp;gt; branch.&lt;br /&gt;
&lt;br /&gt;
==== Ubuntu &amp;lt;=14.04 LTS (Trusty), Debian &amp;lt;=8 (Jessie) ====&lt;br /&gt;
Refer to the [[Linux_GTK2|GTK2]] article if compiling on earlier versions of Ubuntu. The GTK3 version of RawTherapee is unsupported in these distributions.&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Compilation|Compilation]].&lt;br /&gt;
&lt;br /&gt;
=== Fedora ===&lt;br /&gt;
&lt;br /&gt;
Current versions of Fedora work well out of the box. Instructions below assume a fully updated system. Additional packages may need to be installed on your particular system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo dnf install git make cmake curl gcc gcc-c++ gtk3-devel gtkmm30-devel lensfun-devel librsvg2-devel lcms2-devel fftw-devel expat-devel libiptcdata-devel libtiff-devel libjpeg-turbo-devel libcanberra-devel libatomic&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Fedora &amp;lt;=23 ====&lt;br /&gt;
RawTherapee 5.6 (release) is the latest version supported for this distribution because of a higher CMake version requirement (see [https://github.com/Beep6581/RawTherapee/issues/5302 here]). When compiling, follow the manual steps and use git to checkout the &amp;lt;code&amp;gt;5.6&amp;lt;/code&amp;gt; branch.&lt;br /&gt;
&lt;br /&gt;
==== Fedora 22 ====&lt;br /&gt;
In addition to the above notices and requirements, an updated version of &amp;lt;code&amp;gt;libtiff&amp;lt;/code&amp;gt; needs to be compiled manually.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo yum install ninja-build&lt;br /&gt;
cd ~&lt;br /&gt;
wget http://download.osgeo.org/libtiff/tiff-4.0.9.tar.gz&lt;br /&gt;
tar zxvf tiff-4.0.9.tar.gz&lt;br /&gt;
cd tiff-4.0.9.tar.gz&lt;br /&gt;
mkdir build &amp;amp;&amp;amp; cd build&lt;br /&gt;
cmake -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/libtiff-4.0.9 -DCMAKE_INSTALL_PREFIX=/usr -G Ninja ..&lt;br /&gt;
ninja-build&lt;br /&gt;
sudo ninja-build install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Fedora &amp;lt;=21 ====&lt;br /&gt;
Refer to the [[Linux_GTK2|GTK2]] article if compiling on earlier versions of Fedora. The GTK3 version of RawTherapee is unsupported in these distributions.&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Compilation|Compilation]].&lt;br /&gt;
&lt;br /&gt;
=== Gentoo/Sabayon ===&lt;br /&gt;
&lt;br /&gt;
Sabayon users should use the same dependencies as for Gentoo, but instead of &amp;lt;code&amp;gt;sudo emerge -uva&amp;lt;/code&amp;gt; use &amp;lt;code&amp;gt;sudo equo install sys-devel/gcc dev-vcs/git&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo emerge -uva dev-cpp/gtkmm:3.0 dev-libs/expat dev-util/cmake media-gfx/exiv2 media-libs/lcms media-libs/lensfun media-libs/libcanberra media-libs/libiptcdata media-libs/libjpeg-turbo media-libs/libpng gnome-base/librsvg media-libs/tiff net-misc/curl sci-libs/fftw sys-libs/zlib x11-libs/gtk+:3&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Compilation|Compilation]].&lt;br /&gt;
&lt;br /&gt;
=== openSUSE ===&lt;br /&gt;
&lt;br /&gt;
openSUSE Leap 15 and Tumbleweed should work well out of the box. Serious compilation issues can be expected with other versions. Refer to the [[Linux_GTK2|GTK2]] article if compiling on a version older than 42.1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo zypper install git cmake gcc gcc-c++ gtk3-devel gtkmm3-devel liblcms2-devel fftw3-devel libiptcdata-devel librsvg-devel libtiff-devel libjpeg8-devel libcanberra-gtk3-devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For openSUSE 15.1 and newer, the &amp;lt;code&amp;gt;lensfun&amp;lt;/code&amp;gt; library needs to be installed as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo zypper install lensfun-data liblensfun1&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For openSUSE Tumbleweed, the package is slightly different:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo zypper install lensfun-devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For other versions of openSUSE &amp;lt;code&amp;gt;lensfun&amp;lt;/code&amp;gt; has to be installed manually:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;wget https://sourceforge.net/projects/lensfun/files/0.3.2/lensfun-0.3.2.tar.gz&lt;br /&gt;
tar xvf lensfun-0.3.2.tar.gz&lt;br /&gt;
cd lensfun-0.3.2.tar.gz&lt;br /&gt;
mkdir build&lt;br /&gt;
cd build&lt;br /&gt;
cmake ../&lt;br /&gt;
make&lt;br /&gt;
sudo make install&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Compilation|Compilation]].&lt;br /&gt;
&lt;br /&gt;
== Compilation ==&lt;br /&gt;
&lt;br /&gt;
There are two general ways you can compile RawTherapee: either use the [[#The_Automatic_Way|automatic]] Bash script which compiles RawTherapee for you (recommended), or do so [[#The_Manual_Way|manually]].&lt;br /&gt;
&lt;br /&gt;
=== The Automatic Way ===&lt;br /&gt;
&lt;br /&gt;
This is the recommended way of compiling RawTherapee as it is fast, simple and fool-proof. It relies on a Bash script which downloads the latest RawTherapee source code and compiles it in a way which is optimized for your CPU. The compiled builds are ready for use. The script does not check for build-time dependencies, so be sure to read the [[#Dependencies|Dependencies]] section before using the script. The compiled builds are standalone, meaning that you can keep several versions of RawTherapee at the same time simply by renaming the build folders so that creating a new build does not overwrite the previous build, which happens by default.&lt;br /&gt;
&lt;br /&gt;
Run the script as a normal user, not as root!&lt;br /&gt;
&lt;br /&gt;
Open a terminal, get the script, make it executable, and run it:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;cd ~&lt;br /&gt;
wget https://raw.githubusercontent.com/Beep6581/RawTherapee/dev/tools/build-rawtherapee -O build-rawtherapee&lt;br /&gt;
chmod +x build-rawtherapee&lt;br /&gt;
./build-rawtherapee&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If everything goes well, the script will terminate with the message, &amp;quot;To run rawtherapee type: ...&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
To update RawTherapee if you previously compiled it using this script, just re-run the script. That's it.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;build-rawtherapee&amp;lt;/code&amp;gt; script is included in RawTherapee's source code. Since running the script updates the source code, after you compiled your first build you can delete the script you downloaded manually above using wget, and instead use &amp;lt;code&amp;gt;~/programs/code-rawtherapee/tools/build-rawtherapee&amp;lt;/code&amp;gt; which will always update itself.&lt;br /&gt;
&lt;br /&gt;
The script compiles the current branch, which by default is &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; where most of the development happens. To compile a different branch, check it out using standard git commands before running the script. Read more about RawTherapee's branches below in the [[Linux#Choose_a_branch|Choose a Branch]] section.&lt;br /&gt;
&lt;br /&gt;
For more information, see &amp;lt;code&amp;gt;./build-rawtherapee --help&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You have finished, RawTherapee is ready for use. You can skip the &amp;quot;Manual Way&amp;quot; section.&lt;br /&gt;
&lt;br /&gt;
=== The Manual Way ===&lt;br /&gt;
&lt;br /&gt;
The recommended way of compiling RawTherapee is by using the automatic script - see [[#The_Automatic_Way|Compilation: The Automatic Way]]. If you want to learn how to compile manually, read on.&lt;br /&gt;
&lt;br /&gt;
In order to keep your &amp;quot;home&amp;quot; folder clean when manually compiling multiple programs (i.e. when not using your distribution's package manager) and for this manual compilation tutorial to maintain compatibility with the automatic compilation script, you will create the folder &amp;lt;code&amp;gt;~/programs/&amp;lt;/code&amp;gt; which will contain all RawTherapee-related source code in the &amp;lt;code&amp;gt;~/programs/code-rawtherapee&amp;lt;/code&amp;gt; folder, and the compiled build in the &amp;lt;code&amp;gt;~/programs/rawtherapee&amp;lt;/code&amp;gt; folder. You can use the same scheme when compiling other programs.&lt;br /&gt;
&lt;br /&gt;
==== Clone the source ====&lt;br /&gt;
&lt;br /&gt;
First, you need to clone RawTherapee's source code repository. Bring up your console and run this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;mkdir -p ~/programs&lt;br /&gt;
git clone https://github.com/Beep6581/RawTherapee ~/programs/code-rawtherapee&lt;br /&gt;
cd ~/programs/code-rawtherapee&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Choose a branch ====&lt;br /&gt;
&lt;br /&gt;
* Features are developed on their own feature branches.&lt;br /&gt;
* Development happens in the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch. Feature branches are merged into the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch when they're ready. The &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch is unstable.&lt;br /&gt;
* Releases are tagged in the &amp;lt;code&amp;gt;releases&amp;lt;/code&amp;gt; branch.&lt;br /&gt;
&lt;br /&gt;
Checkout the latest tag if you want the most stable code. To see all available tags, type:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;git tag&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Checkout the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch or some other feature branch if you want to test the latest bleeding-edge code. To see all available branches, type:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;git branch -a&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Checking out is done via the &amp;quot;git checkout&amp;quot; command. To checkout a tag or a branch, type:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;git checkout &amp;lt;tag or branch&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
RawTherapee uses GTK+ for the user interface and requires GTK+ version 3.16 or newer. If your system does not support version 3.16 or newer then you must checkout the &amp;lt;code&amp;gt;5.0-r1-gtk2&amp;lt;/code&amp;gt; tag. Our GTK2 support has officially ended on 2 February 2017 - refer to the archived [[Linux_GTK2|GTK2]] article, and update your system.&lt;br /&gt;
&lt;br /&gt;
Compiling old versions of RawTherapee will fail on a modern system, as you will be missing the old dependencies.&lt;br /&gt;
&lt;br /&gt;
==== Compile RawTherapee ====&lt;br /&gt;
&lt;br /&gt;
Now you will make an out-of-source compilation of RawTherapee, it will be built into the &amp;lt;code&amp;gt;~/programs/code-rawtherapee/build/release&amp;lt;/code&amp;gt; folder, and then you will move this folder to &amp;lt;code&amp;gt;~/programs/rawtherapee&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== CMake =====&lt;br /&gt;
&lt;br /&gt;
There are a few compilation settings you need to be aware of, you will pass these to CMake using the &amp;lt;code&amp;gt;-D&amp;lt;/code&amp;gt; option as described below:&lt;br /&gt;
&lt;br /&gt;
; CMAKE_BUILD_TYPE&lt;br /&gt;
: One of: &amp;lt;code&amp;gt;release&amp;lt;/code&amp;gt; (default), &amp;lt;code&amp;gt;relwithdebinfo&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;debug&amp;lt;/code&amp;gt;.&lt;br /&gt;
: This controls whether the build will favor faster execution time or more verbose debugging output.&lt;br /&gt;
: The &amp;quot;debug&amp;quot; and &amp;quot;relwithdebinfo&amp;quot; builds will let you [[How_to_write_useful_bug_reports|get a useful stack-backtrace]] if RawTherapee crashes while running through GDB which you can then submit to us so we can find the problem and fix it. The &amp;quot;debug&amp;quot; build is the slowest but generates the most detailed information. The &amp;quot;relwithdebinfo&amp;quot; build is almost as fast as a &amp;quot;release&amp;quot; build and generates often sufficient information, though not as detailed as a &amp;quot;debug&amp;quot; build. The &amp;quot;release&amp;quot; build will not provide any useful information when it crashes, but does contain many speed optimizations resulting in a program that works several times faster than the &amp;quot;debug&amp;quot; build would. For normal use, make a &amp;quot;release&amp;quot; or &amp;quot;relwithdebinfo&amp;quot; build. If you find a reproducible bug, then make a &amp;quot;debug&amp;quot; build and send us a stack-backtrace (or fix it yourself and send us the patch!). We prefer stack backtraces from debug builds than from relwithdebinfo ones.&lt;br /&gt;
:: To make a &amp;quot;release&amp;quot; type build, set: &amp;lt;code&amp;gt;-DCMAKE_BUILD_TYPE=&amp;quot;release&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; USE_OLD_CXX_ABI&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
: When compiling a program, one must use the same conventions as those used by the libraries which that program relies upon, otherwise compilation (linking) will fail. Generally one does not need to concern oneself with this, but we are now at a time when GCC4 is being phased out by GCC5, each by default using a convention incompatible with the other, and so this issue is relevant. If the libraries on your system have been compiled using GCC5, they probably use a standard called C++11. This means that your RawTherapee build must use the same standard, which is the case by default. However, if despite using GCC5 your libraries were built using the older C++03 standard, then RawTherapee must be set to use the same, and this is when you would set &amp;quot;USE_OLD_CXX_ABI&amp;quot; to &amp;quot;ON&amp;quot;.&lt;br /&gt;
:: To enable USE_OLD_CXX_ABI, set: &amp;lt;code&amp;gt;-DUSE_OLD_CXX_ABI=&amp;quot;ON&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; CACHE_NAME_SUFFIX&lt;br /&gt;
: The CACHE_NAME_SUFFIX options sets the suffix of the cache and config folder names the compiled RawTherapee build will use. See the [[File Paths]] article for an explanation of what those are.&lt;br /&gt;
: For stable releases (if you checkout the &amp;quot;releases&amp;quot; branch) use &amp;lt;code&amp;gt;-DCACHE_NAME_SUFFIX=&amp;quot;&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
: For development builds (if you checkout the &amp;quot;dev&amp;quot; branch or any branch other than &amp;quot;releases&amp;quot;) use &amp;lt;code&amp;gt;-DCACHE_NAME_SUFFIX=&amp;quot;5-dev&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; PROC_TARGET_NUMBER&lt;br /&gt;
: From &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; (default) to &amp;lt;code&amp;gt;9&amp;lt;/code&amp;gt;.&lt;br /&gt;
: The PROC_TARGET_NUMBER option sets which CPU type to optimize for.&lt;br /&gt;
: If building for yourself, use &amp;quot;2&amp;quot;. It means &amp;quot;native&amp;quot;, so the optimizations will be automatically detected for your CPU and RawTherapee will perform as fast as possible on your CPU. It might not run at all on older or other CPU architectures.&lt;br /&gt;
: If building for distribution (for other people), use &amp;quot;1&amp;quot;. It means &amp;quot;generic&amp;quot;, so only optimizations supported by most CPUs will be used, meaning the build can be downloaded and used by anyone, though it won't benefit from the best optimizations possible for the user's CPU.&lt;br /&gt;
: For more info, see the file &amp;quot;ProcessorTargets.cmake&amp;quot; in the cloned repository.&lt;br /&gt;
:: To make a build using &amp;quot;native&amp;quot; optimizations, set: &amp;lt;code&amp;gt;-DPROC_TARGET_NUMBER=&amp;quot;2&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; BUILD_BUNDLE&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt;.&lt;br /&gt;
: Forced to &amp;quot;ON&amp;quot; for Windows and macOS. Optional in Linux where it is &amp;quot;OFF&amp;quot; by default.&lt;br /&gt;
: If set to ON, the program will be built into the &amp;lt;code&amp;gt;DATADIR&amp;lt;/code&amp;gt; folder, otherwise it will be installed relative to &amp;lt;code&amp;gt;CMAKE_INSTALL_PREFIX&amp;lt;/code&amp;gt; which would typically be system-wide.&lt;br /&gt;
&lt;br /&gt;
; BUNDLE_BASE_INSTALL_DIR&lt;br /&gt;
: Use an absolute path.&lt;br /&gt;
: The program will be built into this folder.&lt;br /&gt;
: For example, set it to: &amp;lt;code&amp;gt;-DBUNDLE_BASE_INSTALL_DIR=&amp;quot;$HOME/programs/rawtherapee&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
: If it is not set, the default is to use &amp;lt;code&amp;gt;${CMAKE_BINARY_DIR}/${CMAKE_BUILD_TYPE}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; LENSFUNDBDIR&lt;br /&gt;
: Unset by default.&lt;br /&gt;
: The &amp;lt;code&amp;gt;LENSFUNDBDIR&amp;lt;/code&amp;gt; option permits to locate the lensfun database in the specified directory. It can be unset, absolute or relative.&lt;br /&gt;
: When unset, Lensfun uses its own logic to find the database. This is the recommended option if you have Lensfun installed system-wide and want to use it.&lt;br /&gt;
: You can set it to a relative or absolute path if you want to use a custom lensfun database.&lt;br /&gt;
: If building a bundle, it is relative to the bundle's root folder, otherwise it is relative to &amp;lt;code&amp;gt;DATADIR&amp;lt;/code&amp;gt;, i.e. &amp;lt;code&amp;gt;${CMAKE_INSTALL_PREFIX}/share/rawtherapee&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; OPTION_OMP&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; (default) or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt;.&lt;br /&gt;
: Build with OpenMP support when enabled, which enables multithreading and makes RawTherapee much faster.&lt;br /&gt;
&lt;br /&gt;
; WITH_LTO&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
: Build with link-time optimizations when enabled, which may make RawTherapee run a little faster.&lt;br /&gt;
&lt;br /&gt;
; WITH_PROF&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
: For debugging purposes. Generate extra code to write profile information suitable for the analysis program gprof.&lt;br /&gt;
&lt;br /&gt;
; WITH_SAN&lt;br /&gt;
: &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default) or one of various other options.&lt;br /&gt;
: For debugging purposes. Allows enabling various sanitizers to help detect program issues.&lt;br /&gt;
: See GCC manual's [https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html Program Instrumentation Options] chapter for more information.&lt;br /&gt;
&lt;br /&gt;
; WITH_SYSTEM_KLT&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
: Build using system KLT library when ON, otherwise use KLT files bundled with RawTherapee.&lt;br /&gt;
: The Kanade–Lucas–Tomasi (KLT) feature tracker is used by the [[Lens/Geometry#Distortion_Correction|Auto Distortion Correction]] tool.&lt;br /&gt;
&lt;br /&gt;
; WITH_BENCHMARK&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
: Build with timing functions enabled to benchmark performance.&lt;br /&gt;
&lt;br /&gt;
; ENABLE_TCMALLOC&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
: In some cases the operating system has trouble handling memory allocation and deallocation required by RawTherapee (see [https://github.com/Beep6581/RawTherapee/issues/5459 here] for more information). Linking against [https://gperftools.github.io/gperftools/tcmalloc.html TCMalloc] may alleviate these problems. This library may not be available on all platforms or distributions.&lt;br /&gt;
&lt;br /&gt;
===== Make =====&lt;br /&gt;
&lt;br /&gt;
Find out how many threads your CPU supports. This only influences the compilation speed, it has no influence over how fast the compiled RawTherapee build runs. To find out how many threads your CPU supports, run this in a terminal:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;nproc --all&amp;lt;/pre&amp;gt;&lt;br /&gt;
It will return a number. Use this number for the &amp;lt;code&amp;gt;--jobs&amp;lt;/code&amp;gt; parameter below.&lt;br /&gt;
&lt;br /&gt;
Compile:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;cd ~/programs/code-rawtherapee&lt;br /&gt;
mkdir build&lt;br /&gt;
cd build&lt;br /&gt;
&lt;br /&gt;
cmake \&lt;br /&gt;
    -DCMAKE_BUILD_TYPE=&amp;quot;release&amp;quot;  \&lt;br /&gt;
    -DCACHE_NAME_SUFFIX=&amp;quot;5-dev&amp;quot; \&lt;br /&gt;
    -DPROC_TARGET_NUMBER=&amp;quot;2&amp;quot; \&lt;br /&gt;
    -DBUILD_BUNDLE=&amp;quot;ON&amp;quot; \&lt;br /&gt;
    -DBUNDLE_BASE_INSTALL_DIR=&amp;quot;$HOME/programs/rawtherapee&amp;quot; \&lt;br /&gt;
    -DOPTION_OMP=&amp;quot;ON&amp;quot; \&lt;br /&gt;
    -DWITH_LTO=&amp;quot;OFF&amp;quot; \&lt;br /&gt;
    -DWITH_PROF=&amp;quot;OFF&amp;quot; \&lt;br /&gt;
    -DWITH_SAN=&amp;quot;OFF&amp;quot; \&lt;br /&gt;
    -DWITH_SYSTEM_KLT=&amp;quot;OFF&amp;quot; \&lt;br /&gt;
    ..&lt;br /&gt;
&lt;br /&gt;
make --jobs=4&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Run RawTherapee ====&lt;br /&gt;
&lt;br /&gt;
To run RawTherapee:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;~/programs/rawtherapee/rawtherapee&amp;lt;/pre&amp;gt;&lt;br /&gt;
Or to run the CLI version:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;~/programs/rawtherapee/rawtherapee-cli&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The source code repository is in &amp;lt;code&amp;gt;~/programs/code-rawtherapee&amp;lt;/code&amp;gt; and the compiled program is in &amp;lt;code&amp;gt;~/programs/rawtherapee&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can safely delete &amp;lt;code&amp;gt;~/programs/code-rawtherapee&amp;lt;/code&amp;gt; if you so wish. The compiled program will still work, but then you will have to redo all the above steps if you want to update. Rather, leave the repository intact so that you can do the next step in a week or a month's time when you want to update.&lt;br /&gt;
&lt;br /&gt;
==== Update RawTherapee ====&lt;br /&gt;
&lt;br /&gt;
Every time you want to update RawTherapee to the latest code available, just do the following:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;cd ~/programs/code-rawtherapee&lt;br /&gt;
git pull&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then repeat the [[#Make|Make]] step above.&lt;br /&gt;
&lt;br /&gt;
When updating, you can re-use the &amp;lt;code&amp;gt;build&amp;lt;/code&amp;gt; folder from last time to avoid having to recompile things which have not changed, to make the whole process faster. CMake should automatically detect changes. However, there are situations when compilation may fail when re-using an old &amp;lt;code&amp;gt;build&amp;lt;/code&amp;gt; folder - typically that might happen when hopping between very different branches. If that happens, just delete the &amp;lt;code&amp;gt;build&amp;lt;/code&amp;gt; folder, then proceed with the steps in the &amp;quot;Make&amp;quot; section.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Linux&amp;diff=9782</id>
		<title>Linux</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Linux&amp;diff=9782"/>
		<updated>2022-11-05T07:54:10Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Minor change&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Linux&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This page details instructions for compiling RawTherapee on '''GNU/Linux''' systems. There are also instructions for compiling on [[Windows]] and [[macOS]].&lt;br /&gt;
&lt;br /&gt;
When in doubt, [[IRC|join us on IRC]] or in the [[Forum]] and ask a human!&lt;br /&gt;
&lt;br /&gt;
== Dependencies ==&lt;br /&gt;
&lt;br /&gt;
To compile RawTherapee your system will need a set of tools and code libraries from other programs. These are called dependencies, and here is a list of them for the latest version of RawTherapee:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+ Build-time dependencies for RawTherapee:&lt;br /&gt;
! Package      !! Version            !! URL&lt;br /&gt;
|-&lt;br /&gt;
| CMake        || cmake&amp;gt;=3.5         || https://cmake.org/&lt;br /&gt;
|-&lt;br /&gt;
| EXIV2        || exiv2&amp;gt;=0.19        || http://www.exiv2.org/&lt;br /&gt;
|-&lt;br /&gt;
| EXPAT        || expat&amp;gt;=2.1.0       || https://libexpat.github.io/&lt;br /&gt;
|-&lt;br /&gt;
| FFTW3        || fftw&amp;gt;=3.2.2        || http://fftw.org/&lt;br /&gt;
|-&lt;br /&gt;
| GCC          || gcc&amp;gt;=4.9           || https://gcc.gnu.org/&lt;br /&gt;
|-&lt;br /&gt;
| GLIB2        || glib-2.0&amp;gt;=2.24     || https://www.gtk.org/&lt;br /&gt;
|-&lt;br /&gt;
| GLIBMM       || glibmm-2.4&amp;gt;=2.24   || https://www.gtkmm.org/&lt;br /&gt;
|-&lt;br /&gt;
| GTK+         || gtk+-3.16 &amp;lt; 3.24.0 || https://www.gtk.org/&lt;br /&gt;
|-&lt;br /&gt;
| GTKMM        || gtkmm-3.16         || https://www.gtkmm.org/&lt;br /&gt;
|-&lt;br /&gt;
| JPEG         || libjpeg&amp;gt;=6b        || https://libjpeg-turbo.org/ https://jpegclub.org/ https://www.ijg.org/&lt;br /&gt;
|-&lt;br /&gt;
| LCMS2        || lcms&amp;gt;=2.6          || https://www.littlecms.com/&lt;br /&gt;
|-&lt;br /&gt;
| LENSFUN      || lensfun&amp;gt;=0.2       || https://github.com/lensfun/lensfun&lt;br /&gt;
|-&lt;br /&gt;
| LIBCANBERRA  || libcanberra&amp;gt;=0.29  || http://0pointer.de/lennart/projects/libcanberra/ (Linux only)&lt;br /&gt;
|-&lt;br /&gt;
| LIBIPTCDATA  || libiptcdata&amp;gt;=1.0.2 || http://libiptcdata.sourceforge.net&lt;br /&gt;
|-&lt;br /&gt;
| PNG          || libpng&amp;gt;=1.2.44     || http://www.libpng.org/&lt;br /&gt;
|-&lt;br /&gt;
| librsvg      || librsvg&amp;gt;=2.40      || https://github.com/GNOME/librsvg&lt;br /&gt;
|-&lt;br /&gt;
| SIGC         || sigc++-2.0         || https://github.com/libsigcplusplus/libsigcplusplus&lt;br /&gt;
|-&lt;br /&gt;
| TIFF         || libtiff&amp;gt;=4.0.4     || http://libtiff.org/&lt;br /&gt;
|-&lt;br /&gt;
| ZLIB         || zlib&amp;gt;=1.2.3        || http://www.zlib.net/&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
In order to install all these dependencies, you will need to open a console and paste the code from the appropriate section into the console.&lt;br /&gt;
&lt;br /&gt;
The code snippets below list dependencies for the latest RawTherapee code which requires GTK3. We dropped support for GTK2 with release &amp;quot;5.0-r1-gtk2&amp;quot; in February 2017. If you use a modern distribution, just copy and paste the code snippets as they are. If you're on an old distribution without the required GTK3 support, then refer to the archived [[Linux_GTK2|GTK2]] article, then checkout and compile the obsolete &amp;lt;code&amp;gt;5.0-r1-gtk2&amp;lt;/code&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
=== Arch/Manjaro ===&lt;br /&gt;
&lt;br /&gt;
Current versions of Arch and Manjaro work well out of the box. Refer to the [[Linux_GTK2|GTK2]] article if compiling on a version older than 17.1.12.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo pacman -S cmake ninja exiv2 expat fftw glib2 glibmm gtk3 gtkmm3 lcms2 lensfun libcanberra libiptcdata libjpeg-turbo libpng librsvg libsigc++ libtiff zlib&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For Manjaro, you may need to additionally install the &amp;lt;code&amp;gt;pkg-config&amp;lt;/code&amp;gt; package.&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Compilation|Compilation]].&lt;br /&gt;
&lt;br /&gt;
=== CentOS ===&lt;br /&gt;
&lt;br /&gt;
CentOS 7 has very outdated packages and requires extra steps to install a recent GCC, git, lensfun and libtiff. The steps below were verified to work in CentOS 7.4.1708, but proceed at your own risk.&lt;br /&gt;
&lt;br /&gt;
GCC &amp;gt;=4.9.3:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo yum update&lt;br /&gt;
sudo yum install cmake git&lt;br /&gt;
sudo yum install centos-release-scl&lt;br /&gt;
sudo yum install devtoolset-7-gcc*&lt;br /&gt;
scl enable devtoolset-7 bash&lt;br /&gt;
source /opt/rh/devtoolset-7/enable&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
git &amp;gt;=2.7:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
lensfun:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm&lt;br /&gt;
sudo rpm -ivh epel-release-latest-7.noarch.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
libtiff &amp;gt;=4.0.4:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo yum install ninja-build&lt;br /&gt;
mkdir ~/programs &amp;amp;&amp;amp; cd ~/programs&lt;br /&gt;
wget http://download.osgeo.org/libtiff/tiff-4.0.9.tar.gz&lt;br /&gt;
tar zxvf tiff-4.0.9.tar.gz&lt;br /&gt;
mkdir tiff-4.0.9/libtiff-build &amp;amp;&amp;amp; cd tiff-4.0.9/libtiff-build&lt;br /&gt;
cmake -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/libtiff-4.0.9 -DCMAKE_INSTALL_PREFIX=/usr -G Ninja ..&lt;br /&gt;
ninja-build&lt;br /&gt;
sudo ninja-build install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the other dependencies:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo yum install curl expat-devel fftw-devel gtk3-devel gtkmm30-devel lcms2-devel lensfun-devel libcanberra-devel libiptcdata-devel libjpeg-turbo-devel libpng-devel librsvg2-devel zlib-devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Symlink libatomic:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo ln -s /usr/lib64/libatomic.so.1 /usr/lib64/libatomic.so&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As you proceed to the next step - compilation - you will need to edit the &amp;lt;code&amp;gt;build-rawtherapee&amp;lt;/code&amp;gt; script and add these three lines to the CMake section near the end of the file, for example after the &amp;quot;-DWITH_BENCHMARK&amp;quot; line before the &amp;quot;$HOME&amp;quot; line:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;    -DTIFF_INCLUDE_DIR=&amp;quot;$HOME/programs/tiff-4.0.9/libtiff&amp;quot; \&lt;br /&gt;
    -DTIFF_LIBRARY=&amp;quot;$HOME/programs/tiff-4.0.9/libtiff-build/libtiff/libtiff.so&amp;quot; \&lt;br /&gt;
    -DCMAKE_CXX_FLAGS=&amp;quot;-Wno-deprecated -Wno-parentheses&amp;quot; \&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Compilation|Compilation]].&lt;br /&gt;
&lt;br /&gt;
=== Debian/Ubuntu/Mint/elementary OS ===&lt;br /&gt;
&lt;br /&gt;
Current versions of these distributions work well out of the box (Debian &amp;gt;=9, Ubuntu &amp;gt;=18.04 LTS, Linux Mint &amp;gt;=19, elementary OS &amp;gt;=5). Instructions below assume a fully updated system. Additional packages may need to be installed on your particular system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo apt install git build-essential cmake curl pkg-config libgtk-3-dev libgtkmm-3.0-dev liblensfun-dev librsvg2-dev liblcms2-dev libfftw3-dev libiptcdata0-dev libtiff5-dev libcanberra-gtk3-dev&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Ubuntu 16.04 LTS (Xenial) ====&lt;br /&gt;
RawTherapee 5.8 (release) is the latest version supported for Xenial-based distributions. See [https://github.com/Beep6581/RawTherapee/issues/5943 here] for details. When compiling, follow the manual steps and use git to checkout the &amp;lt;code&amp;gt;5.8&amp;lt;/code&amp;gt; branch.&lt;br /&gt;
&lt;br /&gt;
==== Ubuntu &amp;lt;=14.04 LTS (Trusty), Debian &amp;lt;=8 (Jessie) ====&lt;br /&gt;
Refer to the [[Linux_GTK2|GTK2]] article if compiling on earlier versions of Ubuntu. The GTK3 version of RawTherapee is unsupported in these distributions.&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Compilation|Compilation]].&lt;br /&gt;
&lt;br /&gt;
=== Fedora ===&lt;br /&gt;
&lt;br /&gt;
Current versions of Fedora work well out of the box. Instructions below assume a fully updated system. Additional packages may need to be installed on your particular system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo dnf install git make cmake curl gcc gcc-c++ gtk3-devel gtkmm30-devel lensfun-devel librsvg2-devel lcms2-devel fftw-devel expat-devel libiptcdata-devel libtiff-devel libjpeg-turbo-devel libcanberra-devel libatomic&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Fedora &amp;lt;=23 ====&lt;br /&gt;
RawTherapee 5.6 (release) is the latest version supported for this distribution because of a higher CMake version requirement (see [https://github.com/Beep6581/RawTherapee/issues/5302 here]). When compiling, follow the manual steps and use git to checkout the &amp;lt;code&amp;gt;5.6&amp;lt;/code&amp;gt; branch.&lt;br /&gt;
&lt;br /&gt;
==== Fedora 22 ====&lt;br /&gt;
In addition to the above notices and requirements, an updated version of &amp;lt;code&amp;gt;libtiff&amp;lt;/code&amp;gt; needs to be compiled manually.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo yum install ninja-build&lt;br /&gt;
cd ~&lt;br /&gt;
wget http://download.osgeo.org/libtiff/tiff-4.0.9.tar.gz&lt;br /&gt;
tar zxvf tiff-4.0.9.tar.gz&lt;br /&gt;
cd tiff-4.0.9.tar.gz&lt;br /&gt;
mkdir build &amp;amp;&amp;amp; cd build&lt;br /&gt;
cmake -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/libtiff-4.0.9 -DCMAKE_INSTALL_PREFIX=/usr -G Ninja ..&lt;br /&gt;
ninja-build&lt;br /&gt;
sudo ninja-build install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Fedora &amp;lt;=21 ====&lt;br /&gt;
Refer to the [[Linux_GTK2|GTK2]] article if compiling on earlier versions of Fedora. The GTK3 version of RawTherapee is unsupported in these distributions.&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Compilation|Compilation]].&lt;br /&gt;
&lt;br /&gt;
=== Gentoo/Sabayon ===&lt;br /&gt;
&lt;br /&gt;
Sabayon users should use the same dependencies as for Gentoo, but instead of &amp;lt;code&amp;gt;sudo emerge -uva&amp;lt;/code&amp;gt; use &amp;lt;code&amp;gt;sudo equo install sys-devel/gcc dev-vcs/git&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo emerge -uva dev-cpp/gtkmm:3.0 dev-libs/expat dev-util/cmake media-gfx/exiv2 media-libs/lcms media-libs/lensfun media-libs/libcanberra media-libs/libiptcdata media-libs/libjpeg-turbo media-libs/libpng gnome-base/librsvg media-libs/tiff net-misc/curl sci-libs/fftw sys-libs/zlib x11-libs/gtk+:3&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Compilation|Compilation]].&lt;br /&gt;
&lt;br /&gt;
=== openSUSE ===&lt;br /&gt;
&lt;br /&gt;
openSUSE Leap 15 and Tumbleweed should work well out of the box. Serious compilation issues can be expected with other versions. Refer to the [[Linux_GTK2|GTK2]] article if compiling on a version older than 42.1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo zypper install git cmake gcc gcc-c++ gtk3-devel gtkmm3-devel liblcms2-devel fftw3-devel libiptcdata-devel librsvg-devel libtiff-devel libjpeg8-devel libcanberra-gtk3-devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For openSUSE 15.1 and newer, the &amp;lt;code&amp;gt;lensfun&amp;lt;/code&amp;gt; library needs to be installed as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo zypper install lensfun-data liblensfun1&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For openSUSE Tumbleweed, the package is slightly different:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo zypper install lensfun-devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For other versions of openSUSE &amp;lt;code&amp;gt;lensfun&amp;lt;/code&amp;gt; has to be installed manually:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;wget https://sourceforge.net/projects/lensfun/files/0.3.2/lensfun-0.3.2.tar.gz&lt;br /&gt;
tar xvf lensfun-0.3.2.tar.gz&lt;br /&gt;
cd lensfun-0.3.2.tar.gz&lt;br /&gt;
mkdir build&lt;br /&gt;
cd build&lt;br /&gt;
cmake ../&lt;br /&gt;
make&lt;br /&gt;
sudo make install&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Compilation|Compilation]].&lt;br /&gt;
&lt;br /&gt;
== Compilation ==&lt;br /&gt;
&lt;br /&gt;
There are two general ways you can compile RawTherapee: either use the [[#The_Automatic_Way|automatic]] Bash script which compiles RawTherapee for you (recommended), or do so [[#The_Manual_Way|manually]].&lt;br /&gt;
&lt;br /&gt;
=== The Automatic Way ===&lt;br /&gt;
&lt;br /&gt;
This is the recommended way of compiling RawTherapee as it is fast, simple and fool-proof. It relies on a Bash script which downloads the latest RawTherapee source code and compiles it in a way which is optimized for your CPU. The compiled builds are ready for use. The script does not check for build-time dependencies, so be sure to read the [[#Dependencies|Dependencies]] section before using the script. The compiled builds are standalone, meaning that you can keep several versions of RawTherapee at the same time simply by renaming the build folders so that creating a new build does not overwrite the previous build, which happens by default.&lt;br /&gt;
&lt;br /&gt;
Run the script as a normal user, not as root!&lt;br /&gt;
&lt;br /&gt;
Open a terminal, get the script, make it executable, and run it:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;cd ~&lt;br /&gt;
wget https://raw.githubusercontent.com/Beep6581/RawTherapee/dev/tools/build-rawtherapee -O build-rawtherapee&lt;br /&gt;
chmod +x build-rawtherapee&lt;br /&gt;
./build-rawtherapee&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If everything goes well, the script will terminate with the message, &amp;quot;To run rawtherapee type: ...&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
To update RawTherapee if you previously compiled it using this script, just re-run the script. That's it.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;build-rawtherapee&amp;lt;/code&amp;gt; script is included in RawTherapee's source code. Since running the script updates the source code, after you compiled your first build you can delete the script you downloaded manually above using wget, and instead use &amp;lt;code&amp;gt;~/programs/code-rawtherapee/tools/build-rawtherapee&amp;lt;/code&amp;gt; which will always update itself.&lt;br /&gt;
&lt;br /&gt;
The script compiles the current branch, which by default is &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; where most of the development happens. To compile a different branch, check it out using standard git commands before running the script. Read more about RawTherapee's branches below in the [[Linux#Choose_a_branch|Choose a Branch]] section.&lt;br /&gt;
&lt;br /&gt;
For more information, see &amp;lt;code&amp;gt;./build-rawtherapee --help&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You have finished, RawTherapee is ready for use. You can skip the &amp;quot;Manual Way&amp;quot; section.&lt;br /&gt;
&lt;br /&gt;
=== The Manual Way ===&lt;br /&gt;
&lt;br /&gt;
The recommended way of compiling RawTherapee is by using the automatic script - see [[#The_Automatic_Way|Compilation: The Automatic Way]]. If you want to learn how to compile manually, read on.&lt;br /&gt;
&lt;br /&gt;
In order to keep your &amp;quot;home&amp;quot; folder clean when manually compiling multiple programs (i.e. when not using your distribution's package manager) and for this manual compilation tutorial to maintain compatibility with the automatic compilation script, you will create the folder &amp;lt;code&amp;gt;~/programs/&amp;lt;/code&amp;gt; which will contain all RawTherapee-related source code in the &amp;lt;code&amp;gt;~/programs/code-rawtherapee&amp;lt;/code&amp;gt; folder, and the compiled build in the &amp;lt;code&amp;gt;~/programs/rawtherapee&amp;lt;/code&amp;gt; folder. You can use the same scheme when compiling other programs.&lt;br /&gt;
&lt;br /&gt;
==== Clone the source ====&lt;br /&gt;
&lt;br /&gt;
First, you need to clone RawTherapee's source code repository. Bring up your console and run this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;mkdir -p ~/programs&lt;br /&gt;
git clone https://github.com/Beep6581/RawTherapee ~/programs/code-rawtherapee&lt;br /&gt;
cd ~/programs/code-rawtherapee&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Choose a branch ====&lt;br /&gt;
&lt;br /&gt;
* Features are developed on their own feature branches.&lt;br /&gt;
* Development happens in the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch. Feature branches are merged into the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch when they're ready. The &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch is unstable.&lt;br /&gt;
* Releases are tagged in the &amp;lt;code&amp;gt;releases&amp;lt;/code&amp;gt; branch.&lt;br /&gt;
&lt;br /&gt;
Checkout the latest tag if you want the most stable code. To see all available tags, type:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;git tag&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Checkout the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch or some other feature branch if you want to test the latest bleeding-edge code. To see all available branches, type:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;git branch -a&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Checking out is done via the &amp;quot;git checkout&amp;quot; command. To checkout a tag or a branch, type:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;git checkout &amp;lt;tag or branch&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
RawTherapee uses GTK+ for the user interface and requires GTK+ version 3.16 or newer. If your system does not support version 3.16 or newer then you must checkout the &amp;lt;code&amp;gt;5.0-r1-gtk2&amp;lt;/code&amp;gt; tag. Our GTK2 support has officially ended on 2 February 2017 - refer to the archived [[Linux_GTK2|GTK2]] article, and update your system.&lt;br /&gt;
&lt;br /&gt;
Compiling old versions of RawTherapee will fail on a modern system, as you will be missing the old dependencies.&lt;br /&gt;
&lt;br /&gt;
==== Compile RawTherapee ====&lt;br /&gt;
&lt;br /&gt;
Now you will make an out-of-source compilation of RawTherapee, it will be built into the &amp;lt;code&amp;gt;~/programs/code-rawtherapee/build/release&amp;lt;/code&amp;gt; folder, and then you will move this folder to &amp;lt;code&amp;gt;~/programs/rawtherapee&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== CMake =====&lt;br /&gt;
&lt;br /&gt;
There are a few compilation settings you need to be aware of, you will pass these to CMake using the &amp;lt;code&amp;gt;-D&amp;lt;/code&amp;gt; option as described below:&lt;br /&gt;
&lt;br /&gt;
; CMAKE_BUILD_TYPE&lt;br /&gt;
: One of: &amp;lt;code&amp;gt;release&amp;lt;/code&amp;gt; (default), &amp;lt;code&amp;gt;relwithdebinfo&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;debug&amp;lt;/code&amp;gt;.&lt;br /&gt;
: This controls whether the build will favor faster execution time or more verbose debugging output.&lt;br /&gt;
: The &amp;quot;debug&amp;quot; and &amp;quot;relwithdebinfo&amp;quot; builds will let you [[How_to_write_useful_bug_reports|get a useful stack-backtrace]] if RawTherapee crashes while running through GDB which you can then submit to us so we can find the problem and fix it. The &amp;quot;debug&amp;quot; build is the slowest but generates the most detailed information. The &amp;quot;relwithdebinfo&amp;quot; build is almost as fast as a &amp;quot;release&amp;quot; build and generates often sufficient information, though not as detailed as a &amp;quot;debug&amp;quot; build. The &amp;quot;release&amp;quot; build will not provide any useful information when it crashes, but does contain many speed optimizations resulting in a program that works several times faster than the &amp;quot;debug&amp;quot; build would. For normal use, make a &amp;quot;release&amp;quot; or &amp;quot;relwithdebinfo&amp;quot; build. If you find a reproducible bug, then make a &amp;quot;debug&amp;quot; build and send us a stack-backtrace (or fix it yourself and send us the patch!). We prefer stack backtraces from debug builds than from relwithdebinfo ones.&lt;br /&gt;
:: To make a &amp;quot;release&amp;quot; type build, set: &amp;lt;code&amp;gt;-DCMAKE_BUILD_TYPE=&amp;quot;release&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; USE_OLD_CXX_ABI&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
: When compiling a program, one must use the same conventions as those used by the libraries which that program relies upon, otherwise compilation (linking) will fail. Generally one does not need to concern oneself with this, but we are now at a time when GCC4 is being phased out by GCC5, each by default using a convention incompatible with the other, and so this issue is relevant. If the libraries on your system have been compiled using GCC5, they probably use a standard called C++11. This means that your RawTherapee build must use the same standard, which is the case by default. However, if despite using GCC5 your libraries were built using the older C++03 standard, then RawTherapee must be set to use the same, and this is when you would set &amp;quot;USE_OLD_CXX_ABI&amp;quot; to &amp;quot;ON&amp;quot;.&lt;br /&gt;
:: To enable USE_OLD_CXX_ABI, set: &amp;lt;code&amp;gt;-DUSE_OLD_CXX_ABI=&amp;quot;ON&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; CACHE_NAME_SUFFIX&lt;br /&gt;
: The CACHE_NAME_SUFFIX options sets the suffix of the cache and config folder names the compiled RawTherapee build will use. See the [[File Paths]] article for an explanation of what those are.&lt;br /&gt;
: For stable releases (if you checkout the &amp;quot;releases&amp;quot; branch) use &amp;lt;code&amp;gt;-DCACHE_NAME_SUFFIX=&amp;quot;&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
: For development builds (if you checkout the &amp;quot;dev&amp;quot; branch or any branch other than &amp;quot;releases&amp;quot;) use &amp;lt;code&amp;gt;-DCACHE_NAME_SUFFIX=&amp;quot;5-dev&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; PROC_TARGET_NUMBER&lt;br /&gt;
: From &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; (default) to &amp;lt;code&amp;gt;9&amp;lt;/code&amp;gt;.&lt;br /&gt;
: The PROC_TARGET_NUMBER option sets which CPU type to optimize for.&lt;br /&gt;
: If building for yourself, use &amp;quot;2&amp;quot;. It means &amp;quot;native&amp;quot;, so the optimizations will be automatically detected for your CPU and RawTherapee will perform as fast as possible on your CPU. It might not run at all on older or other CPU architectures.&lt;br /&gt;
: If building for distribution (for other people), use &amp;quot;1&amp;quot;. It means &amp;quot;generic&amp;quot;, so only optimizations supported by most CPUs will be used, meaning the build can be downloaded and used by anyone, though it won't benefit from the best optimizations possible for the user's CPU.&lt;br /&gt;
: For more info, see the file &amp;quot;ProcessorTargets.cmake&amp;quot; in the cloned repository.&lt;br /&gt;
:: To make a build using &amp;quot;native&amp;quot; optimizations, set: &amp;lt;code&amp;gt;-DPROC_TARGET_NUMBER=&amp;quot;2&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; BUILD_BUNDLE&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt;.&lt;br /&gt;
: Forced to &amp;quot;ON&amp;quot; for Windows and macOS. Optional in Linux where it is &amp;quot;OFF&amp;quot; by default.&lt;br /&gt;
: If set to ON, the program will be built into the &amp;lt;code&amp;gt;DATADIR&amp;lt;/code&amp;gt; folder, otherwise it will be installed relative to &amp;lt;code&amp;gt;CMAKE_INSTALL_PREFIX&amp;lt;/code&amp;gt; which would typically be system-wide.&lt;br /&gt;
&lt;br /&gt;
; BUNDLE_BASE_INSTALL_DIR&lt;br /&gt;
: Use an absolute path.&lt;br /&gt;
: The program will be built into this folder.&lt;br /&gt;
: For example, set it to: &amp;lt;code&amp;gt;-DBUNDLE_BASE_INSTALL_DIR=&amp;quot;$HOME/programs/rawtherapee&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
: If it is not set, the default is to use &amp;lt;code&amp;gt;${CMAKE_BINARY_DIR}/${CMAKE_BUILD_TYPE}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; LENSFUNDBDIR&lt;br /&gt;
: Unset by default.&lt;br /&gt;
: The &amp;lt;code&amp;gt;LENSFUNDBDIR&amp;lt;/code&amp;gt; option permits to locate the lensfun database in the specified directory. It can be unset, absolute or relative.&lt;br /&gt;
: When unset, Lensfun uses its own logic to find the database. This is the recommended option if you have Lensfun installed system-wide and want to use it.&lt;br /&gt;
: You can set it to a relative or absolute path if you want to use a custom lensfun database.&lt;br /&gt;
: If building a bundle, it is relative to the bundle's root folder, otherwise it is relative to &amp;lt;code&amp;gt;DATADIR&amp;lt;/code&amp;gt;, i.e. &amp;lt;code&amp;gt;${CMAKE_INSTALL_PREFIX}/share/rawtherapee&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; OPTION_OMP&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; (default) or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt;.&lt;br /&gt;
: Build with OpenMP support when enabled, which enables multithreading and makes RawTherapee much faster.&lt;br /&gt;
&lt;br /&gt;
; WITH_LTO&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
: Build with link-time optimizations when enabled, which may make RawTherapee run a little faster.&lt;br /&gt;
&lt;br /&gt;
; WITH_PROF&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
: For debugging purposes. Generate extra code to write profile information suitable for the analysis program gprof.&lt;br /&gt;
&lt;br /&gt;
; WITH_SAN&lt;br /&gt;
: &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default) or one of various other options.&lt;br /&gt;
: For debugging purposes. Allows enabling various sanitizers to help detect program issues.&lt;br /&gt;
: See GCC manual's [https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html Program Instrumentation Options] chapter for more information.&lt;br /&gt;
&lt;br /&gt;
; WITH_SYSTEM_KLT&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
: Build using system KLT library when ON, otherwise use KLT files bundled with RawTherapee.&lt;br /&gt;
: The Kanade–Lucas–Tomasi (KLT) feature tracker is used by the [[Lens/Geometry#Distortion_Correction|Auto Distortion Correction]] tool.&lt;br /&gt;
&lt;br /&gt;
; WITH_BENCHMARK&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
: Build with timing functions enabled to benchmark performance.&lt;br /&gt;
&lt;br /&gt;
; ENABLE_TCMALLOC&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
: In some cases the operating system has trouble handling memory allocation and deallocation required by RawTherapee (see [https://github.com/Beep6581/RawTherapee/issues/5459 here] for more information). Linking against [https://gperftools.github.io/gperftools/tcmalloc.html TCMalloc] may alleviate these problems. This library may not be available on all platforms or distributions.&lt;br /&gt;
&lt;br /&gt;
===== Make =====&lt;br /&gt;
&lt;br /&gt;
Find out how many threads your CPU supports. This only influences the compilation speed, it has no influence over how fast the compiled RawTherapee build runs. To find out how many threads your CPU supports, run this in a terminal:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;nproc --all&amp;lt;/pre&amp;gt;&lt;br /&gt;
It will return a number. Use this number for the &amp;lt;code&amp;gt;--jobs&amp;lt;/code&amp;gt; parameter below.&lt;br /&gt;
&lt;br /&gt;
Compile:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;cd ~/programs/code-rawtherapee&lt;br /&gt;
mkdir build&lt;br /&gt;
cd build&lt;br /&gt;
&lt;br /&gt;
cmake \&lt;br /&gt;
    -DCMAKE_BUILD_TYPE=&amp;quot;release&amp;quot;  \&lt;br /&gt;
    -DCACHE_NAME_SUFFIX=&amp;quot;5-dev&amp;quot; \&lt;br /&gt;
    -DPROC_TARGET_NUMBER=&amp;quot;2&amp;quot; \&lt;br /&gt;
    -DBUILD_BUNDLE=&amp;quot;ON&amp;quot; \&lt;br /&gt;
    -DBUNDLE_BASE_INSTALL_DIR=&amp;quot;$HOME/programs/rawtherapee&amp;quot; \&lt;br /&gt;
    -DOPTION_OMP=&amp;quot;ON&amp;quot; \&lt;br /&gt;
    -DWITH_LTO=&amp;quot;OFF&amp;quot; \&lt;br /&gt;
    -DWITH_PROF=&amp;quot;OFF&amp;quot; \&lt;br /&gt;
    -DWITH_SAN=&amp;quot;OFF&amp;quot; \&lt;br /&gt;
    -DWITH_SYSTEM_KLT=&amp;quot;OFF&amp;quot; \&lt;br /&gt;
    ..&lt;br /&gt;
&lt;br /&gt;
make --jobs=4&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Run RawTherapee ====&lt;br /&gt;
&lt;br /&gt;
To run RawTherapee:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;~/programs/rawtherapee/rawtherapee&amp;lt;/pre&amp;gt;&lt;br /&gt;
Or to run the CLI version:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;~/programs/rawtherapee/rawtherapee-cli&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The source code repository is in &amp;lt;code&amp;gt;~/programs/code-rawtherapee&amp;lt;/code&amp;gt; and the compiled program is in &amp;lt;code&amp;gt;~/programs/rawtherapee&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can safely delete &amp;lt;code&amp;gt;~/programs/code-rawtherapee&amp;lt;/code&amp;gt; if you so wish. The compiled program will still work, but then you will have to redo all the above steps if you want to update. Rather, leave the repository intact so that you can do the next step in a week or a month's time when you want to update.&lt;br /&gt;
&lt;br /&gt;
==== Update RawTherapee ====&lt;br /&gt;
&lt;br /&gt;
Every time you want to update RawTherapee to the latest code available, just do the following:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;cd ~/programs/code-rawtherapee&lt;br /&gt;
git pull&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then repeat the [[#Make|Make]] step above.&lt;br /&gt;
&lt;br /&gt;
When updating, you can re-use the &amp;lt;code&amp;gt;build&amp;lt;/code&amp;gt; folder from last time to avoid having to recompile things which have not changed, to make the whole process faster. CMake should automatically detect changes. However, there are situations when compilation may fail when re-using an old &amp;lt;code&amp;gt;build&amp;lt;/code&amp;gt; folder - typically that might happen when hopping between very different branches. If that happens, just delete the &amp;lt;code&amp;gt;build&amp;lt;/code&amp;gt; folder, then proceed with the steps in the &amp;quot;Make&amp;quot; section.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Linux&amp;diff=9781</id>
		<title>Linux</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Linux&amp;diff=9781"/>
		<updated>2022-11-05T07:52:03Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Update Manjaro to include pkg-config; include ninja for easier building&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Linux&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This page details instructions for compiling RawTherapee on '''GNU/Linux''' systems. There are also instructions for compiling on [[Windows]] and [[macOS]].&lt;br /&gt;
&lt;br /&gt;
When in doubt, [[IRC|join us on IRC]] or in the [[Forum]] and ask a human!&lt;br /&gt;
&lt;br /&gt;
== Dependencies ==&lt;br /&gt;
&lt;br /&gt;
To compile RawTherapee your system will need a set of tools and code libraries from other programs. These are called dependencies, and here is a list of them for the latest version of RawTherapee:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+ Build-time dependencies for RawTherapee:&lt;br /&gt;
! Package      !! Version            !! URL&lt;br /&gt;
|-&lt;br /&gt;
| CMake        || cmake&amp;gt;=3.5         || https://cmake.org/&lt;br /&gt;
|-&lt;br /&gt;
| EXIV2        || exiv2&amp;gt;=0.19        || http://www.exiv2.org/&lt;br /&gt;
|-&lt;br /&gt;
| EXPAT        || expat&amp;gt;=2.1.0       || https://libexpat.github.io/&lt;br /&gt;
|-&lt;br /&gt;
| FFTW3        || fftw&amp;gt;=3.2.2        || http://fftw.org/&lt;br /&gt;
|-&lt;br /&gt;
| GCC          || gcc&amp;gt;=4.9           || https://gcc.gnu.org/&lt;br /&gt;
|-&lt;br /&gt;
| GLIB2        || glib-2.0&amp;gt;=2.24     || https://www.gtk.org/&lt;br /&gt;
|-&lt;br /&gt;
| GLIBMM       || glibmm-2.4&amp;gt;=2.24   || https://www.gtkmm.org/&lt;br /&gt;
|-&lt;br /&gt;
| GTK+         || gtk+-3.16 &amp;lt; 3.24.0 || https://www.gtk.org/&lt;br /&gt;
|-&lt;br /&gt;
| GTKMM        || gtkmm-3.16         || https://www.gtkmm.org/&lt;br /&gt;
|-&lt;br /&gt;
| JPEG         || libjpeg&amp;gt;=6b        || https://libjpeg-turbo.org/ https://jpegclub.org/ https://www.ijg.org/&lt;br /&gt;
|-&lt;br /&gt;
| LCMS2        || lcms&amp;gt;=2.6          || https://www.littlecms.com/&lt;br /&gt;
|-&lt;br /&gt;
| LENSFUN      || lensfun&amp;gt;=0.2       || https://github.com/lensfun/lensfun&lt;br /&gt;
|-&lt;br /&gt;
| LIBCANBERRA  || libcanberra&amp;gt;=0.29  || http://0pointer.de/lennart/projects/libcanberra/ (Linux only)&lt;br /&gt;
|-&lt;br /&gt;
| LIBIPTCDATA  || libiptcdata&amp;gt;=1.0.2 || http://libiptcdata.sourceforge.net&lt;br /&gt;
|-&lt;br /&gt;
| PNG          || libpng&amp;gt;=1.2.44     || http://www.libpng.org/&lt;br /&gt;
|-&lt;br /&gt;
| librsvg      || librsvg&amp;gt;=2.40      || https://github.com/GNOME/librsvg&lt;br /&gt;
|-&lt;br /&gt;
| SIGC         || sigc++-2.0         || https://github.com/libsigcplusplus/libsigcplusplus&lt;br /&gt;
|-&lt;br /&gt;
| TIFF         || libtiff&amp;gt;=4.0.4     || http://libtiff.org/&lt;br /&gt;
|-&lt;br /&gt;
| ZLIB         || zlib&amp;gt;=1.2.3        || http://www.zlib.net/&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
In order to install all these dependencies, you will need to open a console and paste the code from the appropriate section into the console.&lt;br /&gt;
&lt;br /&gt;
The code snippets below list dependencies for the latest RawTherapee code which requires GTK3. We dropped support for GTK2 with release &amp;quot;5.0-r1-gtk2&amp;quot; in February 2017. If you use a modern distribution, just copy and paste the code snippets as they are. If you're on an old distribution without the required GTK3 support, then refer to the archived [[Linux_GTK2|GTK2]] article, then checkout and compile the obsolete &amp;lt;code&amp;gt;5.0-r1-gtk2&amp;lt;/code&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
=== Arch/Manjaro ===&lt;br /&gt;
&lt;br /&gt;
Current versions of Arch and Manjaro work well out of the box. Refer to the [[Linux_GTK2|GTK2]] article if compiling on a version older than 17.1.12.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo pacman -S --needed cmake ninja exiv2 expat fftw glib2 glibmm gtk3 gtkmm3 lcms2 lensfun libcanberra libiptcdata libjpeg-turbo libpng librsvg libsigc++ libtiff zlib&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For Manjaro, you may need to additionally install the &amp;lt;pre&amp;gt;pkg-config&amp;lt;/pre&amp;gt; package.&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Compilation|Compilation]].&lt;br /&gt;
&lt;br /&gt;
=== CentOS ===&lt;br /&gt;
&lt;br /&gt;
CentOS 7 has very outdated packages and requires extra steps to install a recent GCC, git, lensfun and libtiff. The steps below were verified to work in CentOS 7.4.1708, but proceed at your own risk.&lt;br /&gt;
&lt;br /&gt;
GCC &amp;gt;=4.9.3:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo yum update&lt;br /&gt;
sudo yum install cmake git&lt;br /&gt;
sudo yum install centos-release-scl&lt;br /&gt;
sudo yum install devtoolset-7-gcc*&lt;br /&gt;
scl enable devtoolset-7 bash&lt;br /&gt;
source /opt/rh/devtoolset-7/enable&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
git &amp;gt;=2.7:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
lensfun:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm&lt;br /&gt;
sudo rpm -ivh epel-release-latest-7.noarch.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
libtiff &amp;gt;=4.0.4:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo yum install ninja-build&lt;br /&gt;
mkdir ~/programs &amp;amp;&amp;amp; cd ~/programs&lt;br /&gt;
wget http://download.osgeo.org/libtiff/tiff-4.0.9.tar.gz&lt;br /&gt;
tar zxvf tiff-4.0.9.tar.gz&lt;br /&gt;
mkdir tiff-4.0.9/libtiff-build &amp;amp;&amp;amp; cd tiff-4.0.9/libtiff-build&lt;br /&gt;
cmake -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/libtiff-4.0.9 -DCMAKE_INSTALL_PREFIX=/usr -G Ninja ..&lt;br /&gt;
ninja-build&lt;br /&gt;
sudo ninja-build install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the other dependencies:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo yum install curl expat-devel fftw-devel gtk3-devel gtkmm30-devel lcms2-devel lensfun-devel libcanberra-devel libiptcdata-devel libjpeg-turbo-devel libpng-devel librsvg2-devel zlib-devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Symlink libatomic:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo ln -s /usr/lib64/libatomic.so.1 /usr/lib64/libatomic.so&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As you proceed to the next step - compilation - you will need to edit the &amp;lt;code&amp;gt;build-rawtherapee&amp;lt;/code&amp;gt; script and add these three lines to the CMake section near the end of the file, for example after the &amp;quot;-DWITH_BENCHMARK&amp;quot; line before the &amp;quot;$HOME&amp;quot; line:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;    -DTIFF_INCLUDE_DIR=&amp;quot;$HOME/programs/tiff-4.0.9/libtiff&amp;quot; \&lt;br /&gt;
    -DTIFF_LIBRARY=&amp;quot;$HOME/programs/tiff-4.0.9/libtiff-build/libtiff/libtiff.so&amp;quot; \&lt;br /&gt;
    -DCMAKE_CXX_FLAGS=&amp;quot;-Wno-deprecated -Wno-parentheses&amp;quot; \&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Compilation|Compilation]].&lt;br /&gt;
&lt;br /&gt;
=== Debian/Ubuntu/Mint/elementary OS ===&lt;br /&gt;
&lt;br /&gt;
Current versions of these distributions work well out of the box (Debian &amp;gt;=9, Ubuntu &amp;gt;=18.04 LTS, Linux Mint &amp;gt;=19, elementary OS &amp;gt;=5). Instructions below assume a fully updated system. Additional packages may need to be installed on your particular system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo apt install git build-essential cmake curl pkg-config libgtk-3-dev libgtkmm-3.0-dev liblensfun-dev librsvg2-dev liblcms2-dev libfftw3-dev libiptcdata0-dev libtiff5-dev libcanberra-gtk3-dev&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Ubuntu 16.04 LTS (Xenial) ====&lt;br /&gt;
RawTherapee 5.8 (release) is the latest version supported for Xenial-based distributions. See [https://github.com/Beep6581/RawTherapee/issues/5943 here] for details. When compiling, follow the manual steps and use git to checkout the &amp;lt;code&amp;gt;5.8&amp;lt;/code&amp;gt; branch.&lt;br /&gt;
&lt;br /&gt;
==== Ubuntu &amp;lt;=14.04 LTS (Trusty), Debian &amp;lt;=8 (Jessie) ====&lt;br /&gt;
Refer to the [[Linux_GTK2|GTK2]] article if compiling on earlier versions of Ubuntu. The GTK3 version of RawTherapee is unsupported in these distributions.&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Compilation|Compilation]].&lt;br /&gt;
&lt;br /&gt;
=== Fedora ===&lt;br /&gt;
&lt;br /&gt;
Current versions of Fedora work well out of the box. Instructions below assume a fully updated system. Additional packages may need to be installed on your particular system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo dnf install git make cmake curl gcc gcc-c++ gtk3-devel gtkmm30-devel lensfun-devel librsvg2-devel lcms2-devel fftw-devel expat-devel libiptcdata-devel libtiff-devel libjpeg-turbo-devel libcanberra-devel libatomic&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Fedora &amp;lt;=23 ====&lt;br /&gt;
RawTherapee 5.6 (release) is the latest version supported for this distribution because of a higher CMake version requirement (see [https://github.com/Beep6581/RawTherapee/issues/5302 here]). When compiling, follow the manual steps and use git to checkout the &amp;lt;code&amp;gt;5.6&amp;lt;/code&amp;gt; branch.&lt;br /&gt;
&lt;br /&gt;
==== Fedora 22 ====&lt;br /&gt;
In addition to the above notices and requirements, an updated version of &amp;lt;code&amp;gt;libtiff&amp;lt;/code&amp;gt; needs to be compiled manually.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo yum install ninja-build&lt;br /&gt;
cd ~&lt;br /&gt;
wget http://download.osgeo.org/libtiff/tiff-4.0.9.tar.gz&lt;br /&gt;
tar zxvf tiff-4.0.9.tar.gz&lt;br /&gt;
cd tiff-4.0.9.tar.gz&lt;br /&gt;
mkdir build &amp;amp;&amp;amp; cd build&lt;br /&gt;
cmake -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/libtiff-4.0.9 -DCMAKE_INSTALL_PREFIX=/usr -G Ninja ..&lt;br /&gt;
ninja-build&lt;br /&gt;
sudo ninja-build install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Fedora &amp;lt;=21 ====&lt;br /&gt;
Refer to the [[Linux_GTK2|GTK2]] article if compiling on earlier versions of Fedora. The GTK3 version of RawTherapee is unsupported in these distributions.&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Compilation|Compilation]].&lt;br /&gt;
&lt;br /&gt;
=== Gentoo/Sabayon ===&lt;br /&gt;
&lt;br /&gt;
Sabayon users should use the same dependencies as for Gentoo, but instead of &amp;lt;code&amp;gt;sudo emerge -uva&amp;lt;/code&amp;gt; use &amp;lt;code&amp;gt;sudo equo install sys-devel/gcc dev-vcs/git&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo emerge -uva dev-cpp/gtkmm:3.0 dev-libs/expat dev-util/cmake media-gfx/exiv2 media-libs/lcms media-libs/lensfun media-libs/libcanberra media-libs/libiptcdata media-libs/libjpeg-turbo media-libs/libpng gnome-base/librsvg media-libs/tiff net-misc/curl sci-libs/fftw sys-libs/zlib x11-libs/gtk+:3&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Compilation|Compilation]].&lt;br /&gt;
&lt;br /&gt;
=== openSUSE ===&lt;br /&gt;
&lt;br /&gt;
openSUSE Leap 15 and Tumbleweed should work well out of the box. Serious compilation issues can be expected with other versions. Refer to the [[Linux_GTK2|GTK2]] article if compiling on a version older than 42.1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo zypper install git cmake gcc gcc-c++ gtk3-devel gtkmm3-devel liblcms2-devel fftw3-devel libiptcdata-devel librsvg-devel libtiff-devel libjpeg8-devel libcanberra-gtk3-devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For openSUSE 15.1 and newer, the &amp;lt;code&amp;gt;lensfun&amp;lt;/code&amp;gt; library needs to be installed as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo zypper install lensfun-data liblensfun1&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For openSUSE Tumbleweed, the package is slightly different:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo zypper install lensfun-devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For other versions of openSUSE &amp;lt;code&amp;gt;lensfun&amp;lt;/code&amp;gt; has to be installed manually:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;wget https://sourceforge.net/projects/lensfun/files/0.3.2/lensfun-0.3.2.tar.gz&lt;br /&gt;
tar xvf lensfun-0.3.2.tar.gz&lt;br /&gt;
cd lensfun-0.3.2.tar.gz&lt;br /&gt;
mkdir build&lt;br /&gt;
cd build&lt;br /&gt;
cmake ../&lt;br /&gt;
make&lt;br /&gt;
sudo make install&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Compilation|Compilation]].&lt;br /&gt;
&lt;br /&gt;
== Compilation ==&lt;br /&gt;
&lt;br /&gt;
There are two general ways you can compile RawTherapee: either use the [[#The_Automatic_Way|automatic]] Bash script which compiles RawTherapee for you (recommended), or do so [[#The_Manual_Way|manually]].&lt;br /&gt;
&lt;br /&gt;
=== The Automatic Way ===&lt;br /&gt;
&lt;br /&gt;
This is the recommended way of compiling RawTherapee as it is fast, simple and fool-proof. It relies on a Bash script which downloads the latest RawTherapee source code and compiles it in a way which is optimized for your CPU. The compiled builds are ready for use. The script does not check for build-time dependencies, so be sure to read the [[#Dependencies|Dependencies]] section before using the script. The compiled builds are standalone, meaning that you can keep several versions of RawTherapee at the same time simply by renaming the build folders so that creating a new build does not overwrite the previous build, which happens by default.&lt;br /&gt;
&lt;br /&gt;
Run the script as a normal user, not as root!&lt;br /&gt;
&lt;br /&gt;
Open a terminal, get the script, make it executable, and run it:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;cd ~&lt;br /&gt;
wget https://raw.githubusercontent.com/Beep6581/RawTherapee/dev/tools/build-rawtherapee -O build-rawtherapee&lt;br /&gt;
chmod +x build-rawtherapee&lt;br /&gt;
./build-rawtherapee&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If everything goes well, the script will terminate with the message, &amp;quot;To run rawtherapee type: ...&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
To update RawTherapee if you previously compiled it using this script, just re-run the script. That's it.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;build-rawtherapee&amp;lt;/code&amp;gt; script is included in RawTherapee's source code. Since running the script updates the source code, after you compiled your first build you can delete the script you downloaded manually above using wget, and instead use &amp;lt;code&amp;gt;~/programs/code-rawtherapee/tools/build-rawtherapee&amp;lt;/code&amp;gt; which will always update itself.&lt;br /&gt;
&lt;br /&gt;
The script compiles the current branch, which by default is &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; where most of the development happens. To compile a different branch, check it out using standard git commands before running the script. Read more about RawTherapee's branches below in the [[Linux#Choose_a_branch|Choose a Branch]] section.&lt;br /&gt;
&lt;br /&gt;
For more information, see &amp;lt;code&amp;gt;./build-rawtherapee --help&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You have finished, RawTherapee is ready for use. You can skip the &amp;quot;Manual Way&amp;quot; section.&lt;br /&gt;
&lt;br /&gt;
=== The Manual Way ===&lt;br /&gt;
&lt;br /&gt;
The recommended way of compiling RawTherapee is by using the automatic script - see [[#The_Automatic_Way|Compilation: The Automatic Way]]. If you want to learn how to compile manually, read on.&lt;br /&gt;
&lt;br /&gt;
In order to keep your &amp;quot;home&amp;quot; folder clean when manually compiling multiple programs (i.e. when not using your distribution's package manager) and for this manual compilation tutorial to maintain compatibility with the automatic compilation script, you will create the folder &amp;lt;code&amp;gt;~/programs/&amp;lt;/code&amp;gt; which will contain all RawTherapee-related source code in the &amp;lt;code&amp;gt;~/programs/code-rawtherapee&amp;lt;/code&amp;gt; folder, and the compiled build in the &amp;lt;code&amp;gt;~/programs/rawtherapee&amp;lt;/code&amp;gt; folder. You can use the same scheme when compiling other programs.&lt;br /&gt;
&lt;br /&gt;
==== Clone the source ====&lt;br /&gt;
&lt;br /&gt;
First, you need to clone RawTherapee's source code repository. Bring up your console and run this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;mkdir -p ~/programs&lt;br /&gt;
git clone https://github.com/Beep6581/RawTherapee ~/programs/code-rawtherapee&lt;br /&gt;
cd ~/programs/code-rawtherapee&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Choose a branch ====&lt;br /&gt;
&lt;br /&gt;
* Features are developed on their own feature branches.&lt;br /&gt;
* Development happens in the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch. Feature branches are merged into the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch when they're ready. The &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch is unstable.&lt;br /&gt;
* Releases are tagged in the &amp;lt;code&amp;gt;releases&amp;lt;/code&amp;gt; branch.&lt;br /&gt;
&lt;br /&gt;
Checkout the latest tag if you want the most stable code. To see all available tags, type:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;git tag&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Checkout the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch or some other feature branch if you want to test the latest bleeding-edge code. To see all available branches, type:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;git branch -a&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Checking out is done via the &amp;quot;git checkout&amp;quot; command. To checkout a tag or a branch, type:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;git checkout &amp;lt;tag or branch&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
RawTherapee uses GTK+ for the user interface and requires GTK+ version 3.16 or newer. If your system does not support version 3.16 or newer then you must checkout the &amp;lt;code&amp;gt;5.0-r1-gtk2&amp;lt;/code&amp;gt; tag. Our GTK2 support has officially ended on 2 February 2017 - refer to the archived [[Linux_GTK2|GTK2]] article, and update your system.&lt;br /&gt;
&lt;br /&gt;
Compiling old versions of RawTherapee will fail on a modern system, as you will be missing the old dependencies.&lt;br /&gt;
&lt;br /&gt;
==== Compile RawTherapee ====&lt;br /&gt;
&lt;br /&gt;
Now you will make an out-of-source compilation of RawTherapee, it will be built into the &amp;lt;code&amp;gt;~/programs/code-rawtherapee/build/release&amp;lt;/code&amp;gt; folder, and then you will move this folder to &amp;lt;code&amp;gt;~/programs/rawtherapee&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== CMake =====&lt;br /&gt;
&lt;br /&gt;
There are a few compilation settings you need to be aware of, you will pass these to CMake using the &amp;lt;code&amp;gt;-D&amp;lt;/code&amp;gt; option as described below:&lt;br /&gt;
&lt;br /&gt;
; CMAKE_BUILD_TYPE&lt;br /&gt;
: One of: &amp;lt;code&amp;gt;release&amp;lt;/code&amp;gt; (default), &amp;lt;code&amp;gt;relwithdebinfo&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;debug&amp;lt;/code&amp;gt;.&lt;br /&gt;
: This controls whether the build will favor faster execution time or more verbose debugging output.&lt;br /&gt;
: The &amp;quot;debug&amp;quot; and &amp;quot;relwithdebinfo&amp;quot; builds will let you [[How_to_write_useful_bug_reports|get a useful stack-backtrace]] if RawTherapee crashes while running through GDB which you can then submit to us so we can find the problem and fix it. The &amp;quot;debug&amp;quot; build is the slowest but generates the most detailed information. The &amp;quot;relwithdebinfo&amp;quot; build is almost as fast as a &amp;quot;release&amp;quot; build and generates often sufficient information, though not as detailed as a &amp;quot;debug&amp;quot; build. The &amp;quot;release&amp;quot; build will not provide any useful information when it crashes, but does contain many speed optimizations resulting in a program that works several times faster than the &amp;quot;debug&amp;quot; build would. For normal use, make a &amp;quot;release&amp;quot; or &amp;quot;relwithdebinfo&amp;quot; build. If you find a reproducible bug, then make a &amp;quot;debug&amp;quot; build and send us a stack-backtrace (or fix it yourself and send us the patch!). We prefer stack backtraces from debug builds than from relwithdebinfo ones.&lt;br /&gt;
:: To make a &amp;quot;release&amp;quot; type build, set: &amp;lt;code&amp;gt;-DCMAKE_BUILD_TYPE=&amp;quot;release&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; USE_OLD_CXX_ABI&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
: When compiling a program, one must use the same conventions as those used by the libraries which that program relies upon, otherwise compilation (linking) will fail. Generally one does not need to concern oneself with this, but we are now at a time when GCC4 is being phased out by GCC5, each by default using a convention incompatible with the other, and so this issue is relevant. If the libraries on your system have been compiled using GCC5, they probably use a standard called C++11. This means that your RawTherapee build must use the same standard, which is the case by default. However, if despite using GCC5 your libraries were built using the older C++03 standard, then RawTherapee must be set to use the same, and this is when you would set &amp;quot;USE_OLD_CXX_ABI&amp;quot; to &amp;quot;ON&amp;quot;.&lt;br /&gt;
:: To enable USE_OLD_CXX_ABI, set: &amp;lt;code&amp;gt;-DUSE_OLD_CXX_ABI=&amp;quot;ON&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; CACHE_NAME_SUFFIX&lt;br /&gt;
: The CACHE_NAME_SUFFIX options sets the suffix of the cache and config folder names the compiled RawTherapee build will use. See the [[File Paths]] article for an explanation of what those are.&lt;br /&gt;
: For stable releases (if you checkout the &amp;quot;releases&amp;quot; branch) use &amp;lt;code&amp;gt;-DCACHE_NAME_SUFFIX=&amp;quot;&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
: For development builds (if you checkout the &amp;quot;dev&amp;quot; branch or any branch other than &amp;quot;releases&amp;quot;) use &amp;lt;code&amp;gt;-DCACHE_NAME_SUFFIX=&amp;quot;5-dev&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; PROC_TARGET_NUMBER&lt;br /&gt;
: From &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; (default) to &amp;lt;code&amp;gt;9&amp;lt;/code&amp;gt;.&lt;br /&gt;
: The PROC_TARGET_NUMBER option sets which CPU type to optimize for.&lt;br /&gt;
: If building for yourself, use &amp;quot;2&amp;quot;. It means &amp;quot;native&amp;quot;, so the optimizations will be automatically detected for your CPU and RawTherapee will perform as fast as possible on your CPU. It might not run at all on older or other CPU architectures.&lt;br /&gt;
: If building for distribution (for other people), use &amp;quot;1&amp;quot;. It means &amp;quot;generic&amp;quot;, so only optimizations supported by most CPUs will be used, meaning the build can be downloaded and used by anyone, though it won't benefit from the best optimizations possible for the user's CPU.&lt;br /&gt;
: For more info, see the file &amp;quot;ProcessorTargets.cmake&amp;quot; in the cloned repository.&lt;br /&gt;
:: To make a build using &amp;quot;native&amp;quot; optimizations, set: &amp;lt;code&amp;gt;-DPROC_TARGET_NUMBER=&amp;quot;2&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; BUILD_BUNDLE&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt;.&lt;br /&gt;
: Forced to &amp;quot;ON&amp;quot; for Windows and macOS. Optional in Linux where it is &amp;quot;OFF&amp;quot; by default.&lt;br /&gt;
: If set to ON, the program will be built into the &amp;lt;code&amp;gt;DATADIR&amp;lt;/code&amp;gt; folder, otherwise it will be installed relative to &amp;lt;code&amp;gt;CMAKE_INSTALL_PREFIX&amp;lt;/code&amp;gt; which would typically be system-wide.&lt;br /&gt;
&lt;br /&gt;
; BUNDLE_BASE_INSTALL_DIR&lt;br /&gt;
: Use an absolute path.&lt;br /&gt;
: The program will be built into this folder.&lt;br /&gt;
: For example, set it to: &amp;lt;code&amp;gt;-DBUNDLE_BASE_INSTALL_DIR=&amp;quot;$HOME/programs/rawtherapee&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
: If it is not set, the default is to use &amp;lt;code&amp;gt;${CMAKE_BINARY_DIR}/${CMAKE_BUILD_TYPE}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; LENSFUNDBDIR&lt;br /&gt;
: Unset by default.&lt;br /&gt;
: The &amp;lt;code&amp;gt;LENSFUNDBDIR&amp;lt;/code&amp;gt; option permits to locate the lensfun database in the specified directory. It can be unset, absolute or relative.&lt;br /&gt;
: When unset, Lensfun uses its own logic to find the database. This is the recommended option if you have Lensfun installed system-wide and want to use it.&lt;br /&gt;
: You can set it to a relative or absolute path if you want to use a custom lensfun database.&lt;br /&gt;
: If building a bundle, it is relative to the bundle's root folder, otherwise it is relative to &amp;lt;code&amp;gt;DATADIR&amp;lt;/code&amp;gt;, i.e. &amp;lt;code&amp;gt;${CMAKE_INSTALL_PREFIX}/share/rawtherapee&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; OPTION_OMP&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; (default) or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt;.&lt;br /&gt;
: Build with OpenMP support when enabled, which enables multithreading and makes RawTherapee much faster.&lt;br /&gt;
&lt;br /&gt;
; WITH_LTO&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
: Build with link-time optimizations when enabled, which may make RawTherapee run a little faster.&lt;br /&gt;
&lt;br /&gt;
; WITH_PROF&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
: For debugging purposes. Generate extra code to write profile information suitable for the analysis program gprof.&lt;br /&gt;
&lt;br /&gt;
; WITH_SAN&lt;br /&gt;
: &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default) or one of various other options.&lt;br /&gt;
: For debugging purposes. Allows enabling various sanitizers to help detect program issues.&lt;br /&gt;
: See GCC manual's [https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html Program Instrumentation Options] chapter for more information.&lt;br /&gt;
&lt;br /&gt;
; WITH_SYSTEM_KLT&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
: Build using system KLT library when ON, otherwise use KLT files bundled with RawTherapee.&lt;br /&gt;
: The Kanade–Lucas–Tomasi (KLT) feature tracker is used by the [[Lens/Geometry#Distortion_Correction|Auto Distortion Correction]] tool.&lt;br /&gt;
&lt;br /&gt;
; WITH_BENCHMARK&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
: Build with timing functions enabled to benchmark performance.&lt;br /&gt;
&lt;br /&gt;
; ENABLE_TCMALLOC&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
: In some cases the operating system has trouble handling memory allocation and deallocation required by RawTherapee (see [https://github.com/Beep6581/RawTherapee/issues/5459 here] for more information). Linking against [https://gperftools.github.io/gperftools/tcmalloc.html TCMalloc] may alleviate these problems. This library may not be available on all platforms or distributions.&lt;br /&gt;
&lt;br /&gt;
===== Make =====&lt;br /&gt;
&lt;br /&gt;
Find out how many threads your CPU supports. This only influences the compilation speed, it has no influence over how fast the compiled RawTherapee build runs. To find out how many threads your CPU supports, run this in a terminal:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;nproc --all&amp;lt;/pre&amp;gt;&lt;br /&gt;
It will return a number. Use this number for the &amp;lt;code&amp;gt;--jobs&amp;lt;/code&amp;gt; parameter below.&lt;br /&gt;
&lt;br /&gt;
Compile:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;cd ~/programs/code-rawtherapee&lt;br /&gt;
mkdir build&lt;br /&gt;
cd build&lt;br /&gt;
&lt;br /&gt;
cmake \&lt;br /&gt;
    -DCMAKE_BUILD_TYPE=&amp;quot;release&amp;quot;  \&lt;br /&gt;
    -DCACHE_NAME_SUFFIX=&amp;quot;5-dev&amp;quot; \&lt;br /&gt;
    -DPROC_TARGET_NUMBER=&amp;quot;2&amp;quot; \&lt;br /&gt;
    -DBUILD_BUNDLE=&amp;quot;ON&amp;quot; \&lt;br /&gt;
    -DBUNDLE_BASE_INSTALL_DIR=&amp;quot;$HOME/programs/rawtherapee&amp;quot; \&lt;br /&gt;
    -DOPTION_OMP=&amp;quot;ON&amp;quot; \&lt;br /&gt;
    -DWITH_LTO=&amp;quot;OFF&amp;quot; \&lt;br /&gt;
    -DWITH_PROF=&amp;quot;OFF&amp;quot; \&lt;br /&gt;
    -DWITH_SAN=&amp;quot;OFF&amp;quot; \&lt;br /&gt;
    -DWITH_SYSTEM_KLT=&amp;quot;OFF&amp;quot; \&lt;br /&gt;
    ..&lt;br /&gt;
&lt;br /&gt;
make --jobs=4&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Run RawTherapee ====&lt;br /&gt;
&lt;br /&gt;
To run RawTherapee:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;~/programs/rawtherapee/rawtherapee&amp;lt;/pre&amp;gt;&lt;br /&gt;
Or to run the CLI version:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;~/programs/rawtherapee/rawtherapee-cli&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The source code repository is in &amp;lt;code&amp;gt;~/programs/code-rawtherapee&amp;lt;/code&amp;gt; and the compiled program is in &amp;lt;code&amp;gt;~/programs/rawtherapee&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can safely delete &amp;lt;code&amp;gt;~/programs/code-rawtherapee&amp;lt;/code&amp;gt; if you so wish. The compiled program will still work, but then you will have to redo all the above steps if you want to update. Rather, leave the repository intact so that you can do the next step in a week or a month's time when you want to update.&lt;br /&gt;
&lt;br /&gt;
==== Update RawTherapee ====&lt;br /&gt;
&lt;br /&gt;
Every time you want to update RawTherapee to the latest code available, just do the following:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;cd ~/programs/code-rawtherapee&lt;br /&gt;
git pull&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then repeat the [[#Make|Make]] step above.&lt;br /&gt;
&lt;br /&gt;
When updating, you can re-use the &amp;lt;code&amp;gt;build&amp;lt;/code&amp;gt; folder from last time to avoid having to recompile things which have not changed, to make the whole process faster. CMake should automatically detect changes. However, there are situations when compilation may fail when re-using an old &amp;lt;code&amp;gt;build&amp;lt;/code&amp;gt; folder - typically that might happen when hopping between very different branches. If that happens, just delete the &amp;lt;code&amp;gt;build&amp;lt;/code&amp;gt; folder, then proceed with the steps in the &amp;quot;Make&amp;quot; section.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Download&amp;diff=9067</id>
		<title>Download</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Download&amp;diff=9067"/>
		<updated>2022-02-14T04:47:58Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Updated link to new automated builds, rephrased some text to accurately reflect reality.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Download&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Stable Releases ==&lt;br /&gt;
&lt;br /&gt;
{{Template:Download_stable}}&lt;br /&gt;
&lt;br /&gt;
== Development Builds ==&lt;br /&gt;
 &lt;br /&gt;
Use a development build if you want to test the newest features and latest changes, and if you are willing to risk potential buggy behavior and do not care that functionality may change between versions.&lt;br /&gt;
&lt;br /&gt;
Development builds can be downloaded from several locations:&lt;br /&gt;
&lt;br /&gt;
* The [https://github.com/Beep6581/RawTherapee/releases/tag/nightly-github-actions official GitHub repository].&lt;br /&gt;
* The [https://keybase.pub/gaaned92/RTW64NightlyBuilds/ unofficial builds] by André Gauthier.&lt;br /&gt;
* The [https://keybase.pub/kd6kxr/ unofficial macOS builds] by Richard Barber.&lt;br /&gt;
&lt;br /&gt;
Official automated development builds are generated after each new commit to our [https://github.com/Beep6581/RawTherapee GitHub repository]. This gives you a ''bleeding edge'' version of RawTherapee with all the latest bug fixes, features and camera support. These builds are generally stable enough to be crash-free and the developers take care not to accidentally introduce bugs. Even though issues can never be avoided completely, many users use development builds for their everyday editing without problems.&lt;br /&gt;
&lt;br /&gt;
However, if stability is key for you, we always recommend that you use the [http://www.rawtherapee.com/downloads/ latest stable release]. It is important to understand that while we try to maintain [https://en.wikipedia.org/wiki/Backward_compatibility backward compatibility] between stable releases (i.e. images edited in RawTherapee 5.7 should look the same when opened in RawTherapee 5.8), this is certainly ''not'' the case between development versions.&lt;br /&gt;
&lt;br /&gt;
Development build filenames roughly follow this structure:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;RawTherapee_branch_win64_type.extension&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Each commit happens on a &amp;quot;branch&amp;quot;. The main branch is called &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt;. New features are developed on their own branches, and then merged into &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; when ready.&lt;br /&gt;
* The &amp;quot;type&amp;quot; is either &amp;lt;code&amp;gt;release&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;debug&amp;lt;/code&amp;gt;. Most users will want to use the release-version. The debug-version is generally slower and only helpful when [https://rawpedia.rawtherapee.com/How_to_write_useful_bug_reports tracking down bugs or crashes].&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Windows&amp;diff=9066</id>
		<title>Windows</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Windows&amp;diff=9066"/>
		<updated>2022-02-14T04:09:04Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Minor updates to naming scheme&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Windows&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Follow the instructions on this page to compile RawTherapee on Windows using the [https://www.msys2.org MSYS2] build environment. For more details on customizing and understanding the build process, see the [[Linux]] article.&lt;br /&gt;
&lt;br /&gt;
Note: this guide applies to compiling the '''64-bit''' version of RawTherapee under '''Windows 7 and newer'''. Compiling the 32-bit version is no longer supported, nor is compilation on older operating systems. The latest version of RawTherapee to work under 32-bit Windows XP is 5.0-rc1, and can be downloaded [http://www.rawtherapee.com/downloads/5.0-r1/ here] (dated 2017-02-02).&lt;br /&gt;
&lt;br /&gt;
Note that RawTherapee also requires the availability of GTK+ 3.22.24 or newer to have [https://gitlab.gnome.org/GNOME/gtk/issues/760#note_110809 native window support]. Without it RawTherapee may exhibit [https://github.com/Beep6581/RawTherapee/issues/4125 strange behavior], such as maximizing underneath the taskbar in Windows 10. When using an up to date build environment, you should not encounter this problem.&lt;br /&gt;
&lt;br /&gt;
== MSYS2 Installation ==&lt;br /&gt;
&lt;br /&gt;
=== Install MSYS2 base system ===&lt;br /&gt;
&lt;br /&gt;
Install the build environment MSYS2 carefully by following the instructions from the [https://www.msys2.org MSYS2 website]. Make sure to update the system fully until no further updates are available, using the command:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ pacman -Syu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
MSYS2 provides [https://www.msys2.org/wiki/MSYS2-introduction/ three 'shells'] (command-line interfaces) for different purposes: '''MSYS''', '''MinGW 32-bit''' and '''MinGW 64-bit'''. They can be launched through shortcuts in your Start menu. Most commonly you will be running a 64-bit operating system and will want to create applications that are optimized for that. Therefore, start the '''MSYS2 MinGW 64-bit''' shell and continue below.&lt;br /&gt;
&lt;br /&gt;
[[File:MSYS2 Shell.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note: in following text, &amp;lt;code&amp;gt;&amp;lt;MSYS2&amp;gt;&amp;lt;/code&amp;gt; refers to the MSYS2 installation folder, typically &amp;lt;code&amp;gt;C:\msys64&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install tools and libraries ===&lt;br /&gt;
&lt;br /&gt;
MSYS2 uses the package manager &amp;lt;code&amp;gt;pacman&amp;lt;/code&amp;gt; to install software and components. Please refer to the [https://wiki.archlinux.org/index.php/pacman pacman manual] for details.&lt;br /&gt;
 &lt;br /&gt;
First, install a few miscellaneous tools:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ pacman -S tar gzip nano make diffutils intltool git&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the necessary development tools and the required libraries:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-gdb mingw-w64-x86_64-make mingw-w64-x86_64-pkg-config mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-gtkmm3 mingw-w64-x86_64-lcms2 mingw-w64-x86_64-fftw mingw-w64-x86_64-lensfun mingw-w64-x86_64-libiptcdata&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Updating Lensfun database ===&lt;br /&gt;
&lt;br /&gt;
RawTherapee uses the [https://lensfun.github.io Lensfun] library for lens-specific corrections. Run the following command to update the database:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ lensfun-update-data&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The updater returns the path where the updated database is located. '''Copy this path for later use!'''&lt;br /&gt;
&lt;br /&gt;
=== Download and build libiptcdata ===&lt;br /&gt;
&lt;br /&gt;
Since December 2020 the &amp;lt;code&amp;gt;libiptcdata&amp;lt;/code&amp;gt; library is provided by MSYS2 and no longer requires manual compilation. &amp;lt;i&amp;gt;Only if you experience problems using this library&amp;lt;/i&amp;gt;, follow the instructions below to manually build it. Otherwise, continue to the next section.&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cd ~&lt;br /&gt;
$ curl -LO http://downloads.sourceforge.net/project/libiptcdata/libiptcdata/1.0.4/libiptcdata-1.0.4.tar.gz&lt;br /&gt;
$ tar xzf libiptcdata-1.0.4.tar.gz&lt;br /&gt;
$ cd libiptcdata-1.0.4&lt;br /&gt;
$ ./configure --prefix=/mingw64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some modifications to the resulting &amp;lt;code&amp;gt;Makefile&amp;lt;/code&amp;gt; are needed. You can edit the file with any text editor (either through your OS or from within the shell). We use the &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; editor from within the shell:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ nano Makefile&lt;br /&gt;
&lt;br /&gt;
# search (command Ctrl+W)&lt;br /&gt;
DIST_SUBDIRS = m4 libiptcdata po iptc docs win python&lt;br /&gt;
# and replace with&lt;br /&gt;
DIST_SUBDIRS = m4 libiptcdata po win python&lt;br /&gt;
&lt;br /&gt;
# search&lt;br /&gt;
SUBDIRS = m4 libiptcdata po iptc docs win $(MAYBE_PYTHONLIB)&lt;br /&gt;
# and replace with&lt;br /&gt;
SUBDIRS = m4 libiptcdata po win $(MAYBE_PYTHONLIB)&lt;br /&gt;
&lt;br /&gt;
# save and quit&lt;br /&gt;
Ctrl+X, Y&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally build and install the library:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Clone and build RawTherapee ==&lt;br /&gt;
&lt;br /&gt;
=== Clone RawTherapee's git repository. ===&lt;br /&gt;
RawTherapee's source code can be cloned from [https://github.com/Beep6581/RawTherapee the official GitHub repository]:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cd ~&lt;br /&gt;
$ git clone git://github.com/Beep6581/RawTherapee.git&lt;br /&gt;
$ cd RawTherapee&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Switching branches ===&lt;br /&gt;
After cloning you will automatically have checked out the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch. This is the main development branch of RawTherapee and probably what you want to use. To switch to a [https://github.com/Beep6581/RawTherapee/branches different branch], do the following:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ git checkout branchname # replace with another available branch name&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create a separate directory for the build ===&lt;br /&gt;
It is essential to create a new directory to build the application. The directory can have any name, for example:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ mkdir build&lt;br /&gt;
$ cd build&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: if you switch branches, ''always build in an empty directory'' to prevent issues. From within a build directory, you can run &amp;lt;code&amp;gt;rm -rf *&amp;lt;/code&amp;gt; to remove all files.&lt;br /&gt;
&lt;br /&gt;
=== Configuration and compilation ===&lt;br /&gt;
To create an optimized build for your machine architecture, use the following commands:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cmake -G &amp;quot;Ninja&amp;quot; -DLENSFUNDBDIR=put/your/lensfun/directory/here -DCMAKE_BUILD_TYPE=&amp;quot;release&amp;quot; -DPROC_TARGET_NUMBER=&amp;quot;2&amp;quot; -DCACHE_NAME_SUFFIX=&amp;quot;5-dev&amp;quot; ..&lt;br /&gt;
$ cmake --build . --target install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Make sure to replace the path to the Lensfun database with the actual path obtained a few steps before. See the [[Linux#CMake|Linux article]] for more details on the various options. Depending on your system, the build process may take anywhere between 5 and 25 minutes.&lt;br /&gt;
&lt;br /&gt;
There may be warnings during the build process which you can safely ignore. Errors that are not traceable to a mistake when following this guide should be reported [https://github.com/Beep6581/RawTherapee/issues/new?assignees=&amp;amp;labels=&amp;amp;template=bug_report.md&amp;amp;title= here]. &lt;br /&gt;
&lt;br /&gt;
=== Starting RawTherapee ===&lt;br /&gt;
RawTherapee can now be run:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ ./release/rawtherapee.exe # replace release with debug or relwithdebinfo if you built another target&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional: preloaded CMake cache ===&lt;br /&gt;
As described in the [https://cmake.org/cmake/help/latest/manual/cmake.1.html CMake manual]&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
-C &amp;lt;initial-cache&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    Pre-load a script to populate the cache.&lt;br /&gt;
&lt;br /&gt;
    When cmake is first run in an empty build tree, it creates a CMakeCache.txt file and populates it with customizable settings for the project. This option may be used to specify a file from which to load cache entries before the first pass through the project’s cmake listfiles. The loaded entries take priority over the project’s default values. The given file should be a CMake script containing SET commands that use the CACHE option, not a cache-format file.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To simplify the invocation of CMake and be able to easily define Windows specific options, a &amp;lt;code&amp;gt;win.cmake&amp;lt;/code&amp;gt; template script is provided with the sources. Copy it out of RawTherapee's source to avoid overwriting by update for instance in &amp;lt;code&amp;gt;mywin.cmake&amp;lt;/code&amp;gt;.&lt;br /&gt;
Edit it to define or modify options. To preload the cache, in the CMake command line:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cmake -G &amp;quot;Ninja&amp;quot; -DLENSFUNDBDIR=share/lensfun -DCMAKE_BUILD_TYPE=&amp;quot;release&amp;quot; -DPROC_TARGET_NUMBER=&amp;quot;2&amp;quot; -DCACHE_NAME_SUFFIX=&amp;quot;5-dev&amp;quot; -C &amp;lt;path/to/mywin.cmake&amp;gt; ..&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Making a bundled build ==&lt;br /&gt;
&lt;br /&gt;
This section only applies if you want to run RawTherapee outside the MinGW shell or distribute it.&lt;br /&gt;
&lt;br /&gt;
Note: You can copy either with the Windows file manager or, recommended, with [https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy robocopy] inside the &amp;lt;code&amp;gt;mingw64&amp;lt;/code&amp;gt; shell script using &amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt; instead of &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt; for the options.&lt;br /&gt;
&lt;br /&gt;
=== Definition of folders ===&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;prefix&amp;gt;&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;&amp;lt;MSYS2&amp;gt;\mingw64&amp;lt;/code&amp;gt;,&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;MSYS2&amp;gt;&amp;lt;/code&amp;gt; is the MSYS2 installation folder,&lt;br /&gt;
*and &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt; is the RawTherapee installation folder.&lt;br /&gt;
&lt;br /&gt;
=== Copy RawTherapee executable and generated files ===&lt;br /&gt;
Copy the content of &amp;lt;code&amp;gt;c:\code\repo-rt\build\&amp;lt;debug|release|relwithdebinfo&amp;gt;&amp;lt;/code&amp;gt; into &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Copy the  dependencies ===&lt;br /&gt;
Copy the necessary DLLs and exe from &amp;lt;code&amp;gt;&amp;lt;prefix&amp;gt;\bin&amp;lt;/code&amp;gt; into &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt;.&lt;br /&gt;
The current list of required DLLs and EXE is:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
gspawn-win64-helper.exe&lt;br /&gt;
gspawn-win64-helper-console.exe&lt;br /&gt;
gdbus.exe&lt;br /&gt;
libatk-1.0-0.dll&lt;br /&gt;
libatkmm-1.6-1.dll&lt;br /&gt;
libbz2-1.dll&lt;br /&gt;
libbrotlicommon.dll&lt;br /&gt;
libbrotlidec.dll&lt;br /&gt;
libcairo-2.dll&lt;br /&gt;
libcairo-gobject-2.dll&lt;br /&gt;
libcairomm-1.0-1.dll&lt;br /&gt;
libdatrie-1.dll&lt;br /&gt;
libdeflate.dll&lt;br /&gt;
libepoxy-0.dll&lt;br /&gt;
libexpat-1.dll&lt;br /&gt;
libffi-7.dll&lt;br /&gt;
libfftw3f-3.dll&lt;br /&gt;
libfontconfig-1.dll&lt;br /&gt;
libfreetype-6.dll&lt;br /&gt;
libfribidi-0.dll&lt;br /&gt;
libgcc_s_seh-1.dll&lt;br /&gt;
libgdk_pixbuf-2.0-0.dll&lt;br /&gt;
libgdk-3-0.dll&lt;br /&gt;
libgdkmm-3.0-1.dll&lt;br /&gt;
libgio-2.0-0.dll&lt;br /&gt;
libgiomm-2.4-1.dll&lt;br /&gt;
libglib-2.0-0.dll&lt;br /&gt;
libglibmm-2.4-1.dll&lt;br /&gt;
libgmodule-2.0-0.dll&lt;br /&gt;
libgobject-2.0-0.dll&lt;br /&gt;
libgomp-1.dll&lt;br /&gt;
libgraphite2.dll&lt;br /&gt;
libgtk-3-0.dll&lt;br /&gt;
libgtkmm-3.0-1.dll&lt;br /&gt;
libharfbuzz-0.dll&lt;br /&gt;
libiconv-2.dll&lt;br /&gt;
libintl-8.dll&lt;br /&gt;
libjbig-0.dll&lt;br /&gt;
libjpeg-8.dll&lt;br /&gt;
liblcms2-2.dll&lt;br /&gt;
liblensfun.dll&lt;br /&gt;
liblerc.dll&lt;br /&gt;
liblzma-5.dll&lt;br /&gt;
libpango-1.0-0.dll&lt;br /&gt;
libpangocairo-1.0-0.dll&lt;br /&gt;
libpangoft2-1.0-0.dll&lt;br /&gt;
libpangomm-1.4-1.dll&lt;br /&gt;
libpangowin32-1.0-0.dll&lt;br /&gt;
libpcre-1.dll&lt;br /&gt;
libpixman-1-0.dll&lt;br /&gt;
libpng16-16.dll&lt;br /&gt;
librsvg-2-2.dll&lt;br /&gt;
libsigc-2.0-0.dll&lt;br /&gt;
libstdc++-6.dll&lt;br /&gt;
libsystre-0.dll&lt;br /&gt;
libthai-0.dll&lt;br /&gt;
libtiff-5.dll&lt;br /&gt;
libtre-5.dll&lt;br /&gt;
libwebp-7.dll&lt;br /&gt;
libwinpthread-1.dll&lt;br /&gt;
libxml2-2.dll&lt;br /&gt;
libzstd.dll&lt;br /&gt;
zlib1.dll&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the following list of Adwaita theme files and directories  from &amp;lt;code&amp;gt;&amp;lt;prefix&amp;gt;\share\icons\Adwaita\&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;.\share\icons\Adwaita\&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
scalable\actions&lt;br /&gt;
scalable\devices&lt;br /&gt;
scalable\mimetypes&lt;br /&gt;
scalable\places&lt;br /&gt;
scalable\status&lt;br /&gt;
scalable\ui&lt;br /&gt;
index.theme&lt;br /&gt;
cursors\plus.cur&lt;br /&gt;
cursors\sb_h_double_arrow.cur&lt;br /&gt;
cursors\sb_left_arrow.cur&lt;br /&gt;
cursors\sb_right_arrow.cur&lt;br /&gt;
cursors\sb_v_double_arrow.cur&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy following files :&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;prefix&amp;gt;\lib\gdk-pixbuf-2.0 -&amp;gt; .\lib\gdk-pixbuf-2.0&lt;br /&gt;
&amp;lt;prefix&amp;gt;\share\glib-2.0\schemas\gschemas.compiled -&amp;gt; .\share\glib-2.0\schemas&lt;br /&gt;
&amp;lt;prefix&amp;gt;\share\lensfun\version_1\* -&amp;gt; .\share\lensfun&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create in .\share\gtk-3.0 a file &amp;lt;code&amp;gt;settings.ini&amp;lt;/code&amp;gt; containing :&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
[Settings] gtk-button-images=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Creating a distributable package ==&lt;br /&gt;
&lt;br /&gt;
If you plan to distribute RawTherapee packages for the Windows platform, as a first step you need to make sure that RawTherapee will be built for the &amp;quot;generic&amp;quot; processor target. To do so, use &amp;lt;code&amp;gt;-DPROC_TARGET_NUMBER=&amp;quot;1&amp;quot;&amp;lt;/code&amp;gt; in the CMake command.&lt;br /&gt;
&lt;br /&gt;
During compilation, a script named &amp;lt;code&amp;gt;WindowsInnoSetup.iss&amp;lt;/code&amp;gt; is created in the RawTherapee installation folder. This script is used by Inno Setup [http://www.jrsoftware.org/isinfo.php], a program which is used to generate installers for Windows programs. It is advised to download the Unicode version [http://www.jrsoftware.org/download.php/is-unicode.exe] to avoid problems with some languages.&lt;br /&gt;
&lt;br /&gt;
To help users [[How_to_write_useful_bug_reports|write useful bug reports]], package maintainers are encouraged to produce builds which include both a &amp;quot;release&amp;quot; and a &amp;quot;debug&amp;quot; executable, and to bundle them together with the GDB debugger executable.&lt;br /&gt;
&lt;br /&gt;
In other words, put the &amp;lt;code&amp;gt;rawtherapee.exe&amp;lt;/code&amp;gt; (release) file together with the &amp;lt;code&amp;gt;rawtherapee-debug.exe&amp;lt;/code&amp;gt; (debug) file and the &amp;lt;code&amp;gt;gdb.exe&amp;lt;/code&amp;gt; file together into the same installer or the same archive. An alternative is to produce &amp;quot;relwithdebinfo&amp;quot; builds - these are much faster than &amp;quot;debug&amp;quot; but not as optimized as &amp;quot;release&amp;quot; builds, yet they provide just about as much useful information as &amp;quot;debug&amp;quot; builds. &lt;br /&gt;
&lt;br /&gt;
When making &amp;quot;relwithdebinfo&amp;quot; or &amp;quot;debug&amp;quot; builds you must provide the GDB debugger executable. Windows binaries of the debugger &amp;lt;code&amp;gt;gdb.exe&amp;lt;/code&amp;gt; can be downloaded from [http://www.equation.com/servlet/equation.cmd?fa=gdb here] in 32- and 64-bit versions and will be copied into Rawtherapee installation folder.&lt;br /&gt;
&lt;br /&gt;
Now that everything is set up, to create the package right-click on the &amp;lt;code&amp;gt;WindowsInnoSetup.iss&amp;lt;/code&amp;gt; script and choose ''Compile'' from the context menu. It will automatically generate the installer and place it in the parent folder.&lt;br /&gt;
&lt;br /&gt;
To make your new package compatible with the RawTherapee website's upload panel, create a zip archive in which you will place both the newly created installer and the corresponding ''AboutThisBuild.txt'' file which can be found at the same place. Name the resulting zip archive following this template:&lt;br /&gt;
&amp;lt;code&amp;gt;RawTherapee_&amp;lt;version&amp;gt;_win64_&amp;lt;buildtype&amp;gt;.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are building and distributing nightly builds, follow this template:&lt;br /&gt;
&amp;lt;code&amp;gt;RawTherapee_&amp;lt;branch&amp;gt;_&amp;lt;version&amp;gt;_win64_&amp;lt;buildtype&amp;gt;.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;win64&amp;quot;  means it can run on 64-bit Windows (in effect, only Windows 7 and newer is officially supported).&lt;br /&gt;
* The &amp;quot;version&amp;quot; will either look like &amp;lt;code&amp;gt;5.8&amp;lt;/code&amp;gt; if you checkout the &amp;lt;code&amp;gt;5.8&amp;lt;/code&amp;gt; tag, or &amp;lt;code&amp;gt;5.8-g35abd92&lt;br /&gt;
&amp;lt;/code&amp;gt; if you checkout the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch after 5.8 was tagged.&lt;br /&gt;
* If you are shipping more than one build type in an installer, don't include &amp;lt;buildtype&amp;gt; in the name.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Windows&amp;diff=9062</id>
		<title>Windows</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Windows&amp;diff=9062"/>
		<updated>2022-02-02T06:40:02Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Updated dependencies (as per https://github.com/Beep6581/RawTherapee/pull/6413)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Windows&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Follow the instructions on this page to compile RawTherapee on Windows using the [https://www.msys2.org MSYS2] build environment. For more details on customizing and understanding the build process, see the [[Linux]] article.&lt;br /&gt;
&lt;br /&gt;
Note: this guide applies to compiling the '''64-bit''' version of RawTherapee under '''Windows 7 and newer'''. Compiling the 32-bit version is no longer supported, nor is compilation on older operating systems. The latest version of RawTherapee to work under 32-bit Windows XP is 5.0-rc1, and can be downloaded [http://www.rawtherapee.com/downloads/5.0-r1/ here] (dated 2017-02-02).&lt;br /&gt;
&lt;br /&gt;
Note that RawTherapee also requires the availability of GTK+ 3.22.24 or newer to have [https://gitlab.gnome.org/GNOME/gtk/issues/760#note_110809 native window support]. Without it RawTherapee may exhibit [https://github.com/Beep6581/RawTherapee/issues/4125 strange behavior], such as maximizing underneath the taskbar in Windows 10. When using an up to date build environment, you should not encounter this problem.&lt;br /&gt;
&lt;br /&gt;
== MSYS2 Installation ==&lt;br /&gt;
&lt;br /&gt;
=== Install MSYS2 base system ===&lt;br /&gt;
&lt;br /&gt;
Install the build environment MSYS2 carefully by following the instructions from the [https://www.msys2.org MSYS2 website]. Make sure to update the system fully until no further updates are available, using the command:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ pacman -Syu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
MSYS2 provides [https://www.msys2.org/wiki/MSYS2-introduction/ three 'shells'] (command-line interfaces) for different purposes: '''MSYS''', '''MinGW 32-bit''' and '''MinGW 64-bit'''. They can be launched through shortcuts in your Start menu. Most commonly you will be running a 64-bit operating system and will want to create applications that are optimized for that. Therefore, start the '''MSYS2 MinGW 64-bit''' shell and continue below.&lt;br /&gt;
&lt;br /&gt;
[[File:MSYS2 Shell.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note: in following text, &amp;lt;code&amp;gt;&amp;lt;MSYS2&amp;gt;&amp;lt;/code&amp;gt; refers to the MSYS2 installation folder, typically &amp;lt;code&amp;gt;C:\msys64&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install tools and libraries ===&lt;br /&gt;
&lt;br /&gt;
MSYS2 uses the package manager &amp;lt;code&amp;gt;pacman&amp;lt;/code&amp;gt; to install software and components. Please refer to the [https://wiki.archlinux.org/index.php/pacman pacman manual] for details.&lt;br /&gt;
 &lt;br /&gt;
First, install a few miscellaneous tools:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ pacman -S tar gzip nano make diffutils intltool git&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the necessary development tools and the required libraries:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-gdb mingw-w64-x86_64-make mingw-w64-x86_64-pkg-config mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-gtkmm3 mingw-w64-x86_64-lcms2 mingw-w64-x86_64-fftw mingw-w64-x86_64-lensfun mingw-w64-x86_64-libiptcdata&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Updating Lensfun database ===&lt;br /&gt;
&lt;br /&gt;
RawTherapee uses the [https://lensfun.github.io Lensfun] library for lens-specific corrections. Run the following command to update the database:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ lensfun-update-data&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The updater returns the path where the updated database is located. '''Copy this path for later use!'''&lt;br /&gt;
&lt;br /&gt;
=== Download and build libiptcdata ===&lt;br /&gt;
&lt;br /&gt;
Since December 2020 the &amp;lt;code&amp;gt;libiptcdata&amp;lt;/code&amp;gt; library is provided by MSYS2 and no longer requires manual compilation. &amp;lt;i&amp;gt;Only if you experience problems using this library&amp;lt;/i&amp;gt;, follow the instructions below to manually build it. Otherwise, continue to the next section.&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cd ~&lt;br /&gt;
$ curl -LO http://downloads.sourceforge.net/project/libiptcdata/libiptcdata/1.0.4/libiptcdata-1.0.4.tar.gz&lt;br /&gt;
$ tar xzf libiptcdata-1.0.4.tar.gz&lt;br /&gt;
$ cd libiptcdata-1.0.4&lt;br /&gt;
$ ./configure --prefix=/mingw64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some modifications to the resulting &amp;lt;code&amp;gt;Makefile&amp;lt;/code&amp;gt; are needed. You can edit the file with any text editor (either through your OS or from within the shell). We use the &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; editor from within the shell:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ nano Makefile&lt;br /&gt;
&lt;br /&gt;
# search (command Ctrl+W)&lt;br /&gt;
DIST_SUBDIRS = m4 libiptcdata po iptc docs win python&lt;br /&gt;
# and replace with&lt;br /&gt;
DIST_SUBDIRS = m4 libiptcdata po win python&lt;br /&gt;
&lt;br /&gt;
# search&lt;br /&gt;
SUBDIRS = m4 libiptcdata po iptc docs win $(MAYBE_PYTHONLIB)&lt;br /&gt;
# and replace with&lt;br /&gt;
SUBDIRS = m4 libiptcdata po win $(MAYBE_PYTHONLIB)&lt;br /&gt;
&lt;br /&gt;
# save and quit&lt;br /&gt;
Ctrl+X, Y&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally build and install the library:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Clone and build RawTherapee ==&lt;br /&gt;
&lt;br /&gt;
=== Clone RawTherapee's git repository. ===&lt;br /&gt;
RawTherapee's source code can be cloned from [https://github.com/Beep6581/RawTherapee the official GitHub repository]:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cd ~&lt;br /&gt;
$ git clone git://github.com/Beep6581/RawTherapee.git&lt;br /&gt;
$ cd RawTherapee&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Switching branches ===&lt;br /&gt;
After cloning you will automatically have checked out the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch. This is the main development branch of RawTherapee and probably what you want to use. To switch to a [https://github.com/Beep6581/RawTherapee/branches different branch], do the following:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ git checkout branchname # replace with another available branch name&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create a separate directory for the build ===&lt;br /&gt;
It is essential to create a new directory to build the application. The directory can have any name, for example:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ mkdir build&lt;br /&gt;
$ cd build&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: if you switch branches, ''always build in an empty directory'' to prevent issues. From within a build directory, you can run &amp;lt;code&amp;gt;rm -rf *&amp;lt;/code&amp;gt; to remove all files.&lt;br /&gt;
&lt;br /&gt;
=== Configuration and compilation ===&lt;br /&gt;
To create an optimized build for your machine architecture, use the following commands:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cmake -G &amp;quot;Ninja&amp;quot; -DLENSFUNDBDIR=put/your/lensfun/directory/here -DCMAKE_BUILD_TYPE=&amp;quot;release&amp;quot; -DPROC_TARGET_NUMBER=&amp;quot;2&amp;quot; -DCACHE_NAME_SUFFIX=&amp;quot;5-dev&amp;quot; ..&lt;br /&gt;
$ cmake --build . --target install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Make sure to replace the path to the Lensfun database with the actual path obtained a few steps before. See the [[Linux#CMake|Linux article]] for more details on the various options. Depending on your system, the build process may take anywhere between 5 and 25 minutes.&lt;br /&gt;
&lt;br /&gt;
There may be warnings during the build process which you can safely ignore. Errors that are not traceable to a mistake when following this guide should be reported [https://github.com/Beep6581/RawTherapee/issues/new?assignees=&amp;amp;labels=&amp;amp;template=bug_report.md&amp;amp;title= here]. &lt;br /&gt;
&lt;br /&gt;
=== Starting RawTherapee ===&lt;br /&gt;
RawTherapee can now be run:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ ./release/rawtherapee.exe # replace release with debug or relwithdebinfo if you built another target&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional: preloaded CMake cache ===&lt;br /&gt;
As described in the [https://cmake.org/cmake/help/latest/manual/cmake.1.html CMake manual]&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
-C &amp;lt;initial-cache&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    Pre-load a script to populate the cache.&lt;br /&gt;
&lt;br /&gt;
    When cmake is first run in an empty build tree, it creates a CMakeCache.txt file and populates it with customizable settings for the project. This option may be used to specify a file from which to load cache entries before the first pass through the project’s cmake listfiles. The loaded entries take priority over the project’s default values. The given file should be a CMake script containing SET commands that use the CACHE option, not a cache-format file.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To simplify the invocation of CMake and be able to easily define Windows specific options, a &amp;lt;code&amp;gt;win.cmake&amp;lt;/code&amp;gt; template script is provided with the sources. Copy it out of RawTherapee's source to avoid overwriting by update for instance in &amp;lt;code&amp;gt;mywin.cmake&amp;lt;/code&amp;gt;.&lt;br /&gt;
Edit it to define or modify options. To preload the cache, in the CMake command line:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cmake -G &amp;quot;Ninja&amp;quot; -DLENSFUNDBDIR=share/lensfun -DCMAKE_BUILD_TYPE=&amp;quot;release&amp;quot; -DPROC_TARGET_NUMBER=&amp;quot;2&amp;quot; -DCACHE_NAME_SUFFIX=&amp;quot;5-dev&amp;quot; -C &amp;lt;path/to/mywin.cmake&amp;gt; ..&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Making a bundled build ==&lt;br /&gt;
&lt;br /&gt;
This section only applies if you want to run RawTherapee outside the MinGW shell or distribute it.&lt;br /&gt;
&lt;br /&gt;
Note: You can copy either with the Windows file manager or, recommended, with [https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy robocopy] inside the &amp;lt;code&amp;gt;mingw64&amp;lt;/code&amp;gt; shell script using &amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt; instead of &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt; for the options.&lt;br /&gt;
&lt;br /&gt;
=== Definition of folders ===&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;prefix&amp;gt;&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;&amp;lt;MSYS2&amp;gt;\mingw64&amp;lt;/code&amp;gt;,&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;MSYS2&amp;gt;&amp;lt;/code&amp;gt; is the MSYS2 installation folder,&lt;br /&gt;
*and &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt; is the RawTherapee installation folder.&lt;br /&gt;
&lt;br /&gt;
=== Copy RawTherapee executable and generated files ===&lt;br /&gt;
Copy the content of &amp;lt;code&amp;gt;c:\code\repo-rt\build\&amp;lt;debug|release|relwithdebinfo&amp;gt;&amp;lt;/code&amp;gt; into &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Copy the  dependencies ===&lt;br /&gt;
Copy the necessary DLLs and exe from &amp;lt;code&amp;gt;&amp;lt;prefix&amp;gt;\bin&amp;lt;/code&amp;gt; into &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt;.&lt;br /&gt;
The current list of required DLLs and EXE is:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
gspawn-win64-helper.exe&lt;br /&gt;
gspawn-win64-helper-console.exe&lt;br /&gt;
gdbus.exe&lt;br /&gt;
libatk-1.0-0.dll&lt;br /&gt;
libatkmm-1.6-1.dll&lt;br /&gt;
libbz2-1.dll&lt;br /&gt;
libbrotlicommon.dll&lt;br /&gt;
libbrotlidec.dll&lt;br /&gt;
libcairo-2.dll&lt;br /&gt;
libcairo-gobject-2.dll&lt;br /&gt;
libcairomm-1.0-1.dll&lt;br /&gt;
libdatrie-1.dll&lt;br /&gt;
libdeflate.dll&lt;br /&gt;
libepoxy-0.dll&lt;br /&gt;
libexpat-1.dll&lt;br /&gt;
libffi-7.dll&lt;br /&gt;
libfftw3f-3.dll&lt;br /&gt;
libfontconfig-1.dll&lt;br /&gt;
libfreetype-6.dll&lt;br /&gt;
libfribidi-0.dll&lt;br /&gt;
libgcc_s_seh-1.dll&lt;br /&gt;
libgdk_pixbuf-2.0-0.dll&lt;br /&gt;
libgdk-3-0.dll&lt;br /&gt;
libgdkmm-3.0-1.dll&lt;br /&gt;
libgio-2.0-0.dll&lt;br /&gt;
libgiomm-2.4-1.dll&lt;br /&gt;
libglib-2.0-0.dll&lt;br /&gt;
libglibmm-2.4-1.dll&lt;br /&gt;
libgmodule-2.0-0.dll&lt;br /&gt;
libgobject-2.0-0.dll&lt;br /&gt;
libgomp-1.dll&lt;br /&gt;
libgraphite2.dll&lt;br /&gt;
libgtk-3-0.dll&lt;br /&gt;
libgtkmm-3.0-1.dll&lt;br /&gt;
libharfbuzz-0.dll&lt;br /&gt;
libiconv-2.dll&lt;br /&gt;
libintl-8.dll&lt;br /&gt;
libjbig-0.dll&lt;br /&gt;
libjpeg-8.dll&lt;br /&gt;
liblcms2-2.dll&lt;br /&gt;
liblensfun.dll&lt;br /&gt;
liblerc.dll&lt;br /&gt;
liblzma-5.dll&lt;br /&gt;
libpango-1.0-0.dll&lt;br /&gt;
libpangocairo-1.0-0.dll&lt;br /&gt;
libpangoft2-1.0-0.dll&lt;br /&gt;
libpangomm-1.4-1.dll&lt;br /&gt;
libpangowin32-1.0-0.dll&lt;br /&gt;
libpcre-1.dll&lt;br /&gt;
libpixman-1-0.dll&lt;br /&gt;
libpng16-16.dll&lt;br /&gt;
librsvg-2-2.dll&lt;br /&gt;
libsigc-2.0-0.dll&lt;br /&gt;
libstdc++-6.dll&lt;br /&gt;
libsystre-0.dll&lt;br /&gt;
libthai-0.dll&lt;br /&gt;
libtiff-5.dll&lt;br /&gt;
libtre-5.dll&lt;br /&gt;
libwebp-7.dll&lt;br /&gt;
libwinpthread-1.dll&lt;br /&gt;
libxml2-2.dll&lt;br /&gt;
libzstd.dll&lt;br /&gt;
zlib1.dll&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the following list of Adwaita theme files and directories  from &amp;lt;code&amp;gt;&amp;lt;prefix&amp;gt;\share\icons\Adwaita\&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;.\share\icons\Adwaita\&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
scalable\actions&lt;br /&gt;
scalable\devices&lt;br /&gt;
scalable\mimetypes&lt;br /&gt;
scalable\places&lt;br /&gt;
scalable\status&lt;br /&gt;
scalable\ui&lt;br /&gt;
index.theme&lt;br /&gt;
cursors\plus.cur&lt;br /&gt;
cursors\sb_h_double_arrow.cur&lt;br /&gt;
cursors\sb_left_arrow.cur&lt;br /&gt;
cursors\sb_right_arrow.cur&lt;br /&gt;
cursors\sb_v_double_arrow.cur&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy following files :&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;prefix&amp;gt;\lib\gdk-pixbuf-2.0 -&amp;gt; .\lib\gdk-pixbuf-2.0&lt;br /&gt;
&amp;lt;prefix&amp;gt;\share\glib-2.0\schemas\gschemas.compiled -&amp;gt; .\share\glib-2.0\schemas&lt;br /&gt;
&amp;lt;prefix&amp;gt;\share\lensfun\version_1\* -&amp;gt; .\share\lensfun&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create in .\share\gtk-3.0 a file &amp;lt;code&amp;gt;settings.ini&amp;lt;/code&amp;gt; containing :&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
[Settings] gtk-button-images=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Creating a distributable package ==&lt;br /&gt;
&lt;br /&gt;
If you plan to distribute RawTherapee packages for the Windows platform, as a first step you need to make sure that RawTherapee will be built for the &amp;quot;generic&amp;quot; processor target. To do so, use &amp;lt;code&amp;gt;-DPROC_TARGET_NUMBER=&amp;quot;1&amp;quot;&amp;lt;/code&amp;gt; in the CMake command.&lt;br /&gt;
&lt;br /&gt;
During compilation, a script named &amp;lt;code&amp;gt;WindowsInnoSetup.iss&amp;lt;/code&amp;gt; is created in the RawTherapee installation folder. This script is used by Inno Setup [http://www.jrsoftware.org/isinfo.php], a program which is used to generate installers for Windows programs. It is advised to download the Unicode version [http://www.jrsoftware.org/download.php/is-unicode.exe] to avoid problems with some languages.&lt;br /&gt;
&lt;br /&gt;
To help users [[How_to_write_useful_bug_reports|write useful bug reports]], package maintainers are encouraged to produce builds which include both a &amp;quot;release&amp;quot; and a &amp;quot;debug&amp;quot; executable, and to bundle them together with the GDB debugger executable.&lt;br /&gt;
&lt;br /&gt;
In other words, put the &amp;lt;code&amp;gt;rawtherapee.exe&amp;lt;/code&amp;gt; (release) file together with the &amp;lt;code&amp;gt;rawtherapee-debug.exe&amp;lt;/code&amp;gt; (debug) file and the &amp;lt;code&amp;gt;gdb.exe&amp;lt;/code&amp;gt; file together into the same installer or the same archive. An alternative is to produce &amp;quot;relwithdebinfo&amp;quot; builds - these are much faster than &amp;quot;debug&amp;quot; but not as optimized as &amp;quot;release&amp;quot; builds, yet they provide just about as much useful information as &amp;quot;debug&amp;quot; builds. &lt;br /&gt;
&lt;br /&gt;
When making &amp;quot;relwithdebinfo&amp;quot; or &amp;quot;debug&amp;quot; builds you must provide the GDB debugger executable. Windows binaries of the debugger &amp;lt;code&amp;gt;gdb.exe&amp;lt;/code&amp;gt; can be downloaded from [http://www.equation.com/servlet/equation.cmd?fa=gdb here] in 32- and 64-bit versions and will be copied into Rawtherapee installation folder.&lt;br /&gt;
&lt;br /&gt;
Now that everything is set up, to create the package right-click on the &amp;lt;code&amp;gt;WindowsInnoSetup.iss&amp;lt;/code&amp;gt; script and choose ''Compile'' from the context menu. It will automatically generate the installer and place it in the parent folder.&lt;br /&gt;
&lt;br /&gt;
To make your new package compatible with the RawTherapee website's upload panel, create a zip archive in which you will place both the newly created installer and the corresponding ''AboutThisBuild.txt'' file which can be found at the same place. Name the resulting zip archive following this template:&lt;br /&gt;
&amp;lt;code&amp;gt;RawTherapee_&amp;lt;version&amp;gt;_WinVista_64_&amp;lt;buildtype&amp;gt;.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are building and distributing nightly builds, follow this template:&lt;br /&gt;
&amp;lt;code&amp;gt;RawTherapee_&amp;lt;branch&amp;gt;_&amp;lt;version&amp;gt;_WinVista_64_&amp;lt;buildtype&amp;gt;.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;WinVista&amp;quot;  means it can run on any version of Windows from Vista upwards, including 10.&lt;br /&gt;
* The &amp;quot;version&amp;quot; will either look like &amp;lt;code&amp;gt;5.8&amp;lt;/code&amp;gt; if you checkout the &amp;lt;code&amp;gt;5.8&amp;lt;/code&amp;gt; tag, or &amp;lt;code&amp;gt;5.8-g35abd92&lt;br /&gt;
&amp;lt;/code&amp;gt; if you checkout the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch after 5.8 was tagged.&lt;br /&gt;
* If you are shipping more than one build type in an installer, don't include &amp;lt;buildtype&amp;gt; in the name.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Linux&amp;diff=8655</id>
		<title>Linux</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Linux&amp;diff=8655"/>
		<updated>2021-07-30T19:25:31Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Add expat-devel to Fedora build instructions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Linux&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This page details instructions for compiling RawTherapee on '''GNU/Linux''' systems. There are also instructions for compiling on [[Windows]] and [[macOS]].&lt;br /&gt;
&lt;br /&gt;
When in doubt, [[IRC|join us on IRC]] or in the [[Forum]] and ask a human!&lt;br /&gt;
&lt;br /&gt;
== Dependencies ==&lt;br /&gt;
&lt;br /&gt;
To compile RawTherapee your system will need a set of tools and code libraries from other programs. These are called dependencies, and here is a list of them for the latest version of RawTherapee:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+ Build-time dependencies for RawTherapee:&lt;br /&gt;
! Package      !! Version            !! URL&lt;br /&gt;
|-&lt;br /&gt;
| CMake        || cmake&amp;gt;=3.5         || https://cmake.org/&lt;br /&gt;
|-&lt;br /&gt;
| EXIV2        || exiv2&amp;gt;=0.19        || http://www.exiv2.org/&lt;br /&gt;
|-&lt;br /&gt;
| EXPAT        || expat&amp;gt;=2.1.0       || https://libexpat.github.io/&lt;br /&gt;
|-&lt;br /&gt;
| FFTW3        || fftw&amp;gt;=3.2.2        || http://fftw.org/&lt;br /&gt;
|-&lt;br /&gt;
| GCC          || gcc&amp;gt;=4.9           || https://gcc.gnu.org/&lt;br /&gt;
|-&lt;br /&gt;
| GLIB2        || glib-2.0&amp;gt;=2.24     || https://www.gtk.org/&lt;br /&gt;
|-&lt;br /&gt;
| GLIBMM       || glibmm-2.4&amp;gt;=2.24   || https://www.gtkmm.org/&lt;br /&gt;
|-&lt;br /&gt;
| GTK+         || gtk+-3.16 &amp;lt; 3.24.0 || https://www.gtk.org/&lt;br /&gt;
|-&lt;br /&gt;
| GTKMM        || gtkmm-3.16         || https://www.gtkmm.org/&lt;br /&gt;
|-&lt;br /&gt;
| JPEG         || libjpeg&amp;gt;=6b        || https://libjpeg-turbo.org/ https://jpegclub.org/ https://www.ijg.org/&lt;br /&gt;
|-&lt;br /&gt;
| LCMS2        || lcms&amp;gt;=2.6          || https://www.littlecms.com/&lt;br /&gt;
|-&lt;br /&gt;
| LENSFUN      || lensfun&amp;gt;=0.2       || https://github.com/lensfun/lensfun&lt;br /&gt;
|-&lt;br /&gt;
| LIBCANBERRA  || libcanberra&amp;gt;=0.29  || http://0pointer.de/lennart/projects/libcanberra/ (Linux only)&lt;br /&gt;
|-&lt;br /&gt;
| LIBIPTCDATA  || libiptcdata&amp;gt;=1.0.2 || http://libiptcdata.sourceforge.net&lt;br /&gt;
|-&lt;br /&gt;
| PNG          || libpng&amp;gt;=1.2.44     || http://www.libpng.org/&lt;br /&gt;
|-&lt;br /&gt;
| librsvg      || librsvg&amp;gt;=2.40      || https://github.com/GNOME/librsvg&lt;br /&gt;
|-&lt;br /&gt;
| SIGC         || sigc++-2.0         || https://github.com/libsigcplusplus/libsigcplusplus&lt;br /&gt;
|-&lt;br /&gt;
| TIFF         || libtiff&amp;gt;=4.0.4     || http://libtiff.org/&lt;br /&gt;
|-&lt;br /&gt;
| ZLIB         || zlib&amp;gt;=1.2.3        || http://www.zlib.net/&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
In order to install all these dependencies, you will need to open a console and paste the code from the appropriate section into the console.&lt;br /&gt;
&lt;br /&gt;
The code snippets below list dependencies for the latest RawTherapee code which requires GTK3. We dropped support for GTK2 with release &amp;quot;5.0-r1-gtk2&amp;quot; in February 2017. If you use a modern distribution, just copy and paste the code snippets as they are. If you're on an old distribution without the required GTK3 support, then refer to the archived [[Linux_GTK2|GTK2]] article, then checkout and compile the obsolete &amp;lt;code&amp;gt;5.0-r1-gtk2&amp;lt;/code&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
=== Arch/Manjaro ===&lt;br /&gt;
&lt;br /&gt;
Current versions of Arch and Manjaro work well out of the box. Refer to the [[Linux_GTK2|GTK2]] article if compiling on a version older than 17.1.12.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo pacman -S --needed cmake exiv2 expat fftw glib2 glibmm gtk3 gtkmm3 lcms2 lensfun libcanberra libiptcdata libjpeg-turbo libpng librsvg libsigc++ libtiff zlib&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Compilation|Compilation]].&lt;br /&gt;
&lt;br /&gt;
=== CentOS ===&lt;br /&gt;
&lt;br /&gt;
CentOS 7 has very outdated packages and requires extra steps to install a recent GCC, git, lensfun and libtiff. The steps below were verified to work in CentOS 7.4.1708, but proceed at your own risk.&lt;br /&gt;
&lt;br /&gt;
GCC &amp;gt;=4.9.3:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo yum update&lt;br /&gt;
sudo yum install cmake git&lt;br /&gt;
sudo yum install centos-release-scl&lt;br /&gt;
sudo yum install devtoolset-7-gcc*&lt;br /&gt;
scl enable devtoolset-7 bash&lt;br /&gt;
source /opt/rh/devtoolset-7/enable&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
git &amp;gt;=2.7:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
lensfun:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm&lt;br /&gt;
sudo rpm -ivh epel-release-latest-7.noarch.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
libtiff &amp;gt;=4.0.4:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo yum install ninja-build&lt;br /&gt;
mkdir ~/programs &amp;amp;&amp;amp; cd ~/programs&lt;br /&gt;
wget http://download.osgeo.org/libtiff/tiff-4.0.9.tar.gz&lt;br /&gt;
tar zxvf tiff-4.0.9.tar.gz&lt;br /&gt;
mkdir tiff-4.0.9/libtiff-build &amp;amp;&amp;amp; cd tiff-4.0.9/libtiff-build&lt;br /&gt;
cmake -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/libtiff-4.0.9 -DCMAKE_INSTALL_PREFIX=/usr -G Ninja ..&lt;br /&gt;
ninja-build&lt;br /&gt;
sudo ninja-build install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the other dependencies:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo yum install curl expat-devel fftw-devel gtk3-devel gtkmm30-devel lcms2-devel lensfun-devel libcanberra-devel libiptcdata-devel libjpeg-turbo-devel libpng-devel librsvg2-devel zlib-devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Symlink libatomic:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo ln -s /usr/lib64/libatomic.so.1 /usr/lib64/libatomic.so&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As you proceed to the next step - compilation - you will need to edit the &amp;lt;code&amp;gt;build-rawtherapee&amp;lt;/code&amp;gt; script and add these three lines to the CMake section near the end of the file, for example after the &amp;quot;-DWITH_BENCHMARK&amp;quot; line before the &amp;quot;$HOME&amp;quot; line:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;    -DTIFF_INCLUDE_DIR=&amp;quot;$HOME/programs/tiff-4.0.9/libtiff&amp;quot; \&lt;br /&gt;
    -DTIFF_LIBRARY=&amp;quot;$HOME/programs/tiff-4.0.9/libtiff-build/libtiff/libtiff.so&amp;quot; \&lt;br /&gt;
    -DCMAKE_CXX_FLAGS=&amp;quot;-Wno-deprecated -Wno-parentheses&amp;quot; \&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Compilation|Compilation]].&lt;br /&gt;
&lt;br /&gt;
=== Debian/Ubuntu/Mint/elementary OS ===&lt;br /&gt;
&lt;br /&gt;
Current versions of these distributions work well out of the box (Debian &amp;gt;=9, Ubuntu &amp;gt;=18.04 LTS, Linux Mint &amp;gt;=19, elementary OS &amp;gt;=5). Instructions below assume a fully updated system. Additional packages may need to be installed on your particular system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo apt install git build-essential cmake curl pkg-config libgtk-3-dev libgtkmm-3.0-dev liblensfun-dev librsvg2-dev liblcms2-dev libfftw3-dev libiptcdata0-dev libtiff5-dev libcanberra-gtk3-dev&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Ubuntu 16.04 LTS (Xenial) ====&lt;br /&gt;
RawTherapee 5.8 (release) is the latest version supported for Xenial-based distributions. See [https://github.com/Beep6581/RawTherapee/issues/5943 here] for details. When compiling, follow the manual steps and use git to checkout the &amp;lt;code&amp;gt;5.8&amp;lt;/code&amp;gt; branch.&lt;br /&gt;
&lt;br /&gt;
==== Ubuntu &amp;lt;=14.04 LTS (Trusty), Debian &amp;lt;=8 (Jessie) ====&lt;br /&gt;
Refer to the [[Linux_GTK2|GTK2]] article if compiling on earlier versions of Ubuntu. The GTK3 version of RawTherapee is unsupported in these distributions.&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Compilation|Compilation]].&lt;br /&gt;
&lt;br /&gt;
=== Fedora ===&lt;br /&gt;
&lt;br /&gt;
Current versions of Fedora work well out of the box. Instructions below assume a fully updated system. Additional packages may need to be installed on your particular system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo dnf install git make cmake curl gcc gcc-c++ gtk3-devel gtkmm30-devel lensfun-devel librsvg2-devel lcms2-devel fftw-devel expat-devel libiptcdata-devel libtiff-devel libjpeg-turbo-devel libcanberra-devel libatomic&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Fedora &amp;lt;=23 ====&lt;br /&gt;
RawTherapee 5.6 (release) is the latest version supported for this distribution because of a higher CMake version requirement (see [https://github.com/Beep6581/RawTherapee/issues/5302 here]). When compiling, follow the manual steps and use git to checkout the &amp;lt;code&amp;gt;5.6&amp;lt;/code&amp;gt; branch.&lt;br /&gt;
&lt;br /&gt;
==== Fedora 22 ====&lt;br /&gt;
In addition to the above notices and requirements, an updated version of &amp;lt;code&amp;gt;libtiff&amp;lt;/code&amp;gt; needs to be compiled manually.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo yum install ninja-build&lt;br /&gt;
cd ~&lt;br /&gt;
wget http://download.osgeo.org/libtiff/tiff-4.0.9.tar.gz&lt;br /&gt;
tar zxvf tiff-4.0.9.tar.gz&lt;br /&gt;
cd tiff-4.0.9.tar.gz&lt;br /&gt;
mkdir build &amp;amp;&amp;amp; cd build&lt;br /&gt;
cmake -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/libtiff-4.0.9 -DCMAKE_INSTALL_PREFIX=/usr -G Ninja ..&lt;br /&gt;
ninja-build&lt;br /&gt;
sudo ninja-build install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Fedora &amp;lt;=21 ====&lt;br /&gt;
Refer to the [[Linux_GTK2|GTK2]] article if compiling on earlier versions of Fedora. The GTK3 version of RawTherapee is unsupported in these distributions.&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Compilation|Compilation]].&lt;br /&gt;
&lt;br /&gt;
=== Gentoo/Sabayon ===&lt;br /&gt;
&lt;br /&gt;
Sabayon users should use the same dependencies as for Gentoo, but instead of &amp;lt;code&amp;gt;sudo emerge -uva&amp;lt;/code&amp;gt; use &amp;lt;code&amp;gt;sudo equo install sys-devel/gcc dev-vcs/git&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo emerge -uva dev-cpp/gtkmm:3.0 dev-libs/expat dev-util/cmake media-gfx/exiv2 media-libs/lcms media-libs/lensfun media-libs/libcanberra media-libs/libiptcdata media-libs/libjpeg-turbo media-libs/libpng gnome-base/librsvg media-libs/tiff net-misc/curl sci-libs/fftw sys-libs/zlib x11-libs/gtk+:3&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Compilation|Compilation]].&lt;br /&gt;
&lt;br /&gt;
=== openSUSE ===&lt;br /&gt;
&lt;br /&gt;
openSUSE Leap 15 and Tumbleweed should work well out of the box. Serious compilation issues can be expected with other versions. Refer to the [[Linux_GTK2|GTK2]] article if compiling on a version older than 42.1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo zypper install git cmake gcc gcc-c++ gtk3-devel gtkmm3-devel liblcms2-devel fftw3-devel libitpcdata-devel librsvg-devel libtiff-devel libjpeg8-devel libcanberra-gtk3-devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For openSUSE 15.1 and newer, the &amp;lt;code&amp;gt;lensfun&amp;lt;/code&amp;gt; library needs to be installed as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo zypper install lensfun-data liblensfun1&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For openSUSE Tumbleweed, the package is slightly different:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo zypper install lensfun-devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For other versions of openSUSE &amp;lt;code&amp;gt;lensfun&amp;lt;/code&amp;gt; has to be installed manually:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;wget https://sourceforge.net/projects/lensfun/files/0.3.2/lensfun-0.3.2.tar.gz&lt;br /&gt;
tar xvf lensfun-0.3.2.tar.gz&lt;br /&gt;
cd lensfun-0.3.2.tar.gz&lt;br /&gt;
mkdir build&lt;br /&gt;
cd build&lt;br /&gt;
cmake ../&lt;br /&gt;
make&lt;br /&gt;
sudo make install&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Compilation|Compilation]].&lt;br /&gt;
&lt;br /&gt;
== Compilation ==&lt;br /&gt;
&lt;br /&gt;
There are two general ways you can compile RawTherapee: either use the [[#The_Automatic_Way|automatic]] Bash script which compiles RawTherapee for you (recommended), or do so [[#The_Manual_Way|manually]].&lt;br /&gt;
&lt;br /&gt;
=== The Automatic Way ===&lt;br /&gt;
&lt;br /&gt;
This is the recommended way of compiling RawTherapee as it is fast, simple and fool-proof. It relies on a Bash script which downloads the latest RawTherapee source code and compiles it in a way which is optimized for your CPU. The compiled builds are ready for use. The script does not check for build-time dependencies, so be sure to read the [[#Dependencies|Dependencies]] section before using the script. The compiled builds are standalone, meaning that you can keep several versions of RawTherapee at the same time simply by renaming the build folders so that creating a new build does not overwrite the previous build, which happens by default.&lt;br /&gt;
&lt;br /&gt;
Run the script as a normal user, not as root!&lt;br /&gt;
&lt;br /&gt;
Open a terminal, get the script, make it executable, and run it:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;cd ~&lt;br /&gt;
wget https://raw.githubusercontent.com/Beep6581/RawTherapee/dev/tools/build-rawtherapee -O build-rawtherapee&lt;br /&gt;
chmod +x build-rawtherapee&lt;br /&gt;
./build-rawtherapee&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If everything goes well, the script will terminate with the message, &amp;quot;To run rawtherapee type: ...&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
To update RawTherapee if you previously compiled it using this script, just re-run the script. That's it.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;build-rawtherapee&amp;lt;/code&amp;gt; script is included in RawTherapee's source code. Since running the script updates the source code, after you compiled your first build you can delete the script you downloaded manually above using wget, and instead use &amp;lt;code&amp;gt;~/programs/code-rawtherapee/tools/build-rawtherapee&amp;lt;/code&amp;gt; which will always update itself.&lt;br /&gt;
&lt;br /&gt;
The script compiles the current branch, which by default is &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; where most of the development happens. To compile a different branch, check it out using standard git commands before running the script. Read more about RawTherapee's branches below in the [[Linux#Choose_a_branch|Choose a Branch]] section.&lt;br /&gt;
&lt;br /&gt;
For more information, see &amp;lt;code&amp;gt;./build-rawtherapee --help&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You have finished, RawTherapee is ready for use. You can skip the &amp;quot;Manual Way&amp;quot; section.&lt;br /&gt;
&lt;br /&gt;
=== The Manual Way ===&lt;br /&gt;
&lt;br /&gt;
The recommended way of compiling RawTherapee is by using the automatic script - see [[#The_Automatic_Way|Compilation: The Automatic Way]]. If you want to learn how to compile manually, read on.&lt;br /&gt;
&lt;br /&gt;
In order to keep your &amp;quot;home&amp;quot; folder clean when manually compiling multiple programs (i.e. when not using your distribution's package manager) and for this manual compilation tutorial to maintain compatibility with the automatic compilation script, you will create the folder &amp;lt;code&amp;gt;~/programs/&amp;lt;/code&amp;gt; which will contain all RawTherapee-related source code in the &amp;lt;code&amp;gt;~/programs/code-rawtherapee&amp;lt;/code&amp;gt; folder, and the compiled build in the &amp;lt;code&amp;gt;~/programs/rawtherapee&amp;lt;/code&amp;gt; folder. You can use the same scheme when compiling other programs.&lt;br /&gt;
&lt;br /&gt;
==== Clone the source ====&lt;br /&gt;
&lt;br /&gt;
First, you need to clone RawTherapee's source code repository. Bring up your console and run this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;mkdir -p ~/programs&lt;br /&gt;
git clone https://github.com/Beep6581/RawTherapee ~/programs/code-rawtherapee&lt;br /&gt;
cd ~/programs/code-rawtherapee&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Choose a branch ====&lt;br /&gt;
&lt;br /&gt;
* Features are developed on their own feature branches.&lt;br /&gt;
* Development happens in the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch. Feature branches are merged into the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch when they're ready. The &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch is unstable.&lt;br /&gt;
* Releases are tagged in the &amp;lt;code&amp;gt;releases&amp;lt;/code&amp;gt; branch.&lt;br /&gt;
&lt;br /&gt;
Checkout the latest tag if you want the most stable code. To see all available tags, type:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;git tag&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Checkout the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch or some other feature branch if you want to test the latest bleeding-edge code. To see all available branches, type:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;git branch -a&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Checking out is done via the &amp;quot;git checkout&amp;quot; command. To checkout a tag or a branch, type:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;git checkout &amp;lt;tag or branch&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
RawTherapee uses GTK+ for the user interface and requires GTK+ version 3.16 or newer. If your system does not support version 3.16 or newer then you must checkout the &amp;lt;code&amp;gt;5.0-r1-gtk2&amp;lt;/code&amp;gt; tag. Our GTK2 support has officially ended on 2 February 2017 - refer to the archived [[Linux_GTK2|GTK2]] article, and update your system.&lt;br /&gt;
&lt;br /&gt;
Compiling old versions of RawTherapee will fail on a modern system, as you will be missing the old dependencies.&lt;br /&gt;
&lt;br /&gt;
==== Compile RawTherapee ====&lt;br /&gt;
&lt;br /&gt;
Now you will make an out-of-source compilation of RawTherapee, it will be built into the &amp;lt;code&amp;gt;~/programs/code-rawtherapee/build/release&amp;lt;/code&amp;gt; folder, and then you will move this folder to &amp;lt;code&amp;gt;~/programs/rawtherapee&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== CMake =====&lt;br /&gt;
&lt;br /&gt;
There are a few compilation settings you need to be aware of, you will pass these to CMake using the &amp;lt;code&amp;gt;-D&amp;lt;/code&amp;gt; option as described below:&lt;br /&gt;
&lt;br /&gt;
; CMAKE_BUILD_TYPE&lt;br /&gt;
: One of: &amp;lt;code&amp;gt;release&amp;lt;/code&amp;gt; (default), &amp;lt;code&amp;gt;relwithdebinfo&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;debug&amp;lt;/code&amp;gt;.&lt;br /&gt;
: This controls whether the build will favor faster execution time or more verbose debugging output.&lt;br /&gt;
: The &amp;quot;debug&amp;quot; and &amp;quot;relwithdebinfo&amp;quot; builds will let you [[How_to_write_useful_bug_reports|get a useful stack-backtrace]] if RawTherapee crashes while running through GDB which you can then submit to us so we can find the problem and fix it. The &amp;quot;debug&amp;quot; build is the slowest but generates the most detailed information. The &amp;quot;relwithdebinfo&amp;quot; build is almost as fast as a &amp;quot;release&amp;quot; build and generates often sufficient information, though not as detailed as a &amp;quot;debug&amp;quot; build. The &amp;quot;release&amp;quot; build will not provide any useful information when it crashes, but does contain many speed optimizations resulting in a program that works several times faster than the &amp;quot;debug&amp;quot; build would. For normal use, make a &amp;quot;release&amp;quot; or &amp;quot;relwithdebinfo&amp;quot; build. If you find a reproducible bug, then make a &amp;quot;debug&amp;quot; build and send us a stack-backtrace (or fix it yourself and send us the patch!). We prefer stack backtraces from debug builds than from relwithdebinfo ones.&lt;br /&gt;
:: To make a &amp;quot;release&amp;quot; type build, set: &amp;lt;code&amp;gt;-DCMAKE_BUILD_TYPE=&amp;quot;release&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; USE_OLD_CXX_ABI&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
: When compiling a program, one must use the same conventions as those used by the libraries which that program relies upon, otherwise compilation (linking) will fail. Generally one does not need to concern oneself with this, but we are now at a time when GCC4 is being phased out by GCC5, each by default using a convention incompatible with the other, and so this issue is relevant. If the libraries on your system have been compiled using GCC5, they probably use a standard called C++11. This means that your RawTherapee build must use the same standard, which is the case by default. However, if despite using GCC5 your libraries were built using the older C++03 standard, then RawTherapee must be set to use the same, and this is when you would set &amp;quot;USE_OLD_CXX_ABI&amp;quot; to &amp;quot;ON&amp;quot;.&lt;br /&gt;
:: To enable USE_OLD_CXX_ABI, set: &amp;lt;code&amp;gt;-DUSE_OLD_CXX_ABI=&amp;quot;ON&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; CACHE_NAME_SUFFIX&lt;br /&gt;
: The CACHE_NAME_SUFFIX options sets the suffix of the cache and config folder names the compiled RawTherapee build will use. See the [[File Paths]] article for an explanation of what those are.&lt;br /&gt;
: For stable releases (if you checkout the &amp;quot;releases&amp;quot; branch) use &amp;lt;code&amp;gt;-DCACHE_NAME_SUFFIX=&amp;quot;&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
: For development builds (if you checkout the &amp;quot;dev&amp;quot; branch or any branch other than &amp;quot;releases&amp;quot;) use &amp;lt;code&amp;gt;-DCACHE_NAME_SUFFIX=&amp;quot;5-dev&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; PROC_TARGET_NUMBER&lt;br /&gt;
: From &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; (default) to &amp;lt;code&amp;gt;9&amp;lt;/code&amp;gt;.&lt;br /&gt;
: The PROC_TARGET_NUMBER option sets which CPU type to optimize for.&lt;br /&gt;
: If building for yourself, use &amp;quot;2&amp;quot;. It means &amp;quot;native&amp;quot;, so the optimizations will be automatically detected for your CPU and RawTherapee will perform as fast as possible on your CPU. It might not run at all on older or other CPU architectures.&lt;br /&gt;
: If building for distribution (for other people), use &amp;quot;1&amp;quot;. It means &amp;quot;generic&amp;quot;, so only optimizations supported by most CPUs will be used, meaning the build can be downloaded and used by anyone, though it won't benefit from the best optimizations possible for the user's CPU.&lt;br /&gt;
: For more info, see the file &amp;quot;ProcessorTargets.cmake&amp;quot; in the cloned repository.&lt;br /&gt;
:: To make a build using &amp;quot;native&amp;quot; optimizations, set: &amp;lt;code&amp;gt;-DPROC_TARGET_NUMBER=&amp;quot;2&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; BUILD_BUNDLE&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt;.&lt;br /&gt;
: Forced to &amp;quot;ON&amp;quot; for Windows and macOS. Optional in Linux where it is &amp;quot;OFF&amp;quot; by default.&lt;br /&gt;
: If set to ON, the program will be built into the &amp;lt;code&amp;gt;DATADIR&amp;lt;/code&amp;gt; folder, otherwise it will be installed relative to &amp;lt;code&amp;gt;CMAKE_INSTALL_PREFIX&amp;lt;/code&amp;gt; which would typically be system-wide.&lt;br /&gt;
&lt;br /&gt;
; BUNDLE_BASE_INSTALL_DIR&lt;br /&gt;
: Use an absolute path.&lt;br /&gt;
: The program will be built into this folder.&lt;br /&gt;
: For example, set it to: &amp;lt;code&amp;gt;-DBUNDLE_BASE_INSTALL_DIR=&amp;quot;$HOME/programs/rawtherapee&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
: If it is not set, the default is to use &amp;lt;code&amp;gt;${CMAKE_BINARY_DIR}/${CMAKE_BUILD_TYPE}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; LENSFUNDBDIR&lt;br /&gt;
: Unset by default.&lt;br /&gt;
: The &amp;lt;code&amp;gt;LENSFUNDBDIR&amp;lt;/code&amp;gt; option permits to locate the lensfun database in the specified directory. It can be unset, absolute or relative.&lt;br /&gt;
: When unset, Lensfun uses its own logic to find the database. This is the recommended option if you have Lensfun installed system-wide and want to use it.&lt;br /&gt;
: You can set it to a relative or absolute path if you want to use a custom lensfun database.&lt;br /&gt;
: If building a bundle, it is relative to the bundle's root folder, otherwise it is relative to &amp;lt;code&amp;gt;DATADIR&amp;lt;/code&amp;gt;, i.e. &amp;lt;code&amp;gt;${CMAKE_INSTALL_PREFIX}/share/rawtherapee&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; OPTION_OMP&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; (default) or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt;.&lt;br /&gt;
: Build with OpenMP support when enabled, which enables multithreading and makes RawTherapee much faster.&lt;br /&gt;
&lt;br /&gt;
; WITH_LTO&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
: Build with link-time optimizations when enabled, which may make RawTherapee run a little faster.&lt;br /&gt;
&lt;br /&gt;
; WITH_PROF&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
: For debugging purposes. Generate extra code to write profile information suitable for the analysis program gprof.&lt;br /&gt;
&lt;br /&gt;
; WITH_SAN&lt;br /&gt;
: &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default) or one of various other options.&lt;br /&gt;
: For debugging purposes. Allows enabling various sanitizers to help detect program issues.&lt;br /&gt;
: See GCC manual's [https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html Program Instrumentation Options] chapter for more information.&lt;br /&gt;
&lt;br /&gt;
; WITH_SYSTEM_KLT&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
: Build using system KLT library when ON, otherwise use KLT files bundled with RawTherapee.&lt;br /&gt;
: The Kanade–Lucas–Tomasi (KLT) feature tracker is used by the [[Lens/Geometry#Distortion_Correction|Auto Distortion Correction]] tool.&lt;br /&gt;
&lt;br /&gt;
; WITH_BENCHMARK&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
: Build with timing functions enabled to benchmark performance.&lt;br /&gt;
&lt;br /&gt;
; ENABLE_TCMALLOC&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
: In some cases the operating system has trouble handling memory allocation and deallocation required by RawTherapee (see [https://github.com/Beep6581/RawTherapee/issues/5459 here] for more information). Linking against [https://gperftools.github.io/gperftools/tcmalloc.html TCMalloc] may alleviate these problems. This library may not be available on all platforms or distributions.&lt;br /&gt;
&lt;br /&gt;
===== Make =====&lt;br /&gt;
&lt;br /&gt;
Find out how many threads your CPU supports. This only influences the compilation speed, it has no influence over how fast the compiled RawTherapee build runs. To find out how many threads your CPU supports, run this in a terminal:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;nproc --all&amp;lt;/pre&amp;gt;&lt;br /&gt;
It will return a number. Use this number for the &amp;lt;code&amp;gt;--jobs&amp;lt;/code&amp;gt; parameter below.&lt;br /&gt;
&lt;br /&gt;
Compile:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;cd ~/programs/code-rawtherapee&lt;br /&gt;
mkdir build&lt;br /&gt;
cd build&lt;br /&gt;
&lt;br /&gt;
cmake \&lt;br /&gt;
    -DCMAKE_BUILD_TYPE=&amp;quot;release&amp;quot;  \&lt;br /&gt;
    -DCACHE_NAME_SUFFIX=&amp;quot;5-dev&amp;quot; \&lt;br /&gt;
    -DPROC_TARGET_NUMBER=&amp;quot;2&amp;quot; \&lt;br /&gt;
    -DBUILD_BUNDLE=&amp;quot;ON&amp;quot; \&lt;br /&gt;
    -DBUNDLE_BASE_INSTALL_DIR=&amp;quot;$HOME/programs/rawtherapee&amp;quot; \&lt;br /&gt;
    -DOPTION_OMP=&amp;quot;ON&amp;quot; \&lt;br /&gt;
    -DWITH_LTO=&amp;quot;OFF&amp;quot; \&lt;br /&gt;
    -DWITH_PROF=&amp;quot;OFF&amp;quot; \&lt;br /&gt;
    -DWITH_SAN=&amp;quot;OFF&amp;quot; \&lt;br /&gt;
    -DWITH_SYSTEM_KLT=&amp;quot;OFF&amp;quot; \&lt;br /&gt;
    ..&lt;br /&gt;
&lt;br /&gt;
make --jobs=4&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Run RawTherapee ====&lt;br /&gt;
&lt;br /&gt;
To run RawTherapee:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;~/programs/rawtherapee/rawtherapee&amp;lt;/pre&amp;gt;&lt;br /&gt;
Or to run the CLI version:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;~/programs/rawtherapee/rawtherapee-cli&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The source code repository is in &amp;lt;code&amp;gt;~/programs/code-rawtherapee&amp;lt;/code&amp;gt; and the compiled program is in &amp;lt;code&amp;gt;~/programs/rawtherapee&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can safely delete &amp;lt;code&amp;gt;~/programs/code-rawtherapee&amp;lt;/code&amp;gt; if you so wish. The compiled program will still work, but then you will have to redo all the above steps if you want to update. Rather, leave the repository intact so that you can do the next step in a week or a month's time when you want to update.&lt;br /&gt;
&lt;br /&gt;
==== Update RawTherapee ====&lt;br /&gt;
&lt;br /&gt;
Every time you want to update RawTherapee to the latest code available, just do the following:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;cd ~/programs/code-rawtherapee&lt;br /&gt;
git pull&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then repeat the [[#Make|Make]] step above.&lt;br /&gt;
&lt;br /&gt;
When updating, you can re-use the &amp;lt;code&amp;gt;build&amp;lt;/code&amp;gt; folder from last time to avoid having to recompile things which have not changed, to make the whole process faster. CMake should automatically detect changes. However, there are situations when compilation may fail when re-using an old &amp;lt;code&amp;gt;build&amp;lt;/code&amp;gt; folder - typically that might happen when hopping between very different branches. If that happens, just delete the &amp;lt;code&amp;gt;build&amp;lt;/code&amp;gt; folder, then proceed with the steps in the &amp;quot;Make&amp;quot; section.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Getting_Started&amp;diff=8650</id>
		<title>Getting Started</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Getting_Started&amp;diff=8650"/>
		<updated>2021-07-21T14:15:02Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Modified welcome&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Getting Started&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Scope ==&lt;br /&gt;
&lt;br /&gt;
RawTherapee is a powerful cross-platform raw image processing program, released under the GNU General Public License Version&amp;amp;nbsp;3. Started in 2005 by Gábor Horváth, it was released as open-source software in 2010 and has been under development by an international team ever since. RawTherapee has an extensive set of tools specifically aimed at processing photographs. It works very well in conjunction with raster graphics editors, such as Photoshop or GIMP, and a digital asset manager, such as digiKam.&lt;br /&gt;
&lt;br /&gt;
== Get RawTherapee ==&lt;br /&gt;
&lt;br /&gt;
{{Template:Download_stable}}&lt;br /&gt;
&lt;br /&gt;
== Start RawTherapee==&lt;br /&gt;
 &lt;br /&gt;
[[File:Rt setm fb.png|thumb|RawTherapee in Single Editor Tab Mode - Vertical Tabs, showing: 1- Main sections: [[File Browser]] (currently opened), Queue, Editor and Preferences. 2- Panels used for navigating to files and folders. 3- Thumbnails of the currently opened folder. 4- Filters to limit the thumbnails shown to only those which match some metadata or state. 5- Thumbnail zooming and info. 6- Quick image operations. 7- Sub-tabs of the File Browser: Filter (currently opened), Inspect (to see a full-sized embedded JPEG preview), Batch Edit (to apply some setting to all selected images) and Fast Export (low quality and bypasses some tools but fast saving - don't use this for typical saving!). 8- Right-click context menu (you will typically use this to apply some processing profile to all selected files).]]&lt;br /&gt;
&lt;br /&gt;
When you start RawTherapee you will land in the [[File Browser]] tab, and it might be empty. You need to point RawTherapee to where your raw photos are stored. Use the folder tree browser on the left of the ''File Browser'' tab to navigate to your raw photo repository and double-click on the folder to open it. Then double-click on a raw photo to start editing it.&lt;br /&gt;
&lt;br /&gt;
== Edit your first image ==&lt;br /&gt;
&lt;br /&gt;
First, a little background. A raw photo contains a dump of sensor data, which makes up the bulk of the raw file. This sensor data does not look like a pretty image, in fact it does not look like anything - it is &amp;quot;raw&amp;quot; data, ergo the name. It must be &amp;quot;cooked&amp;quot; to look like the image you saw through the viewfinder. Your camera cooks the raw data into a pretty image, which it stores as a JPEG file inside the raw file (yes, even when you're shooting in only &amp;quot;RAW&amp;quot; mode as opposed to &amp;quot;RAW+JPEG&amp;quot; mode). Due to this fundamental fact of the data being &amp;quot;raw&amp;quot;, there is no one correct way for a raw photo to look - the way your camera makes it look is not &amp;quot;the right way&amp;quot;, nor is it the only way. However, many photographers would like to use the &amp;quot;camera look&amp;quot; as a starting point for further adjustments, and RawTherapee makes this possible.&lt;br /&gt;
&lt;br /&gt;
When displaying a raw photo in the [[File Browser]] which has never been edited in RawTherapee before, the photo's thumbnail is based on the JPEG image embedded inside that raw file -- the exact same image you see when viewing that photo on your camera or in most other software. Once you open that photo in the [[Editor]], RawTherapee creates a new thumbnail based on the actual raw data. Since creating an image from raw data requires &amp;quot;cooking&amp;quot; it, and since you have not manually edited that image yet, RawTherapee uses parameters from the [[Preferences#Default_Processing_Profile|default processing profile for raw photos]] to process it. From that moment on, the photo's thumbnail is no longer based on the embedded JPEG but on the actual raw data. When you make adjustments to the image in the Editor, the thumbnail is updated to reflect your changes.&lt;br /&gt;
&lt;br /&gt;
Editing is done in the [[Editor]]. This is where you work with RawTherapee to create stunning works of art - or perhaps just apply first aid to your snapshots. When you open a raw photo in the Editor for the first time, the [[Preferences#Default_Processing_Profile|default processing profile for raw photos]] is applied, which as of RawTherapee 5.4 is set to &amp;quot;Auto-Matched Curve - ISO Low&amp;quot; (unless you changed it in Preferences), and it automatically adjusts your raw photo to look like the out-of-camera JPEG. It does so by analyzing the JPEG image which was created by your camera and is stored within the raw file, and adjusting the tone curve so as to match it. In most cases this match is very close to the &amp;quot;camera look&amp;quot;. In rare cases it may fail. See the [[Auto-Matched Curve]] article for more information.&lt;br /&gt;
&lt;br /&gt;
[[File:Rt setm editor.png|thumb|The Editor.]]&lt;br /&gt;
&lt;br /&gt;
Take a moment to look around this Editor tab.&lt;br /&gt;
Notice that there are tabs within this tab - on the right of screen towards the top. These tabs and the controls under them are the Toolbox. You probably have the first tab open and, if you hover your mouse over it, you'll find that it's called the Exposure tab. Below the choice of tabs are the tools the chosen tab contains – Exposure, Shadows/Highlights, Tone Mapping etc. If you click on one of them it will expand so that you can see its contents. Click again and it will collapse. Right-click on one and that one will expand while all others will collapse - a time-saving shortcut. To the left of each tool's label is a power button ([[File:Power-on-small.png]] on / [[File:Power-off-small.png]] off) which lets you turn it on or off, or in some cases instead of a power button there is a triangular expander [[File:Expander-closed-small.png]]. Read the [[General_Comments_About_Some_Toolbox_Widgets#Tools|Tools section of the General Comments About Some Toolbox Widgets]] article for a detailed explanation.&lt;br /&gt;
Browse through the tabs and panels until you feel totally overwhelmed by all that's available.&lt;br /&gt;
&lt;br /&gt;
Before you start working on an image, here is some important advice – '''Don't Panic!''' You are in no danger of destroying any of your prized images if you make a mistake. RawTherapee has some features which help you protect your images:&lt;br /&gt;
* RawTherapee does non-destructive editing of your raw files. This means that RawTherapee will never, ever change the raw file itself. All changes are stored in sidecar files. You can find out more about them in the [[Sidecar Files - Processing Profiles]] article.&lt;br /&gt;
* When using the Editor, you'll see the [[Editor#History|History]] panel on the left. This panel shows a history stack of every change you have made to your image. To go back to any step (including when the image was first loaded), just click on the relevant line in the History panel.&lt;br /&gt;
* Under the History panel you'll see a [[Editor#Snapshots|Snapshots]] panel. You can skip it for now, but you'll find it handy when you gain experience with RawTherapee. This panel stores the state of all the tools as a &amp;quot;snapshot&amp;quot;. This allows you to easily, for example, tweak your photo to a nice and colorful look and take a snapshot, then tweak it again to a lovely black-and-white look and take a snapshot, and then compare the two just by clicking on either snapshot. (Note: RawTherapee does not save snapshots to the PP3 file yet, it will do so in the future. If you have three snapshots which you want to retain, you will need to click through them and save a PP3 file each time under a unique name).&lt;br /&gt;
* As you might expect, Control-z will undo the previous change.&lt;br /&gt;
&lt;br /&gt;
=== Basics ===&lt;br /&gt;
&lt;br /&gt;
# Open the raw photo. RawTherapee automatically makes it look like your camera's output. If you're happy with the result, you're done. Else read on.&lt;br /&gt;
# Click on the [[File:Color-circles.png]] Color tab and expanding the [[White Balance]] tool by right-clicking on it (or use the {{k|w}} [[Keyboard Shortcuts|keyboard shortcut]]). RawTherapee will start with the white balance used by your camera. Most white balance adjustments involve moving the Temperature and Tint sliders, or using the [[File:Color-picker.png]] Spot White-Balance Picker on a colorless (neutral gray) patch. Adjust to taste.&lt;br /&gt;
# Next, fix the exposure by going to the [[File:Exposure.png]] Exposure tab, expanding the [[Exposure]] tool and adjusting it to taste. For now, just use the Exposure Compensation and Saturation sliders.&lt;br /&gt;
# If your image is noisy, switch to the [[File:Detail.png]] Detail tab, zoom to 100% either using the [[File:Magnifier-1to1.png]] button or using the {{k|z}} keyboard shortcut, because the effects of the tools in this tab are only visible in the zoomed-to-100% preview (and of course in the saved image), and enable the [[Noise Reduction]] tool by clicking on the power button [[File:Power-on-small.png]] leaving the settings at their default values for now. RawTherapee has automatically removed color (chrominance) noise. Luminance noise is removed [[Noise_Reduction#Usage|manually]], though leave it for now as luminance noise generally lends a pleasing, grainy, film-like look. As a general rule, when using noise reduction don't use sharpening. Zoom back out to see the whole image either using the [[File:Magnifier-fit.png]] button or using the {{k|f}} keyboard shortcut key.&lt;br /&gt;
# Now you decided you want to fix the [[Lens/Geometry|geometry]] and composition of your photo.&lt;br /&gt;
#* First make the horizon level, or correct the things which should be vertical such as street lamps or building edges. To easily do this, press the &amp;quot;s&amp;quot; key on your keyboard (the same as clicking the [[File:Rotate-straighten.png]] button), and click-and-drag a line along the horizon or along the edge of a building over the preview. Your image will rotate accordingly and you will automatically be taken into the [[File:Transform.png]] Transform tab.&lt;br /&gt;
#* To crop the photo, press the {{k|c}} shortcut key on your keyboard (or use the [[File:Crop.png]] button) and click-and-drag a crop over the preview; you will notice that the [[Crop]] tool becomes automatically enabled. There is no need to &amp;quot;apply&amp;quot; a crop - it takes effect the moment you draw it. You can zoom to fit the crop area by using the {{k|f}} keyboard shortcut, or {{k|alt}}+{{k|f}} if you want to fit the whole image. You may want to set the Crop &amp;quot;Guide type&amp;quot; to &amp;quot;none&amp;quot; if it's a problem.&lt;br /&gt;
#* Finally, you want to downscale the photo, because who wants to upload a 10MB JPEG to your social network. Enable the [[Resize]] tool and the [[Resize#Post-Resize_Sharpening|Post-Resize Sharpening]] sub-tool, and leave them at the default settings. The resizing effect is only applied to the saved image, not to the preview, so you won't see any change in the preview as you enable these tools.&lt;br /&gt;
# You're all set, let's [[Saving|save]] it straight away. Click the [[File:save.png]] Save Current Image button (located below the lower left corner of the preview area), or use the {{k|Ctrl}}+{{k|s}} keyboard shortcut. Save it as a JPG file using default settings (quality at &amp;quot;92&amp;quot;, subsampling at &amp;quot;balanced&amp;quot;). These are good all-round settings. Choose a folder where you want it saved to, and after a few seconds your file will be ready in the folder you selected. If you close RawTherapee, the settings you used will be stored in a [[Sidecar_Files_-_Processing_Profiles|PP3 sidecar file]] next to the raw file, so that you can re-open the raw photo in the future and retain the tool settings you used.&lt;br /&gt;
&lt;br /&gt;
Now that you went through basic photo adjustment and are familiar with the steps, let's recap the steps but with more advanced details.&lt;br /&gt;
&lt;br /&gt;
=== Advanced ===&lt;br /&gt;
&lt;br /&gt;
Always read each tool's article here on RawPedia before using it, to get a firm understanding of what it does. The articles explain how the tools work in RawTherapee, while the general concepts unspecific to RawTherapee are left to the user to find on Wikipedia or elsewhere.&lt;br /&gt;
&lt;br /&gt;
Be sure to see the [[Keyboard Shortcuts]].&lt;br /&gt;
&lt;br /&gt;
The order of the tools inside RawTherapee's engine pipeline is hard-coded, so from that point of view it does not matter when you enable or disable a tool. However some tools can make a large impact on other tools, e.g. changing exposure may require you to re-adjust color toning, and some tools may require plenty of CPU power to calculate the preview making updates of the preview from then on slow, so it is for this reason we suggest you stick to this general order of operations:&lt;br /&gt;
# Start off by making sure that RawTherapee's environment is set up correctly, meaning:&lt;br /&gt;
#* Make sure that RawTherapee is using your monitor's color profile if you use a color-managed workflow. Check Preferences &amp;gt; Color Management. You may also need to load the appropriate calibration curves into your graphics card if you built your monitor color profile on top of them, though how you do that is outside the scope of RawTherapee.&lt;br /&gt;
#* Make sure that the Color Management tool is configured correctly. Usually the defaults are best. Read the [[Color Management]] and [[Color Management addon]] articles. If instead of using the color matrix or DCP or ICC profiles shipped with RawTherapee you decide to use an external one, for example a self-made DCP or one from Adobe, load it as the first thing you do, otherwise you may need to re-adjust some of the color tools. Always use an output profile - in most cases the default one, RT_sRGB. If you think you're being smart by selecting &amp;quot;No ICM: sRGB Output&amp;quot;, you're mistaken.&lt;br /&gt;
# If you want to use a [[Flat Field|Flat-Field]] and/or [[Dark Frame|Dark-Frame]] image, do so now, to avoid re-adjustment.&lt;br /&gt;
# Now set the correct [[White Balance]]. You may fix the exposure first if the image is too dark (or too bright) to see white balance changes.&lt;br /&gt;
# Next, adjust the [[Exposure]], using the Exposure Compensation and Black sliders to get the image into the right ballpark. Once in the right ballpark, continue with using both tone curves. Be sure to read the [[Exposure#Tone_Curves|Tone Curve section]] in the Exposure article to learn why there are two of them and how best to use them - they are a very powerful tool!&lt;br /&gt;
# In the Basics section above we suggested that you use the [[Exposure#Saturation|Saturation]] slider (in the Exposure tool). Now that you've learned the basics and are exploring more advanced techniques, we suggest you not use the Saturation slider anymore, and instead use the more powerful [[Lab_Adjustments#CC_Curve|CC curve]] in the [[Lab Adjustments]] tool, as it gives you finer control.&lt;br /&gt;
# The order of the rest gets fuzzy. Some tools will unavoidably influence others. Carry on with the [[Lab Adjustments]] tool and then the rest of the tools in the Exposure tab. &lt;br /&gt;
# Then use the tools in the [[File:Color-circles.png]] Color tab.&lt;br /&gt;
# Then zoom to 100% and use the tools in the [[File:Detail.png]] Detail tab. Generally, don't sharpen if you're using noise reduction.&lt;br /&gt;
# Finally, zoom out again and use the tools in the [[File:Transform.png]] Transform tab. The reason you left these for last is that they may make the preview image appear a bit blurry, because in order for the preview to be responsive, RawTherapee uses that very preview image you see at the very resolution you see - small - to show what the tools do, and when you rotate or otherwise change the geometry of a small image, there is a clear softening. This is not a problem when saving as by that point RawTherapee does its processing on the full-sized image, which is slow but of high quality.&lt;br /&gt;
# You can edit metadata in the [[File:Metadata.png]] [[Metadata_Copy_Mode|Meta]] tab at any time before saving.&lt;br /&gt;
# Save, either directly [[file:save.png]] when you want to save a single photo, or via the [[file:gears.png]] [[The_Batch_Queue|Batch Queue]] when you want to process many photos. See the [[Saving Images]] article.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Editor&amp;diff=8622</id>
		<title>Editor</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Editor&amp;diff=8622"/>
		<updated>2021-07-08T19:12:05Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Fixes errant bold-tags&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;The Editor&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Rt 55 trains.png|none|frame|link=|class=heroed|The Image Editor tab in RawTherapee 5.5.]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
The Image Editor tab is where you tweak your photos. By default RawTherapee is in &amp;quot;''Single Editor Tab Mode, Vertical Tabs''&amp;quot;  (SETM) which is more memory-efficient and lets you use the ''Filmstrip'' (described below). You can switch to &amp;quot;''Multiple Editor Tabs Mode''&amp;quot; (METM) by going to &amp;quot;''Preferences &amp;gt; General &amp;gt; Layout''&amp;quot;, however each Editor tab will require a specific amount of RAM relative to the image size and the tools you use, and also the ''Filmstrip'' is hidden in this mode, so we recommend you first give SETM a try.&lt;br /&gt;
&lt;br /&gt;
== The Preview Panel ==&lt;br /&gt;
&lt;br /&gt;
The central panel holds a preview of your photo. This preview is generated from the actual raw data by processing it according to the settings either you manually set, or those that are stored in the [[Sidecar_Files_-_Processing_Profiles | processing profile]] used when opening that photo, as specified in &amp;quot;''Preferences &amp;gt; Image Processing &amp;gt; Default Processing Profile''&amp;quot;. The preview will show you the effect of all the adjustments you make. Note that the effects of some tools are only accurately visible when you are zoomed in to 1:1 (100%) or more. These tools are marked in the interface with a &amp;quot;1:1&amp;quot; icon [[File:One-to-one-small.png|Zoom 1:1]] next to the tool's name.&lt;br /&gt;
&lt;br /&gt;
The image you see in the preview is taken from the working profile's color space and converted into the monitor profile's color space, if a monitor profile is loaded, or into sRGB if one is not. It does not take into account the &amp;quot;[[Color_Management#Output_Profile|Output Profile]]&amp;quot; section of the &amp;quot;[[Color_Management|Color Management]]&amp;quot; tool.&lt;br /&gt;
&lt;br /&gt;
=== Eek! My Raw Photo Looks Different than the Camera JPEG ===&lt;br /&gt;
&lt;br /&gt;
After opening a raw photo you will notice that it looks different, often worse - darker, less sharp, more dull, lacking contrast, more noisy - than your camera's JPEG, or than the same raw photo when viewed in other software. What gives? Witches, aliens, possums, or by design?&lt;br /&gt;
&lt;br /&gt;
There are three things you must know first to understand what is happening here:&lt;br /&gt;
# Your camera does not show you the real raw data when you shoot raw photos. It processes the raw image in many ways before presenting you with the histogram and the preview on your camera's digital display. Even if you set all the processing features your camera's firmware allows you to tweak to their neutral, &amp;quot;0&amp;quot; positions, what you see is still not an unprocessed image. Exactly what gets applied depends on the choices your camera's engineers and management made, but usually this includes a custom tone curve, saturation boost, sharpening and noise reduction. Some cameras, particularly low-end ones and [http://en.wikipedia.org/wiki/Micro_Four_Thirds_system Micro Four-Thirds system], may also apply lens distortion correction to not only fix [http://en.wikipedia.org/wiki/Distortion_(optics)#Radial_distortion barrel and pincushion distortion] but also to hide severe [http://en.wikipedia.org/wiki/Vignetting vignetting] problems. Most cameras also underexpose every photo you take by anywhere from -0.3EV to even -1.3EV or more, in order to gain headroom in the highlights. When your camera (or other software) processes the raw file it increases exposure compensation by the same amount, making the brightness appear correct and hoping to recover some highlights in the process. RawTherapee shows you the real raw data which may mean your photos appear dark, so it is up to you whether you apply the required exposure increase and how you go about doing so, whether by using the Exposure Compensation slider or one of the various tone curves. Increasing exposure compensation makes noise more apparent regardless whether it is your camera or RawTherapee which does it, but other than this '''RawTherapee does not &amp;quot;add noise&amp;quot;!''' Many cameras apply noise reduction to the JPEGs (behind your back) to lower the noise level after increasing the exposure compensation, so you should expect there to be a difference between your out-of-camera JPEG and RawTherapee's image if noise reduction in RawTherapee is not enabled.&lt;br /&gt;
# Every DSLR raw file contains a processed JPEG image. Most raw files contain a JPEG image of the same full resolution as your camera can shoot, and some raw files contain as many as three JPEG images differing only in resolution. When you open raw files in other software, what you are usually seeing is '''not''' the raw data, but the embedded, processed JPEG image. Examples of software which are either incapable of or which in their default settings do not show you the real raw data: [http://en.wikipedia.org/wiki/IrfanView IrfanView], [http://en.wikipedia.org/wiki/XnView XnView], [http://en.wikipedia.org/wiki/Gwenview Gwenview], [http://en.wikipedia.org/wiki/Geeqie Geeqie], [http://en.wikipedia.org/wiki/Eye_of_GNOME Eye of GNOME], [http://en.wikipedia.org/wiki/F-Spot F-Spot], [http://en.wikipedia.org/wiki/Shotwell_(software) Shotwell], [http://en.wikipedia.org/wiki/GThumb gThumb], etc. It is worth mentioning at this point that if you shoot in &amp;quot;RAW+JPEG&amp;quot; mode, you are in fact wasting disk space and gaining nothing for it, as your raw files already contain the embedded JPEG files which you can view using the listed programs. The embedded JPEG may differ from an 'external' one as saved using &amp;quot;RAW+JPEG&amp;quot; mode in compression.&lt;br /&gt;
# Most raw development programs (programs which do read the real raw data instead of just reading the embedded JPEG) apply some processing to it, such as a base tone curve, even at their most neutral settings, thereby making it impossible for users to see the real, untouched contents of their raw photos. Adobe Lightroom is an example. Comparing RawTherapee's real neutral image to a quasi-neutral one from these other programs will expose the differences.&lt;br /&gt;
&lt;br /&gt;
RawTherapee, on the other hand, is designed to show you the real raw image in the main preview, leaving the way you want this data processed up to you. When you use the &amp;quot;Neutral&amp;quot; processing profile you will see the demosaiced image with camera white balance in your working color space with no other modifications. You can even see the non-demosaiced image by setting the [[demosaicing]] option to &amp;quot;None&amp;quot;. To provide you with a more aesthetically pleasing starting point, we do ship a collection of processing profiles with RawTherapee. After installing RawTherapee, the default profile for processing raw photos is eponymously called &amp;quot;Default&amp;quot;. We also ship the &amp;quot;Default ISO Medium&amp;quot; and &amp;quot;Default ISO High&amp;quot; profiles which are designed to give a good starting point to moderately noisy and very noisy images, respectively.&lt;br /&gt;
&lt;br /&gt;
None of the shipped profiles (at least none of the ones shipped in RawTherapee 5.0) are designed to imitate your camera's look. Why not? Every camera is different. My camera's image quality at ISO1600 could be far noisier than your camera's. My camera's response to colors differs from yours. Even the same camera can behave differently at various settings. To provide such profiles, we would need access to raw files for every supported camera model, often multiple raw files in various shooting modes for a single camera, and countless [http://en.wikipedia.org/wiki/Man-hour person-hours]. This may be possible as a community effort, but it is not a job for a small team. Even then, of what purpose would RawTherapee be if you ended up with a camera JPEG look?&lt;br /&gt;
&lt;br /&gt;
It is far more reasonable that you learn how to use the powerful tools that RawTherapee provides to get the most out of your raws, to surpass the camera look.&lt;br /&gt;
&lt;br /&gt;
As of September 2015 we are starting to ship DCP input profiles made using [https://torger.se/anders/dcamprof.html DCamProf] which include an [https://torger.se/anders/dcamprof.html#dcp_tone optional tone curve]. This curve is modeled after Adobe Camera Raw's default film curve and renders a result similar to your &amp;quot;camera look&amp;quot;. The reason we include the curve in new DCP profiles is because it makes for a good vibrant starting point (as opposed to the flat look of using the &amp;quot;Neutral&amp;quot; processing profile) without having to use [[Exposure#Auto_Levels|Auto Levels]] and without having to touch any of the other tools, and it is entirely optional. Do read the article on [[Color_Management#Input_Profile|input profiles]]. If we ship a DCP for your camera model which includes the tone curve, the &amp;quot;Tone curve&amp;quot; checkbox in Color Management &amp;gt; Input Profile &amp;gt; DCP will be clickable. Applying the (Neutral) processing profile will disable the tone curve.&lt;br /&gt;
While the input color profile is applied at the first stages of the [[Toolchain_Pipeline|toolchain pipeline]], the DCP tone curve is applied later in the pipeline at some point after the Exposure tool.&lt;br /&gt;
&lt;br /&gt;
You can create a processing profile ideally tailored to your camera and lens combination, and set RawTherapee to use it by default on your raw photos. See the [[Creating processing profiles for general use]] article to learn how.&lt;br /&gt;
&lt;br /&gt;
=== Scrollable Toolbars ===&lt;br /&gt;
&lt;br /&gt;
The toolbars above and below the main preview hold a certain number of buttons and other widgets which might not fit on lower resolution screens. {{:Scrollable Toolbar}}&lt;br /&gt;
&lt;br /&gt;
=== Preview Modes ===&lt;br /&gt;
&lt;br /&gt;
In addition to the normal preview, RawTherapee supports a number of other preview modes to help you tweak your photos. Preview modes are controlled via buttons in the ''Editor'' toolbar or via [[Keyboard_Shortcuts | keyboard shortcuts]]. Only one preview mode can be engaged at a time.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left: 16px; margin-top: -1em;&amp;quot;&amp;gt;&lt;br /&gt;
{| class=&amp;quot;RPwt-table&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;bottom&amp;quot; | &amp;lt;nowiki&amp;gt;*&amp;lt;/nowiki&amp;gt; The preview is returned to normal by deselecting any other mode.&lt;br /&gt;
!  Preview Mode&lt;br /&gt;
!  Shortcut&lt;br /&gt;
!  Button&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;padding:10px;&amp;quot; |  Regular*          ||                          || [[Image:preview mode 1 regular.png]]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;padding:10px;&amp;quot; |  Red channel       || align=&amp;quot;center&amp;quot; | r       || [[Image:preview mode 2 red.png]]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;padding:10px;&amp;quot; |  Green channel     || align=&amp;quot;center&amp;quot; | g       || [[Image:preview mode 3 green.png]]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;padding:10px;&amp;quot; |  Blue channel      || align=&amp;quot;center&amp;quot; | b       || [[Image:preview mode 4 blue.png]]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;padding:10px;&amp;quot; |  Luminance channel || align=&amp;quot;center&amp;quot; | v       || [[Image:preview mode 5 luminance.png]]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;padding:10px;&amp;quot; |  Focus Mask        || align=&amp;quot;center&amp;quot; | Shift+f || [[Image:preview mode 6 focus.png]]&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
The following preview modes are currently supported:&lt;br /&gt;
* Red channel,&lt;br /&gt;
* Green channel,&lt;br /&gt;
* Blue channel,&lt;br /&gt;
* Luminosity, which is calculated as 0.299*R + 0.587*G + 0.114*B,&lt;br /&gt;
* Focus mask, to see which areas are in focus&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; caption=&amp;quot;Preview modes&amp;quot; style=&amp;quot;clear: both&amp;quot;&amp;gt;&lt;br /&gt;
Image:Preview_1_regular.jpg|Regular&lt;br /&gt;
Image:Preview_2_red.jpg|Red&lt;br /&gt;
Image:Preview_3_green.jpg|Green&lt;br /&gt;
Image:Preview_4_blue.jpg|Blue&lt;br /&gt;
Image:Preview_5_luminosity.jpg|Luminosity&lt;br /&gt;
Image:Preview_6_focus.jpg|Focus Mask&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Red, Green, Blue and Luminosity Preview Modes ====&lt;br /&gt;
&lt;br /&gt;
{{:Clipping_Indication}}&lt;br /&gt;
&lt;br /&gt;
Preview of individual channels may be helpful when editing RGB curves, planning black/white conversion using the channel mixer, evaluating image noise, etc. Luminosity preview is helpful to instantly view the image in black and white without altering development parameters, to see which channel might be clipping or for aesthetic reasons.&lt;br /&gt;
&lt;br /&gt;
==== Focus Mask ====&lt;br /&gt;
&lt;br /&gt;
[[Image:Preview_6_focus_2.jpg|Focus mask indicating the focusing plane|thumb]]&lt;br /&gt;
The focus mask is designed to highlight areas of the image which are in focus. Naturally, focused areas are sharper, so the sharp areas are being highlighted. The focus mask is more accurate on images with a shallow depth of field, low noise and at higher zoom levels.To improve detection accuracy for noisy images evaluate at smaller zoom, around the 10-30% range. Note that the preview is rendered more slowly when the focus mask is enabled.&lt;br /&gt;
&lt;br /&gt;
The current implementation analyzes the preview image which is rescaled from the original captured size. This process of rescaling reduces the noise and is helpful to identify truly sharper details rather than noise itself which may also contain micro texture. At the same time, rescaling of the original image to the preview size compresses larger scale details into a smaller size, and it may introduce aliasing artifacts, both of which could lead to false positives. You can increase your confidence by viewing the mask at various zoom levels. It is not always fault proof, but can be helpful in many cases.&lt;br /&gt;
&lt;br /&gt;
'''Warning''': Be sure to double-check your images if you decide to delete them based on the focus mask.&lt;br /&gt;
&lt;br /&gt;
=== Background color of the preview ===&lt;br /&gt;
&lt;br /&gt;
The background color of the preview panel surrounding the image area may be changed to ease image preview during editing and to better visualize image cropping. A vertical stack of three thin buttons in the preview modes toolbar above the image preview panel allows to set the background color of the area around the photo preview.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left: 16px; margin-top: -1em;&amp;quot;&amp;gt;&lt;br /&gt;
{| class=&amp;quot;RPwt-table&amp;quot;&lt;br /&gt;
!  Preview&amp;lt;br /&amp;gt;Background&lt;br /&gt;
!  Shortcut&lt;br /&gt;
!  Button&lt;br /&gt;
!  Preview Background&amp;lt;br /&amp;gt;and Crop Visualization&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| Theme-based || align=&amp;quot;center&amp;quot; | 8 || [[Image:Previewback_7_theme.png]] || [[Image:Previewback_flower_theme.png|180px]] || The cropped area of the image is masked with a theme-based color. The cropped area visibility is based on the crop mask color and transparency as set in &amp;quot;''Preferences &amp;gt; Default Theme &amp;gt; Crop mask color/transparency''&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
| Black       || align=&amp;quot;center&amp;quot; | 9 || [[Image:Previewback_8_black.png]] || [[Image:Previewback_flower_white.png|frameless]] || The cropped area of the image is masked with black.&lt;br /&gt;
|-&lt;br /&gt;
| White       || align=&amp;quot;center&amp;quot; | 0 || [[Image:Previewback_9_white.png]] || [[Image:Previewback_flower_black.png|frameless]] || The cropped area of the image is masked with white.&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Detail Window ===&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New detail window&amp;quot; button [[File:Window-add.png]], situated below the main preview next to the zoom buttons, opens a new viewport over the main preview of an adjustable size and of adjustable zoom. This lets you work on the photo zoomed-to-fit while examining several areas of interest at a 100% zoom (or even more). The benefit of using this feature is particularly important to users with slower machines, though not only them, as the zoomed-out main preview takes a shorter amount of time to update than if you were to zoom it to 100% because working at a zoom level less than 100% excludes certain slow tools, such as Noise Reduction, while the little detail windows zoomed to 100% do include all tools and are fast to update because of their small size. This allows you can use the main preview for your general exposure tweaks where it is necessary to see the whole image, and one or more detail windows to get sharpening and/or noise reduction just right.&lt;br /&gt;
&lt;br /&gt;
=== Preview refresh delay ===&lt;br /&gt;
&lt;br /&gt;
Changing any tool's parameters sends a signal for the preview image to be updated accordingly. Imagine what would happen if there was no &amp;quot;delay period&amp;quot;, and you dragged, for example, the exposure compensation slider from 0.00 to +0.60. A signal would be sent to update the preview for every single change of that value - for +0.01, +0.02, ... +0.59, +0.60. Updating the preview 60 times would be completely unnecessary and actually take longer than it takes you to move the slider. This is especially true for more complicated tools, such as noise reduction, where a preview update can take even a second (depending on your CPU and preview size). The solution is for RawTherapee to wait for a very short period from the moment you stop moving a slider (you don't have to let go of it, pausing movement is enough) until the moment it sends a signal for the preview to be refreshed.&lt;br /&gt;
&lt;br /&gt;
We have introduced two parameters which control the length of this waiting period:&lt;br /&gt;
; AdjusterMinDelay&lt;br /&gt;
: Default value = 100ms.&lt;br /&gt;
: This is used for tools with a very fast response time, for example the exposure compensation slider.&lt;br /&gt;
; AdjusterMaxDelay&lt;br /&gt;
: Default value = 200ms.&lt;br /&gt;
: This is used for tools with a slow response time, for example the CIECAM02 sliders.&lt;br /&gt;
&lt;br /&gt;
You can adjust both of these values in the options file in the [[File_Paths|config folder]].&lt;br /&gt;
&lt;br /&gt;
== The Left Panel ==&lt;br /&gt;
&lt;br /&gt;
To the left is a panel which optionally shows the main histogram (&amp;quot;''Preferences &amp;gt; General &amp;gt; Layout &amp;gt; Histogram in left panel''&amp;quot;), and always shows the ''Navigator'', ''History'' and ''Snapshots''.&lt;br /&gt;
You can hide this panel using the [[Image:panel-to-left.png|Hide left panel icon]] hide icon, or its [[Keyboard Shortcuts|keyboard shortcut]].&lt;br /&gt;
&lt;br /&gt;
=== Main Histogram ===&lt;br /&gt;
&lt;br /&gt;
[[File:Rt57 histogram wide labeled.png|none|frame|class=heroed|Histogram showing all 3 channels and luminosity.]]&lt;br /&gt;
&lt;br /&gt;
[[File:RT57 histogram ani.gif|frame|The histogram in RawTherapee 5.7, showing a histogram of the raw data in all three modes - linear-linear, linear-log and log-log. We can see that the raw file is not clipped.]]&lt;br /&gt;
&lt;br /&gt;
[[File:Rt histogram rgbindicator.png|frame|The RGB indicator shows the position in the histogram of the R, G, B and L values of the pixel your cursor is hovering over.]]&lt;br /&gt;
&lt;br /&gt;
A histogram in photography is a graphical representation of the number of pixels of a given value. Typically the  horizontal axis represents the range of possible values while the vertical axis represents the count of pixels with that value. The axes need not be linear - RawTherapee can also scale the histogram logarithmically.&lt;br /&gt;
&lt;br /&gt;
Regardless of the photo's bit depth, the histogram itself has a precision of 256 sampling bins. To understand this, let us look at the example of a 16-bit image using integer precision. Its range of possible values spans from 0 to 65535 (2^16 = 65536 possible values, and since 0 is a possible minimum value then the maximum value is 65535). Drawing a histogram using 16-bit precision would mean that it would need to be 65535 pixels wide to faithfully represent the data, and no screen today is anywhere near that wide. Instead, all pixels with values from 0 to 255 (65535/256*1) are grouped into the first &amp;quot;bin&amp;quot;. The second bin consists of a count of all pixels with values from 256 to 511 (65535/256*2). The third bin represents values 512 to 767 (65535/256*3). And so on until bin 256. This happens regardless of the input image's bit depth - and RawTherapee's engine uses 32-bit floating-point precision anyway.&lt;br /&gt;
&lt;br /&gt;
The main histogram can simultaneously show one or more of the following:&lt;br /&gt;
* [[File:Histogram-red-on-small.svg]] the red channel,&lt;br /&gt;
* [[File:Histogram-green-on-small.svg]] the green channel,&lt;br /&gt;
* [[File:Histogram-blue-on-small.svg]] the blue channel,&lt;br /&gt;
* [[File:Histogram-silver-on-small.svg]] CIELab luminance,&lt;br /&gt;
* [[File:Histogram-gold-on-small.svg]] [http://en.wikipedia.org/wiki/Chromaticity chromaticity].&lt;br /&gt;
* [[File:Histogram-bayer-on-small.svg]] red, green and blue channels of the source raw image before demosaicing.&lt;br /&gt;
&lt;br /&gt;
The histogram shows the channels listed above using the gamma-corrected output profile when the gamut button [[File:Gamut-hist.png]] is disabled (default), or using the working profile when the button is enabled. The status of this button also affects the values shown in the Navigator panel, as well as the clipped shadow [[File:Warning-shadows.png]] and [[File:Warning-highlights.png]] highlight indicators. It does not affect the raw histogram.&lt;br /&gt;
&lt;br /&gt;
Like water in a pipeline, image data flows through RawTherapee from the input file through various stages, most of which the user can control, to the output. The output could be the image saved in a file, or the image displayed on your screen. Each stage affects the color data. The histogram allows you to visualize this data at several stages. By default, the histogram shows color data as it will appear if you save the output image, including processing done at all intermediate stages. By enabling the gamut button [[File:Gamut-hist.png]] you can peak at the data at the early stage where it gets converted into the working space. You can even look at the raw data before any transformations or demosaicing are applied.&lt;br /&gt;
&lt;br /&gt;
Let's examine the large histogram example above. Though it actually shows four histograms (red, green, blue and luminance), focus on one histogram at a time. The horizontal axis represents the possible values of the histogram, where &amp;quot;A&amp;quot; are the darkest values possible, &amp;quot;C&amp;quot; the mid-tones, and &amp;quot;E&amp;quot; the brightest possible values. The position of the histogram line on the vertical axis represents how many pixels have that value. We can see that there are zero pixels in the red channel with values around &amp;quot;A&amp;quot; (from zero to very dark), because the histogram line lies right along the bottom. There is a significant number of pixels where the red channel is dark (between A and B), and a significant number where it is light (around D). Then, importantly, there is a spike at the right end of the histogram, at E - it tells us that a large number of pixels have maximal red values - they are clipped.&lt;br /&gt;
&lt;br /&gt;
Generally speaking, you should care when clipping occurs on skin, and not care when it's due to [https://en.wikipedia.org/wiki/Specular_highlight specular highlights]. If a histogram shows clipping, and if you care about the clipped regions, you should start by establishing where the clipping occurs. Check the raw histogram - are any channels clipped? If yes, then maybe [[Exposure#Highlight_Reconstruction|highlight reconstruction]] can help. If the raw histograms are not clipped, then all the required information is intact, and it is some stage downstream in the pipeline which causes clipping. Ensure your working profile's gamut is large enough by enabling the gamut button [[File:Gamut-hist.png]] to see histograms at the working profile stage of the pipeline. You might want to temporarily apply the [[Neutral]] profile to disable all the tools while checking, then revert. If your working space is not causing clipping (the default working space is ProPhoto and it's huge), then it's likely your adjustments which are causing clipping. Reduce exposure, go easy on the curves, use dynamic range compression if necessary.&lt;br /&gt;
&lt;br /&gt;
Knowing how to read a histogram is a basic and very useful skill, as it can point out issues with your image regardless of how dim or miscalibrated your monitor may be.&lt;br /&gt;
&lt;br /&gt;
To help you visualize the data, the histogram (as of RawTherapee 5.5) has three modes which scale the data in the x and y axes differently:&lt;br /&gt;
* [[File:Histogram-mode-linear-small.png]] Linear-linear mode. You find gridlines at halves, quarters, eighths and sixteenths, depending on the size of the histogram.&lt;br /&gt;
* [[File:Histogram-mode-logx-small.png]] Linear-log mode. The x-axis is linear, the y-axis and the horizontal gridlines are scaled logarithmically. The position of the gridlines still corresponds to the halves, quarters, etc.&lt;br /&gt;
* [[File:Histogram-mode-logxy-small.png]] Log-log mode. Both the x- and y-axes are scaled logarithmically. The gridlines are not scaled logarithmically, but correspond to [https://en.wikipedia.org/wiki/Exposure_value stops] - with every gridline the value doubles, so there are lines for the values 1, 3, 7, 15, 31, 63, and 127 (&amp;lt;code&amp;gt;pow(2.0,i) - 1)&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
When there is a disproportionately bright area relative to the rest of the image, it will show up as a spike in the histogram. If you want to show this on a histogram with a linear y axis, the spike may push the lesser values down the y-axis, making them difficult to see. Switch to one of the log modes to scale the data and help you get a better overview of all values.&lt;br /&gt;
&lt;br /&gt;
The histogram can be moved to the left/right panel from &amp;quot;''Preferences &amp;gt; General &amp;gt; Layout &amp;gt; Histogram in left panel''&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== Raw Histograms ====&lt;br /&gt;
&lt;br /&gt;
Raw files contain a dump of data captured by the sensor and quantified by the analog-to-digital converter. The raw file as a container has a bit depth of its own, typically 16-bit, while the data it contains could have a lower bit depth - typically it is 12-bit (0-4096) or 14-bit (0-16384). To display the data from a raw file as an image, one of the several key bits of information required to process the data correctly are the black and white levels. The black level is not necessarily 0, as the sensor and camera electronics produce digital noise, so the noise floor may lie for instance at 512. The white level is also not necessarily 16384; it depends on various things, and may lie for instance at 16300. For more information, see the articles [[Demosaicing]] and [[Adding Support for New Raw Formats]] (especially the header of the &amp;lt;code&amp;gt;camconst.json&amp;lt;/code&amp;gt; file). The black and white level values used by RawTherapee are hierarchically set by looking in several places: in &amp;lt;code&amp;gt;dcraw.c&amp;lt;/code&amp;gt;, inside the raw file's metadata, and in &amp;lt;code&amp;gt;camconst.json&amp;lt;/code&amp;gt; (latter takes precedence). Furthermore, the user can tweak the raw [[Raw Black Points|black]] and [[Raw White Points|white]] levels from within RawTherapee.&lt;br /&gt;
&lt;br /&gt;
The raw histograms show data after black level subtraction. The right end of the histogram is anchored on the white level. The raw histograms are affected by the detected black and white levels as well as by the black and white level adjustments made by the user in RawTherapee.&lt;br /&gt;
&lt;br /&gt;
When examining the raw histogram, you may also want to set the demosaicing method to &amp;quot;none&amp;quot;. This will reveal the sensor pattern in the preview, and also cause the [[Editor#Navigator|Navigator]] panel to show the raw RGB values of the pixel currently being hovered over. These values are affected by the detected black and white levels as well as by the black level adjustments made by the user in RawTherapee, but they are not affected by the white level adjustments (&amp;quot;white-point correction&amp;quot;) made by the user in RawTherapee.&lt;br /&gt;
&lt;br /&gt;
=== Navigator ===&lt;br /&gt;
&lt;br /&gt;
The ''Navigator'' panel shows a thumbnail of the currently opened image, and RGB, HSV and Lab values of the pixel your cursor is currently hovering over.&lt;br /&gt;
&lt;br /&gt;
The values shown in the main histogram and Navigator panel are either those of the working profile or of the gamma-corrected output profile, depending on the state of the gamut button [[File:Gamut-hist.png]] located in the toolbar above the main preview. When the gamut button is enabled the working profile is used, otherwise the gamma-corrected output profile is used.&lt;br /&gt;
&lt;br /&gt;
By clicking on the values in the Navigator you can cycle between these three formats:&lt;br /&gt;
* [0-255]&lt;br /&gt;
* [0-1]&lt;br /&gt;
* [%]&lt;br /&gt;
&lt;br /&gt;
RawTherapee 5.1 onward can show the real raw photosite values. To see them, set the Navigator to use the [0-255] range, apply the [[Neutral]] [[Sidecar_Files_-_Processing_Profiles|processing profile]], then set the [[Demosaicing]] method to &amp;quot;None&amp;quot;. The Navigator will show the real raw photosite values after black level subtraction within the range of the original raw data.&lt;br /&gt;
&lt;br /&gt;
=== History ===&lt;br /&gt;
&lt;br /&gt;
The History panel contains a stack of entries which reflect each of your image editing actions. By clicking on the entries you can step back and forth through the different stages of your work.&lt;br /&gt;
&lt;br /&gt;
An entry is added each time you adjust a ''different'' widget - multiple edits to the same widget are stored as one entry. For example, adjusting the exposure compensation slider from &amp;quot;0&amp;quot; to &amp;quot;0.3&amp;quot; and then to &amp;quot;0.6&amp;quot; will result in one entry being stored with a final value of &amp;quot;0.6&amp;quot;. Likewise, when adjusting a curve, all individual control point adjustments are grouped into one history entry. Should you wish to store the adjustments as two (or more) history entries, you will have to split them by adjusting some other widget. For example, assuming a curve is in &amp;quot;Film-like&amp;quot; mode and you want to keep to that way: adjust several control points on the curve, then toggle the curve mode from &amp;quot;Film-like&amp;quot; to &amp;quot;Standard&amp;quot; and then back to &amp;quot;Film-like&amp;quot; to create a new history entry, and then continue adjusting the curve.&lt;br /&gt;
&lt;br /&gt;
The history stack is not saved - it is lost as soon as you close the Editor tab. None of your adjustments are lost though, as the final state of all tools is saved in the [[Sidecar Files - Processing Profiles|sidecar file]], ready to be used the next time you open that image.&lt;br /&gt;
&lt;br /&gt;
=== Snapshots ===&lt;br /&gt;
&lt;br /&gt;
Under the ''History'' panel is a panel called ''Snapshots''. Its use is in that you can save a snapshot of the photo with all the adjustments up to that point in time, and then proceed to further modify your photo to give it a different appearance, saving new snapshots at every moment you feel you might have reached a version of your photo worth saving. Once you have two or more snapshots, you can just click on them to flip through the different versions and stick with whichever one you like best. In the future, the snapshots will be saved to the PP3 sidecar file. For now, the history and snapshots are lost when you load a new photo in the ''Image Editor'' or close RawTherapee.&lt;br /&gt;
&lt;br /&gt;
== The Right Panel ==&lt;br /&gt;
&lt;br /&gt;
To the right is a panel which optionally shows the main histogram and ''Processing Profiles'' selector (&amp;quot;''Preferences &amp;gt; General &amp;gt; Layout &amp;gt; Histogram in left panel''&amp;quot;), and always shows the [[Toolbox]].&lt;br /&gt;
You can hide this panel using the [[Image:panel-to-right.png|Hide right panel icon]] hide icon, or its [[Keyboard Shortcuts|keyboard shortcut]].&lt;br /&gt;
&lt;br /&gt;
=== Processing Profile Selector ===&lt;br /&gt;
&lt;br /&gt;
In the top right corner you find options to apply and store specific processing profiles:&lt;br /&gt;
&lt;br /&gt;
[[File:Processing-profiles-selector.png|center|frame]]&lt;br /&gt;
&lt;br /&gt;
Read the page on [[Sidecar_Files_-_Processing_Profiles | processing profiles]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Toolbox ===&lt;br /&gt;
&lt;br /&gt;
The ''Toolbox'', in the right panel, contains all the tools you use to tweak your photos. Each tool has its own RawPedia article.&lt;br /&gt;
&lt;br /&gt;
== Editor Tab Modes ==&lt;br /&gt;
&lt;br /&gt;
RawTherapee allows you to work on photos in two modes:&lt;br /&gt;
* ''Single Editor Tab Mode'' (SETM), where you work only on one photo at a time, and each photo is opened in the same ''Editor'' tab. There is a horizontal panel called the ''[[The_Image_Editor_Tab#The_Filmstrip | Filmstrip]]'' at the top of the ''[[The_Image_Editor_Tab#The_Filmstrip | Editor]]'' tab showing the rest of the photos in that folder for easy access. There are ''Previous Image'' and ''Next Image'' [[File:Nav-prev.png]] [[File:Nav-next.png]] buttons in the bottom toolbar (and [[Keyboard Shortcuts | keyboard shortcuts]] for them) to switch to the previous/next image.&lt;br /&gt;
* ''Multiple Editor Tabs Mode'' (METM), where each photo is opened in its own ''[[The_Image_Editor_Tab#The_Filmstrip | Editor]]'' tab. The ''[[The_Image_Editor_Tab#The_Filmstrip | Filmstrip]]'' is hidden in this mode and there are no previous/next buttons. Having multiple photos opened at the same time requires more RAM.&lt;br /&gt;
&lt;br /&gt;
Try both modes and see which one suits you best. To do that, click on the ''Preferences'' icon [[image:preferences.png|Preferences icon]] in the bottom-left or top-right corner of the RT window, choose &amp;quot;''General &amp;gt; Layout''&amp;quot; and set ''Editor Layout'' to your preferred choice.&lt;br /&gt;
&lt;br /&gt;
Use this ''Preferences'' window to select a different language for the user interface, to choose a different color theme, change the font size, etc.&lt;br /&gt;
&lt;br /&gt;
It is also possible to start RawTherapee in no-File-Browser-mode (without the ''File Browser'' tab) by specifying RawTherapee to open an image from your operating system's file browser (in other words, right-click on a photo and select &amp;quot;''Open With &amp;gt; RawTherapee''&amp;quot;), or by using the image filename as an argument when starting RawTherapee from the command line (&amp;lt;code&amp;gt;rawtherapee /path/to/some/photo.raw&amp;lt;/code&amp;gt;). This mode was introduced for people with little RAM as not having a ''File Browser'' tab means RawTherapee uses a little less memory, however in practice the amount of memory saved is little and the usability cost outweighs the little benefit, so it is likely to be removed in the future (see [https://code.google.com/p/rawtherapee/issues/detail?id=2254 issue 2254]).&lt;br /&gt;
&lt;br /&gt;
== The Filmstrip ==&lt;br /&gt;
&lt;br /&gt;
[[File:Rt filmstrip 21 toolbar-visible.jpg|none|frame|class=heroed|RawTherapee-4.2 showing the Filmstrip with the toolbar visible, which takes up more screen space but lets you easily label, rate and filter the visible thumbnails.]]&lt;br /&gt;
[[File:Rt filmstrip 21 toolbar-hidden.jpg|none|frame|class=heroed|RawTherapee-4.2 showing the Filmstrip with the toolbar hidden, which makes it less high and provides more screen space for the main preview (partially visible at the bottom).]]&lt;br /&gt;
&lt;br /&gt;
If you use ''Single Editor Tab Mode'' (&amp;quot;''Preferences &amp;gt; General &amp;gt; Layout''&amp;quot;) you can display a horizontal panel above the preview, this is called the ''Filmstrip''. It contains thumbnails of all images in the currently opened album, and is synchronized with the currently opened image so that you can use [[Keyboard Shortcuts|keyboard shortcuts]] or the previous [[Image:nav-prev.png|Open previous image icon]] and next [[Image:nav-next.png|Open next image icon]] image buttons to open the previous/next image without needing to go back to the ''[[The File Browser Tab|File Browser]]'' tab.&lt;br /&gt;
&lt;br /&gt;
As of RawTherapee version 4.2.10, you can hide the Filmstrip's toolbar to save screen space. There are two ways of doing this: one way just toggles the toolbar on/off without resizing the filmstrip to the new height, and the other way does the same but also automatically resizes the filmstrip's height. Both are invoked via [[Keyboard Shortcuts|keyboard shortcuts]] only. As resizing the filmstrip's height will trigger a refresh of the image preview and this might take a while if using CPU-hungry tools like noise reduction while zoomed in at 100%, the mode that doesn't resize has been implemented for users with slow machines. Users with fast machines will find the auto-resizing mode more helpful.&lt;br /&gt;
&lt;br /&gt;
== Monitor Profile and Soft-Proofing ==&lt;br /&gt;
&lt;br /&gt;
The widgets under the main preview in RawTherapee 5 allow you to apply a monitor color profile to the preview image. This enables users who have calibrated and profiled their monitors to get an instant and accurate preview of their work, whether you're staying in sRGB or working in a wide gamut. Note: OS X users are limited to sRGB and will not get an accurate preview otherwise ([https://discuss.pixls.us/t/wide-gamut-preview-in-os-x/2481 see discussion]), while users of Linux and Windows will get a correct wide-gamut preview.&lt;br /&gt;
&lt;br /&gt;
Go to Preferences &amp;gt; [[Preferences#Color_Management_Tab|Color Management]] and point the &amp;quot;Directory containing color profiles&amp;quot; to the folder into which you saved your monitor and printer ICC profile. Restart RawTherapee for the changes to take effect. Now you will be able to select your monitor's color profile in the combo-box under the preview. Use the &amp;quot;Relative Colorimetric&amp;quot; rendering intent unless you have a good reason otherwise.&lt;br /&gt;
&lt;br /&gt;
One can also enable soft-proofing of the preview. This will show you what your image will look like once it gets transformed by the printer profile set in Preferences &amp;gt; [[Preferences#Color_Management_Tab|Color Management]]. If you want to adjust an image for printing and you have an ICC profile for your printer-paper combination you could set that as your output profile, enable &amp;quot;Black point compensation&amp;quot; in Preferences so that the blackest black in your image will match the blackest black your printer-paper combination is capable of reproducing, then enable soft-proofing. You will see what your image will look like if you print it. This allows you to make adjustments and get an instant preview of the result, saving you time and ink on test prints.&lt;br /&gt;
&lt;br /&gt;
The icon with exclamation mark next to the soft-proofing button will gray out areas that cannot be reproduced by your printer, i.e. areas where you will loose details.&lt;br /&gt;
&lt;br /&gt;
You should have a calibrated and profiled monitor in order for the soft-proofing preview to be accurate.&lt;br /&gt;
&lt;br /&gt;
The items you see in the monitor profile combo-box (under the main preview) and in the printer profile combobox (in Preferences &amp;gt; [[Preferences#Color_Management_Tab|Color Management]]) are ICC files located in a folder which you can point RawTherapee to by going to &amp;quot;[[Preferences]] &amp;gt; [[Preferences#Color_Management_Tab|Color Management]] &amp;gt; Directory containing color profiles&amp;quot;.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Queue&amp;diff=8621</id>
		<title>Queue</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Queue&amp;diff=8621"/>
		<updated>2021-07-08T19:11:01Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Typo fixed GitHub issue #6300&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;The Queue&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
[[Saving Images|Saving images]] from RawTherapee can be done in several ways, the two most common of which are either saving the image immediately [[File:Save.png]] from the Editor tab, or adding it to the batch processing queue [[File:Gears.png]] which resides in the Queue tab.&lt;br /&gt;
&lt;br /&gt;
Using the &amp;quot;Save immediately&amp;quot; feature will put your CPU immediately to work, and as a result, opening and tweaking other images in the Editor will be somewhat slow while the image is being saved. The queue mechanism allows you to put edited images which are ready to be saved to a virtual queue which you can start processing at a later time. Adding them to the queue is instant, so you can continue editing other images and making the most of your CPU for editing. Once you are done editing and putting images to the queue, you can flip the large &amp;quot;On&amp;quot; switch and go off to brew yourself a coffee while RawTherapee grinds away at all the images in the queue.&lt;br /&gt;
&lt;br /&gt;
The queue is persistent - you can exit RawTherapee and restart it later; the queued images will still be there. The queue can even survive a crash.&lt;br /&gt;
&lt;br /&gt;
== Adding Images to the Queue ==&lt;br /&gt;
&lt;br /&gt;
There are several ways of adding an image to the queue:&lt;br /&gt;
# When you are done tweaking an image in the Editor, click the &amp;quot;Put current image to processing queue&amp;quot; button [[File:Gears.png]].&lt;br /&gt;
# Also in the Editor tab, click the &amp;quot;Save current image&amp;quot; button [[File:Save.png]] and select &amp;quot;Put to the head/tail of the processing queue&amp;quot;.&lt;br /&gt;
# Right-click on a thumbnail in the [[File Browser]] or the [[Editor#The_Filmstrip|Filmstrip]] and select &amp;quot;Put to queue&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Regardless which method you use, when you go to the ''Queue'' tab you will see your photos lined up, ready for processing (if you had the queue set to &amp;quot;Auto-start&amp;quot;, it may have finished processing before you viewed it).&lt;br /&gt;
&lt;br /&gt;
== Queue Settings ==&lt;br /&gt;
&lt;br /&gt;
[[File:Save window.png|thumb|500px|right|The &amp;quot;Save current image&amp;quot; window. Notice the &amp;quot;Force saving options&amp;quot; checkbox, which is disabled in the screenshot because neither of the &amp;quot;Put to the head/tail of the processing queue&amp;quot; options are enabled.]]&lt;br /&gt;
&lt;br /&gt;
The Queue has several settings, such as the output file format and destination. These settings take effect in all cases except when you use the &amp;quot;Save current image&amp;quot; button [[File:Save.png]], select &amp;quot;Put to the head/tail of the processing queue&amp;quot; and enable the &amp;quot;Force saving options&amp;quot; checkbox. In this case, the settings seen in the &amp;quot;Save&amp;quot; window will be used, and the ones from the Queue tab ignored. In all other cases, the settings from the Queue tab will be used.&lt;br /&gt;
&lt;br /&gt;
The settings speak for themselves. Two things worth pointing out:&lt;br /&gt;
# &amp;quot;Save processing parameters with image&amp;quot; will save a sidecar file alongside the output file, with the same filename as the output image but with a &amp;quot;.pp3&amp;quot; extension. This is useful when you want to save multiple copies of the same photo, each one tweaked a bit differently.&lt;br /&gt;
# The destination folder can be set by selecting &amp;quot;Save to folder&amp;quot;, but if you need to dynamically customize the destination folder and filename then select &amp;quot;Use template&amp;quot; instead. Hover your mouse over the ''Use template'' input box and a tooltip with an explanation will pop up:&lt;br /&gt;
&lt;br /&gt;
 Specify the output location based on the source photo's location, rank, trash status or position in the queue.&lt;br /&gt;
 &lt;br /&gt;
 Using the following pathname as an example:&lt;br /&gt;
 &amp;lt;b&amp;gt;/home/tom/photos/2010-10-31/photo1.raw&amp;lt;/b&amp;gt;&lt;br /&gt;
 the meaning of the formatting strings follows:&lt;br /&gt;
 &amp;lt;b&amp;gt;%d4&amp;lt;/b&amp;gt; = &amp;lt;i&amp;gt;home&amp;lt;/i&amp;gt;&lt;br /&gt;
 &amp;lt;b&amp;gt;%d3&amp;lt;/b&amp;gt; = &amp;lt;i&amp;gt;tom&amp;lt;/i&amp;gt;&lt;br /&gt;
 &amp;lt;b&amp;gt;%d2&amp;lt;/b&amp;gt; = &amp;lt;i&amp;gt;photos&amp;lt;/i&amp;gt;&lt;br /&gt;
 &amp;lt;b&amp;gt;%d1&amp;lt;/b&amp;gt; = &amp;lt;i&amp;gt;2010-10-31&amp;lt;/i&amp;gt;&lt;br /&gt;
 &amp;lt;b&amp;gt;%f&amp;lt;/b&amp;gt; = &amp;lt;i&amp;gt;photo1&amp;lt;/i&amp;gt;&lt;br /&gt;
 &amp;lt;b&amp;gt;%p1&amp;lt;/b&amp;gt; = &amp;lt;i&amp;gt;/home/tom/photos/2010-10-31/&amp;lt;/i&amp;gt;&lt;br /&gt;
 &amp;lt;b&amp;gt;%p2&amp;lt;/b&amp;gt; = &amp;lt;i&amp;gt;/home/tom/photos/&amp;lt;/i&amp;gt;&lt;br /&gt;
 &amp;lt;b&amp;gt;%p3&amp;lt;/b&amp;gt; = &amp;lt;i&amp;gt;/home/tom/&amp;lt;/i&amp;gt;&lt;br /&gt;
 &amp;lt;b&amp;gt;%p4&amp;lt;/b&amp;gt; = &amp;lt;i&amp;gt;/home/&amp;lt;/i&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;b&amp;gt;%r&amp;lt;/b&amp;gt; will be replaced by the photo's rank. If the photo is unranked, '&amp;lt;i&amp;gt;0&amp;lt;/i&amp;gt;' is used. If the photo is in the trash, '&amp;lt;i&amp;gt;x&amp;lt;/i&amp;gt;' is used.&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;b&amp;gt;%s1&amp;lt;/b&amp;gt;, ..., &amp;lt;b&amp;gt;%s9&amp;lt;/b&amp;gt; will be replaced by the photo's initial position in the queue at the time the queue is started. The number specifies the padding, e.g. &amp;lt;b&amp;gt;%s3&amp;lt;/b&amp;gt; results in '&amp;lt;i&amp;gt;001&amp;lt;/i&amp;gt;'.&lt;br /&gt;
 &lt;br /&gt;
 If you want to save the output image alongside the source image, write:&lt;br /&gt;
 &amp;lt;b&amp;gt;%p1/%f&amp;lt;/b&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 If you want to save the output image in a folder named '&amp;lt;i&amp;gt;converted&amp;lt;/i&amp;gt;' located in the source photo's folder, write:&lt;br /&gt;
 &amp;lt;b&amp;gt;%p1/converted/%f&amp;lt;/b&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 If you want to save the output image in&lt;br /&gt;
 '&amp;lt;i&amp;gt;/home/tom/photos/converted/2010-10-31&amp;lt;/i&amp;gt;', write:&lt;br /&gt;
 &amp;lt;b&amp;gt;%p2/converted/%d1/%f&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Running the Queue ==&lt;br /&gt;
&lt;br /&gt;
In the top-left corner of the Queue tab you will find an &amp;quot;On/Off&amp;quot; switch, and an &amp;quot;Auto-start&amp;quot; checkbox.&lt;br /&gt;
# If &amp;quot;Auto-start&amp;quot; is enabled, processing will start as soon as an image is sent to the queue. Usually you will not want this, as this will use your CPU for processing the photos in the queue leaving very little CPU time for allowing RawTherapee to be responsive while you tweak other photos.&lt;br /&gt;
# If &amp;quot;Auto-start&amp;quot; is not checked, you will have to activate the queue manually by hitting the &amp;quot;On/Off&amp;quot; switch.&lt;br /&gt;
&lt;br /&gt;
You can pause the queue by hitting the &amp;quot;On/Off&amp;quot; switch - RawTherapee will first finish processing the current photo.&lt;br /&gt;
&lt;br /&gt;
== Clearing the Queue ==&lt;br /&gt;
&lt;br /&gt;
You can remove a specific image from the queue by clicking the small &amp;quot;Cancel job&amp;quot; [[File:Cancel-small.png]] button in the corner of each thumbnail.&lt;br /&gt;
&lt;br /&gt;
You can clear the whole queue right-clicking on a thumbnail and clicking &amp;quot;Select all&amp;quot; and &amp;quot;Cancel job&amp;quot;, or by using the {{k|Ctrl}} + {{k|a}} keyboard shortcut to select all thumbnails and then hitting the {{k|Delete}} key on the keyboard.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Queue&amp;diff=8620</id>
		<title>Queue</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Queue&amp;diff=8620"/>
		<updated>2021-07-08T19:10:26Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Typo fixed GitHub issue #6300&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;The Queue&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
[[Saving Images|Saving images]] from RawTherapee can be done in several ways, the two most common of which are either saving the image immediately [[File:Save.png]] from the Editor tab, or adding it to the batch processing queue [[File:Gears.png]] which resides in the Queue tab.&lt;br /&gt;
&lt;br /&gt;
Using the &amp;quot;Save immediately&amp;quot; feature will put your CPU immediately to work, and as a result, opening and tweaking other images in the Editor will be somewhat slow while the image is being saved. The queue mechanism allows you to put edited images which are ready to be saved to a virtual queue which you can start processing at a later time. Adding them to the queue is instant, so you can continue editing other images and making the most of your CPU for editing. Once you are done editing and putting images to the queue, you can flip the large &amp;quot;On&amp;quot; switch and go off to brew yourself a coffee while RawTherapee grinds away at all the images in the queue.&lt;br /&gt;
&lt;br /&gt;
The queue is persistent - you can exit RawTherapee and restart it later; the queued images will still be there. The queue can even survive a crash.&lt;br /&gt;
&lt;br /&gt;
== Adding Images to the Queue ==&lt;br /&gt;
&lt;br /&gt;
There are several ways of adding an image to the queue:&lt;br /&gt;
# When you are done tweaking an image in the Editor, click the &amp;quot;Put current image to processing queue&amp;quot; button [[File:Gears.png]].&lt;br /&gt;
# Also in the Editor tab, click the &amp;quot;Save current image&amp;quot; button [[File:Save.png]] and select &amp;quot;Put to the head/tail of the processing queue&amp;quot;.&lt;br /&gt;
# Right-click on a thumbnail in the [[File Browser]] or the [[Editor#The_Filmstrip|Filmstrip]] and select &amp;quot;Put to queue&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Regardless which method you use, when you go to the ''Queue'' tab you will see your photos lined up, ready for processing (if you had the queue set to &amp;quot;Auto-start&amp;quot;, it may have finished processing before you viewed it).&lt;br /&gt;
&lt;br /&gt;
== Queue Settings ==&lt;br /&gt;
&lt;br /&gt;
[[File:Save window.png|thumb|500px|right|The &amp;quot;Save current image&amp;quot; window. Notice the &amp;quot;Force saving options&amp;quot; checkbox, which is disabled in the screenshot because neither of the &amp;quot;Put to the head/tail of the processing queue&amp;quot; options are enabled.]]&lt;br /&gt;
&lt;br /&gt;
The Queue has several settings, such as the output file format and destination. These settings take effect in all cases except when you use the &amp;quot;Save current image&amp;quot; button [[File:Save.png]], select &amp;quot;Put the the head/tail of the processing queue&amp;quot; and enable the &amp;quot;Force saving options&amp;quot; checkbox. In this case, the settings seen in the &amp;quot;Save&amp;quot; window will be used, and the ones from the Queue tab ignored. In all other cases, the settings from the Queue tab will be used.&lt;br /&gt;
&lt;br /&gt;
The settings speak for themselves. Two things worth pointing out:&lt;br /&gt;
# &amp;quot;Save processing parameters with image&amp;quot; will save a sidecar file alongside the output file, with the same filename as the output image but with a &amp;quot;.pp3&amp;quot; extension. This is useful when you want to save multiple copies of the same photo, each one tweaked a bit differently.&lt;br /&gt;
# The destination folder can be set by selecting &amp;quot;Save to folder&amp;quot;, but if you need to dynamically customize the destination folder and filename then select &amp;quot;Use template&amp;quot; instead. Hover your mouse over the ''Use template'' input box and a tooltip with an explanation will pop up:&lt;br /&gt;
&lt;br /&gt;
 Specify the output location based on the source photo's location, rank, trash status or position in the queue.&lt;br /&gt;
 &lt;br /&gt;
 Using the following pathname as an example:&lt;br /&gt;
 &amp;lt;b&amp;gt;/home/tom/photos/2010-10-31/photo1.raw&amp;lt;/b&amp;gt;&lt;br /&gt;
 the meaning of the formatting strings follows:&lt;br /&gt;
 &amp;lt;b&amp;gt;%d4&amp;lt;/b&amp;gt; = &amp;lt;i&amp;gt;home&amp;lt;/i&amp;gt;&lt;br /&gt;
 &amp;lt;b&amp;gt;%d3&amp;lt;/b&amp;gt; = &amp;lt;i&amp;gt;tom&amp;lt;/i&amp;gt;&lt;br /&gt;
 &amp;lt;b&amp;gt;%d2&amp;lt;/b&amp;gt; = &amp;lt;i&amp;gt;photos&amp;lt;/i&amp;gt;&lt;br /&gt;
 &amp;lt;b&amp;gt;%d1&amp;lt;/b&amp;gt; = &amp;lt;i&amp;gt;2010-10-31&amp;lt;/i&amp;gt;&lt;br /&gt;
 &amp;lt;b&amp;gt;%f&amp;lt;/b&amp;gt; = &amp;lt;i&amp;gt;photo1&amp;lt;/i&amp;gt;&lt;br /&gt;
 &amp;lt;b&amp;gt;%p1&amp;lt;/b&amp;gt; = &amp;lt;i&amp;gt;/home/tom/photos/2010-10-31/&amp;lt;/i&amp;gt;&lt;br /&gt;
 &amp;lt;b&amp;gt;%p2&amp;lt;/b&amp;gt; = &amp;lt;i&amp;gt;/home/tom/photos/&amp;lt;/i&amp;gt;&lt;br /&gt;
 &amp;lt;b&amp;gt;%p3&amp;lt;/b&amp;gt; = &amp;lt;i&amp;gt;/home/tom/&amp;lt;/i&amp;gt;&lt;br /&gt;
 &amp;lt;b&amp;gt;%p4&amp;lt;/b&amp;gt; = &amp;lt;i&amp;gt;/home/&amp;lt;/i&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;b&amp;gt;%r&amp;lt;/b&amp;gt; will be replaced by the photo's rank. If the photo is unranked, '&amp;lt;i&amp;gt;0&amp;lt;/i&amp;gt;' is used. If the photo is in the trash, '&amp;lt;i&amp;gt;x&amp;lt;/i&amp;gt;' is used.&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;b&amp;gt;%s1&amp;lt;/b&amp;gt;, ..., &amp;lt;b&amp;gt;%s9&amp;lt;/b&amp;gt; will be replaced by the photo's initial position in the queue at the time the queue is started. The number specifies the padding, e.g. &amp;lt;b&amp;gt;%s3&amp;lt;/b&amp;gt; results in '&amp;lt;i&amp;gt;001&amp;lt;/i&amp;gt;'.&lt;br /&gt;
 &lt;br /&gt;
 If you want to save the output image alongside the source image, write:&lt;br /&gt;
 &amp;lt;b&amp;gt;%p1/%f&amp;lt;/b&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 If you want to save the output image in a folder named '&amp;lt;i&amp;gt;converted&amp;lt;/i&amp;gt;' located in the source photo's folder, write:&lt;br /&gt;
 &amp;lt;b&amp;gt;%p1/converted/%f&amp;lt;/b&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 If you want to save the output image in&lt;br /&gt;
 '&amp;lt;i&amp;gt;/home/tom/photos/converted/2010-10-31&amp;lt;/i&amp;gt;', write:&lt;br /&gt;
 &amp;lt;b&amp;gt;%p2/converted/%d1/%f&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Running the Queue ==&lt;br /&gt;
&lt;br /&gt;
In the top-left corner of the Queue tab you will find an &amp;quot;On/Off&amp;quot; switch, and an &amp;quot;Auto-start&amp;quot; checkbox.&lt;br /&gt;
# If &amp;quot;Auto-start&amp;quot; is enabled, processing will start as soon as an image is sent to the queue. Usually you will not want this, as this will use your CPU for processing the photos in the queue leaving very little CPU time for allowing RawTherapee to be responsive while you tweak other photos.&lt;br /&gt;
# If &amp;quot;Auto-start&amp;quot; is not checked, you will have to activate the queue manually by hitting the &amp;quot;On/Off&amp;quot; switch.&lt;br /&gt;
&lt;br /&gt;
You can pause the queue by hitting the &amp;quot;On/Off&amp;quot; switch - RawTherapee will first finish processing the current photo.&lt;br /&gt;
&lt;br /&gt;
== Clearing the Queue ==&lt;br /&gt;
&lt;br /&gt;
You can remove a specific image from the queue by clicking the small &amp;quot;Cancel job&amp;quot; [[File:Cancel-small.png]] button in the corner of each thumbnail.&lt;br /&gt;
&lt;br /&gt;
You can clear the whole queue right-clicking on a thumbnail and clicking &amp;quot;Select all&amp;quot; and &amp;quot;Cancel job&amp;quot;, or by using the {{k|Ctrl}} + {{k|a}} keyboard shortcut to select all thumbnails and then hitting the {{k|Delete}} key on the keyboard.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Color_Management&amp;diff=8584</id>
		<title>Color Management</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Color_Management&amp;diff=8584"/>
		<updated>2021-06-19T10:24:02Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Added GUI figure&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Color Management&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Color management comprises all tasks to ensure a faithful representation of colors from scene to intermediate formats, editors and various output media. This is an often complicated and technical matter that RawTherapee tries to handle as correctly as possible behind the scenes. More can be read about it [http://rawpedia.rawtherapee.com/Color_Management_addon here]. The various options of the Color Management tool are explained below.&lt;br /&gt;
&lt;br /&gt;
== Input Profile ==&lt;br /&gt;
&lt;br /&gt;
An essential first step in raw processing is the faithful conversion of the [[Demosaicing#Introduction|camera sensor data]] to an internal RGB color space. This conversion requires an input profile made specifically for the camera. Such a profile is the result of the analysis of how specific colors and tones are captured, processed and represented as raw data by the camera (for more details, see e.g. [https://ninedegreesbelow.com/photography/articles.html#profile-digital-camera Elle Stone's article], [https://torger.se/anders/dcamprof.html DCamProf's documentation] or [[How to create DCP color profiles]]. Without a camera-specific input profile, accurate color representation is impossible.&lt;br /&gt;
&lt;br /&gt;
The input profile is applied to the image data at the beginning of RawTherapee's [[Toolchain_Pipeline|processing pipeline]] because most tools depend on it. There are several ways to apply an input profile.&lt;br /&gt;
&lt;br /&gt;
[[File:ColorManagement-InputProfile-GUI.jpg|right|frame|RawTherapee's interface for choosing the input profile]]&lt;br /&gt;
&lt;br /&gt;
==== No Profile ====&lt;br /&gt;
&lt;br /&gt;
No color conversion will take place and a unit transform of the image data is applied. '''Do not use this for regular editing.''' Applying no input profile is generally only useful for analytical purposes to show images in the camera's native RGB color space, or in extreme cases to prevent clipping of channels when the camera has recorded colors outside of conventional gamuts.&lt;br /&gt;
&lt;br /&gt;
Note that selecting 'No Profile' for non-raw files bypasses the embedded color profile and the working profile will be assigned. This means that gamma-encoded files (e.g. sRGB) will be assumed linear, making them look brighter.&lt;br /&gt;
&lt;br /&gt;
==== Use embedded, if possible ====&lt;br /&gt;
&lt;br /&gt;
Only available for non-raw files. The embedded color profile is used. Which profile is embedded can be checked with GIMP for example.&lt;br /&gt;
&lt;br /&gt;
==== Camera Standard ====&lt;br /&gt;
&lt;br /&gt;
A conversion takes place based on profiled information from either of three sources, in decreasing priority:&lt;br /&gt;
* The &amp;lt;code&amp;gt;dcraw_matrix&amp;lt;/code&amp;gt; field in the &amp;lt;code&amp;gt;camconst.json&amp;lt;/code&amp;gt; data file available in RawTherapee's installation directory;&lt;br /&gt;
* Hard-coded values provided by the &amp;lt;code&amp;gt;dcraw&amp;lt;/code&amp;gt; library embedded within RawTherapee;&lt;br /&gt;
* The raw file itself.&lt;br /&gt;
&lt;br /&gt;
There is one exception: when a DNG raw file has a &amp;lt;code&amp;gt;ColorMatrix2&amp;lt;/code&amp;gt; Exif tag and was not generated by the Adobe DNG Converter, the matrix from the Exif data is prioritized above all others.&lt;br /&gt;
&lt;br /&gt;
Applying an input profile is nothing more than a linear algebra operation on the image data. The input profile consists of a square matrix (3×3 for RGB based sensors) that is multiplied with the pixel vectors of camera-native RGB values. These matrices are specifically calibrated for a specific illuminant ([https://en.wikipedia.org/wiki/Illuminant_D65 D65], i.e. 6500K) and provide the most accurate color reproduction if the scene illuminant matches the calibration illuminant. However, the color accuracy is usually still good enough for very different light sources and white balances.&lt;br /&gt;
&lt;br /&gt;
The benefit of a matrix profile over other profiles (e.g. table-based DCP or ICC profiles) is its linearity. Because no non-linear functions are applied to the data, the scene-referred linearity of the light intensities is kept intact. This is important for several image processing operations and for example when exporting for further editing (e.g. HDR applications usually require a predictable linear color response).&lt;br /&gt;
&lt;br /&gt;
==== Auto-Matched Camera Profile ====&lt;br /&gt;
&lt;br /&gt;
RawTherapee allows you to use custom '''DCP''' (Adobe DNG Camera Profile) or '''ICC''' (International Color Consortium) color input profiles. These can be tailor-made to specific scene conditions to provide the most accurate color rendition, or to generally improve upon the standard matrix profiles available.&lt;br /&gt;
&lt;br /&gt;
RawTherapee ships multiple high-quality, custom-made, general-purpose DCP profiles that can be automatically matched when an image from a supported camera is opened. The available profiles are found in the &amp;lt;code&amp;gt;dcpprofiles&amp;lt;/code&amp;gt; folder in your installation directory. It is possible to add your own DCP or ICC profiles to this folder. Matching only works on the exact name of the camera (case-sensitive) as is present in the image metadata.&lt;br /&gt;
&lt;br /&gt;
Most provided DCP profiles are dual-illuminant (see [[Color_Management#DCP_Illuminant|below]]) and some provide tone curves and looks as well. New profiles are added exclusively based on user submission. Please read [[How to create DCP color profiles]] for further instructions in case you want to contribute.&lt;br /&gt;
&lt;br /&gt;
==== Custom ====&lt;br /&gt;
&lt;br /&gt;
Specify a custom DCP or ICC camera input profile when an automatic match is not available, or if you want to override the standard or matched profile. DCP profiles for your camera may be available through the Adobe DNG Converter. Read [[How to get LCP and DCP profiles]] for further information.&lt;br /&gt;
&lt;br /&gt;
Be aware that when you load a custom ICC profile that it is an ''input'' profile. ICC profiles can be created for a multitude of purposes (printers, displays, etc.) and not all profiles are suited as a camera input profile. Your results may vary.&lt;br /&gt;
&lt;br /&gt;
=== DCP ===&lt;br /&gt;
&lt;br /&gt;
==== DCP Illuminant ====&lt;br /&gt;
&lt;br /&gt;
Some of RawTherapee's profiles are single-illuminant (Daylight/D50), while others are double-illuminant (Daylight/D50 and Tungsten/StdA). If a dual-illuminant profile is loaded the &amp;quot;DCP Illuminant&amp;quot; setting will be enabled and you can choose which illuminant to use. The actual DCP standard (part of the DNG standard) does not provide this choice, but instead an interpolation between the two illuminants is calculated based on the chosen white balance (there will only be an interpolation if the white balance is in-between both illuminants, otherwise the closest is picked). This &amp;quot;interpolated&amp;quot; mode is the default setting of &amp;quot;DCP Illuminant&amp;quot; and for any normal use you do not need to change this.&lt;br /&gt;
&lt;br /&gt;
You can however choose to base the color rendering on one of the specific illuminants. In some cases this might produce more pleasing color. It can also be interesting for diagnostic purposes to see how large (or small) a difference there is in color rendering between the illuminants, but, as said, for general use this setting should be untouched.&lt;br /&gt;
&lt;br /&gt;
==== DCP Tone Curve ====&lt;br /&gt;
&lt;br /&gt;
Some DCPs contain a tone curve which may be used to add contrast and brightness to provide a film-like look. This is mainly used for profiles simulating camera maker settings. The tone curve checkbox will be disabled for profiles which do not contain a tone curve.&lt;br /&gt;
&lt;br /&gt;
The curve mode used by the DCP tone curve is the same as the Exposure tool's &amp;quot;[[Exposure#Film-Like|film-like]]&amp;quot; mode, meaning you can reproduce the effect using the Exposure tool's tone curves in film-like mode. When contrast is applied with a film-like curve the appearance of the colors will change and overall saturation is increased, except for bright colors which instead are de-saturated. Some profiles which have curves embedded are pre-corrected for this color appearance change and will thus not provide the intended look without the curve applied. Most will however work well without the tone curve applied especially if you add a similar curve yourself using the Exposure tool's curves, but if you want to see exactly how the profile designer intended the colors to look you should enable the tone curve.&lt;br /&gt;
&lt;br /&gt;
While the input color profile is applied at the first stages of the [[Toolchain_Pipeline|toolchain pipeline]], the DCP tone curve is applied later in the pipeline at some point after the Exposure tool.&lt;br /&gt;
&lt;br /&gt;
{{acrrtc}}&lt;br /&gt;
&lt;br /&gt;
If the DCP profile has a copyright tag with the value &amp;quot;Adobe Systems&amp;quot;, regardless whether it contains a tone curve or not, RawTherapee will automatically create a tone curve shaped identically to the Adobe Camera Raw curve. The reason for this is so that using the DCP in RawTherapee can match the results of using that DCP in Lightroom. This is why the &amp;quot;Tone curve&amp;quot; checkbox will not be grayed-out when using a DCP profile which has no embedded tone curve, as long as it has the copyright tag set as described.&lt;br /&gt;
&lt;br /&gt;
==== DCP Base Table ====&lt;br /&gt;
&lt;br /&gt;
This enables the DCP &amp;quot;HueSatMap&amp;quot; lookup table which is used to add non-linear corrections on top of the basic matrix. This is an advanced user setting and unless you want only the pure matrix result should leave it on. It's grayed out if the loaded profile lacks a HueSatMap table.&lt;br /&gt;
&lt;br /&gt;
==== DCP Look Table ====&lt;br /&gt;
&lt;br /&gt;
This enables the DCP &amp;quot;LookTable&amp;quot; lookup table which is intended to add a subjective look on top generally together with an embedded tone curve. That is if you disable the DCP curve and looktable you may get a neutral &amp;quot;colorimetric&amp;quot; profile, if the DCP was designed that way which is not always the case (if the DCP has both a look table and a base table it's likely that it is, but if it only has a look table it will probably not work well with it disabled). Disabling individual DCP elements are considered advanced user settings, normally you would leave this on.&lt;br /&gt;
&lt;br /&gt;
==== DCP Baseline Exposure ====&lt;br /&gt;
&lt;br /&gt;
The DCP may indicate an exposure offset that corresponds to an offset of the exposure slider. The purpose of this is typically to make the brightness of the image match the brightness of the camera's own JPEGs, which can be useful if you're shooting with auto-exposure. Currently this offset is applied &amp;quot;under the surface&amp;quot; so you don't see it on the exposure slider.&lt;br /&gt;
&lt;br /&gt;
Note that if you are using Adobe's proprietary profiles those are expecting that the DNG's &amp;quot;baseline exposure&amp;quot; tag is applied too (the profile's offset is added on top). Currently there is no support for the DNG tag so you need to find that out on your own (using exiftool for example) and then set that offset using the exposure slider if you want to get the exact same brightness as in Adobe Camera Raw.&lt;br /&gt;
&lt;br /&gt;
=== Implementation Notes ===&lt;br /&gt;
&lt;br /&gt;
==== Third-Party DCP Support ====&lt;br /&gt;
&lt;br /&gt;
The DNG Camera Profile, DCP, is the preferred camera input profile format for RawTherapee. All elements of the 1.4 DNG specification are supported, with the exception of the black render tag (see below). A DCP can be a pure matrix profile, it can have a LUT (typically 2.5D) to improve the colorimetric accuracy, and then it can have an embedded curve and a separate &amp;quot;look table&amp;quot; on top. It may also add an exposure offset. All these elements can be toggled on/off via checkboxes. However, you should be aware that a profile will produce the most accurate colors when all the elements it was designed to include are enabled. For example, using a tone curve changes the color ''appearance'', so if you disable an embedded tone curve to get a linear profile you can't count on the colors being absolutely accurate. Nonetheless, most photographers rely on an aesthetically-pleasing appearance, and not on absolute accuracy, so this should not be a concern unless absolute accuracy is crucial. Typically, third-party profiles would come from Adobe Camera Raw/Lightroom/DNG Converter, and RawTherapee supports them. Many of Adobe's profiles lack a tone curve, but in Adobe's world that does not mean that no tone curve should be applied, but that Adobe's default curve should be applied. RawTherapee will therefore identify Adobe profiles (from the copyright string) and add the default curve to those (which you can toggle with the tone curve checkbox).&lt;br /&gt;
&lt;br /&gt;
Adobe DNG Converter may add a &amp;quot;baseline exposure&amp;quot; to the DNG file. Some of Adobe's DCPs are designed to work with that baseline exposure and then produce a default output which is about the same brightness and contrast as the out-of-camera JPEG. RawTherapee can honor this baseline exposure if the DCP contains one.&lt;br /&gt;
&lt;br /&gt;
The DCP format also has a black render tag. This indicates if the raw converter should do &amp;quot;automatic&amp;quot; black subtraction or not. RawTherapee ignores this tag - you can perform manual black subtraction with the [[Raw Black Points]] tool or with the [[Exposure#Black|black]] slider in the Exposure tool. As many of Adobe's profiles indicate auto black subtraction and Adobe Camera Raw/Lightroom does it, in those cases RawTherapee will render slightly lower contrast and brighter shadows.&lt;br /&gt;
&lt;br /&gt;
==== Third-Party ICC Support ====&lt;br /&gt;
&lt;br /&gt;
RawTherapee has specific support for ICC profiles bundled with Capture One and Nikon NX2, so those should work well. Older ICC profiles are not likely to work well though (typically the image becomes extremely dark with unsupported ICC profiles).&lt;br /&gt;
&lt;br /&gt;
Some ICC profiles apply a tone-curve and desaturate bright highlights for a more film-like look. Those profiles may not work well together with [[Exposure#Highlight_Reconstruction|Highlight Reconstruction]]. If you see a radical change in contrast when you apply your ICC profile, it has applied a tone-curve and then you should not use it together with [[Exposure#Highlight_Reconstruction|Highlight Reconstruction]].&lt;br /&gt;
&lt;br /&gt;
Unlike DCP profiles, ICC profile processing may cause clipping of extremely saturated colors during conversion. In practice this is rarely a problem, but still DCP should be considered the primary choice if available.&lt;br /&gt;
&lt;br /&gt;
Note on using Capture One ICC profiles: RawTherapee applies the ICC before exposure adjustments, as the intention is that input profiles should only be used to make the colors more accurate, and not to apply a look - you design the look using the tools instead. Phase One's ICC profiles contain a subjective look though, which means that they typically contain &amp;quot;hue twists&amp;quot;, for example saturation in the shadows is increased. This means that if you have an underexposed file and push it a few stops, those hue twists have been applied to the dark image before the exposure adjustment and will thus be in the wrong place after adjustment; that is you don't get the same look as in Phase One's Capture One. Therefore it is recommended to have the right exposure out of the camera when using Phase One ICC profiles. You should also apply a suitable RGB [[Exposure#Film-Like|film-like]] curve, as those ICC profiles are designed to be used together with that.&lt;br /&gt;
&lt;br /&gt;
We are aware that LUT ICCs should typically be applied after exposure (just as DCP LookTables are applied), and that would support for example Capture One profiles better. This may be fixed in a future version.&lt;br /&gt;
&lt;br /&gt;
=== Save Reference Image ===&lt;br /&gt;
&lt;br /&gt;
Clicking the &amp;quot;Save Reference Image&amp;quot; button saves a linear TIFF image before the input profile is applied. This file can then be used for profiling, i.e. creating a camera input profile. You can use the open-source ArgyllCMS program to create ICC profiles, and DCamProf to create ICC or DCP profiles.&lt;br /&gt;
&lt;br /&gt;
Cropping, resizing and transformations (rotation) will be applied, allowing you to make the output image more manageable by the receiving software. ArgyllCMS is very picky for instance, and requires that only the test target is visible in the image.&lt;br /&gt;
&lt;br /&gt;
You can also choose if you want to export with white balance applied or not. For ICC profiles you should export with white balance applied, but if you intend to make a DNG profile or a dcraw-style color matrix you should export without applying white balance.&lt;br /&gt;
&lt;br /&gt;
== Working Profile ==&lt;br /&gt;
&lt;br /&gt;
The default working profile is ProPhoto and should not be changed for normal use.&lt;br /&gt;
&lt;br /&gt;
The working profile specifies the working color space, which is the color space used for internal calculations, for instance for calculating saturation, RGB brightness/contrast and tone curve adjustments, chrominance, etc.&lt;br /&gt;
&lt;br /&gt;
When RawTherapee was based on integer math it was wise to not use working space larger than absolutely needed to get the best precision in the calculations. However, RawTherapee had switched to floating-point processing in 2011, and since version 4.0.12 the default working profile is ProPhoto, which has a very large gamut.&lt;br /&gt;
&lt;br /&gt;
The choice of working profile has an influence on the effect of the curves in all modes except for perceptual - in that mode, changing the working profile will not alter the effect of the curve. If you have trouble fitting colors within the output gamut you can experiment with changing the working profile when using curves in any mode but perceptual.&lt;br /&gt;
&lt;br /&gt;
Note that the working profile will only specify the red, green and blue primaries, gamma will not change as RawTherapee's processing pipeline is floating point with no gamma encoding (that is gamma = 1.0). Some tools (like curves and histograms) will still display with a gamma (usually sRGB gamma) which is hard-coded for the tool and stays the same regardless of working profile.&lt;br /&gt;
&lt;br /&gt;
=== Adding Custom Working Profiles ===&lt;br /&gt;
&lt;br /&gt;
RawTherapee 5.5 allows you to specify custom working profiles through a [https://en.wikipedia.org/wiki/JSON JSON] file. The file should be named &amp;lt;code&amp;gt;workingspaces.json&amp;lt;/code&amp;gt; and it can reside in:&lt;br /&gt;
* the ICC profile folder as set in [[Preferences#Color_Management_Tab|Preferences &amp;gt; Color Management &amp;gt; Directory containing color profiles]],&lt;br /&gt;
* or in RawTherapee's own ICC profile folder:&lt;br /&gt;
** Windows: &amp;lt;code&amp;gt;&amp;lt;rt-install-folder&amp;gt;\iccprofiles&amp;lt;/code&amp;gt;&lt;br /&gt;
** Linux:&lt;br /&gt;
*** When installed using your package manager or self-compiled with &amp;lt;code&amp;gt;BUILD_BUNDLE=OFF&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;/usr/share/rawtherapee/iccprofiles&amp;lt;/code&amp;gt;&lt;br /&gt;
*** When self-compiled with &amp;lt;code&amp;gt;BUILD_BUNDLE=ON&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;&amp;lt;rt-install-folder&amp;gt;/iccprofiles&amp;lt;/code&amp;gt;&lt;br /&gt;
** macOS: &amp;lt;code&amp;gt;/library/ColorSync/Profiles/Displays&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The format of &amp;lt;code&amp;gt;workingspaces.json&amp;lt;/code&amp;gt; is as follows:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
{&amp;quot;working_spaces&amp;quot;: [&lt;br /&gt;
    {&lt;br /&gt;
        &amp;quot;name&amp;quot; : &amp;quot;ACES&amp;quot;,&lt;br /&gt;
        &amp;quot;file&amp;quot; : &amp;quot;/path/to/ACES.icc&amp;quot;&lt;br /&gt;
    },&lt;br /&gt;
    {&lt;br /&gt;
        &amp;quot;name&amp;quot; : &amp;quot;ACEScg&amp;quot;,&lt;br /&gt;
        &amp;quot;matrix&amp;quot; : [0.7184354, 0.16578523, 0.09882643, 0.29728935, 0.66958117, 0.03571544, -0.00647622, 0.01469771, 0.66732561]&lt;br /&gt;
    }&lt;br /&gt;
]}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;quot;matrix&amp;quot; is present, &amp;quot;file&amp;quot; is ignored. If only &amp;quot;file&amp;quot; is present, the matrix is extracted from the ICC profile. For this, RawTherapee looks only at the R, G, and B matrix columns and the white point set in the profile. Bradford adaptation is used to convert the matrix to D50. Anything else in the profile (LUT, TRC, etc.) is ignored.&lt;br /&gt;
&lt;br /&gt;
It is the user's responsibility to ensure that the profile is suitable to be used as a working space.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Abstract Profiles==&lt;br /&gt;
&lt;br /&gt;
===What is an Abstract profile?===&lt;br /&gt;
&lt;br /&gt;
* According to the International Color Consortium (ICC), Abstract profiles allow you to perform custom image effects, such as applying a particular “look” to a series of images. Such a profile allows you to define CIELAB (or CIEXYZ) values as both Input and Output. This means you can algorithmically define whatever color changes you like and produce the corresponding LUT. A small number of color management applications support the creation and/or use of Abstract profiles. &lt;br /&gt;
* In the case of RawTherapee this is achieved using the Virtual profiles in LCMS, which allow you to modify the data using the same algorithms and principles as those used for Input profiles or Output profiles i.e. by acting on one or more of the 3 ICC profile components i.e. Tonal response curve (TRC), Illuminant (white point) and Primaries.&lt;br /&gt;
* Is an Abstract profile part of color management? This is debatable but it is certainly more so than the Working profile, which is simply a transformation in C++ code that converts RGB data into XYZ. If we use the ICC and LCMS (virtual profile) definitions, the answer is definitely yes.&lt;br /&gt;
* Note that Abstract Profile only works with the provided working profile package: ACESp0, ACESp1, Adobe RGB, Best RGB, BetaRGB, BruceRGB, ProPhoto, Rec2020, sRGB, WideGamut. The use of &amp;quot;Adding Custom Working Profiles through a JSON file&amp;quot; is not possible.&lt;br /&gt;
&lt;br /&gt;
===The CIE xy diagram===&lt;br /&gt;
&lt;br /&gt;
The LCMS virtual profile modifies the &amp;quot;x&amp;quot; &amp;amp; &amp;quot;y&amp;quot; data, which is one of the possible representations of the colorimetry. This representation makes it possible to easily see:&lt;br /&gt;
* The limits of human vision in terms of visible frequencies from 380nm to 770nm.&lt;br /&gt;
[[File:ciexy-color.jpg|600px|thumb|center|Limits of human vision]]&lt;br /&gt;
* A triangular color-space model based on the primaries.&lt;br /&gt;
[[File:ciexy-3space.jpg|600px|thumb|center|Colorimetric spaces]]&lt;br /&gt;
* The curve showing the evolution of the white point (one of the bases of the illuminants D50, D65, Std A, ).&lt;br /&gt;
[[File:ciexy-wp.jpg|600px|thumb|center|White point]]&lt;br /&gt;
* Note that this representation must be interpreted with care, because it is a vertical projection of the gamut. A color that is outside the gamut triangle is necessarily out of gamut, but a color inside the triangle can also be out of gamut, because this projection ignores the luminance component.&lt;br /&gt;
&lt;br /&gt;
====Some Primary values====&lt;br /&gt;
&lt;br /&gt;
* sRGB - Red x=0.64 y=0.33 - Green x=0.30 y=0.60 - Blue x=0.15 y=0.06&lt;br /&gt;
* Rec2020 - Red x=0.708 y=0.292 - Green x=0.17 y=0.797 - Blue x=0.131 y=0.046&lt;br /&gt;
* ProPhoto - Red x=0.7347 y=0.2653 - Green x=0.1596 y=0.8404 - Blue x=0.0366 y=0.0001&lt;br /&gt;
* ACESp0 - Red x=0.7347 y=0.2653 - Green x=0 y=1.0 - Blue x=0.0001 y=-0.077&lt;br /&gt;
&lt;br /&gt;
When one of the primaries is outside the limits of human vision we speak of imaginary colors.&lt;br /&gt;
&lt;br /&gt;
===Use of data from the &amp;quot;CIE xy&amp;quot; diagram in Abstract profiles.===&lt;br /&gt;
&lt;br /&gt;
[[File:cie-abstract_graph3.jpg|600px|thumb|center|Abstract profiles]]&lt;br /&gt;
&lt;br /&gt;
You can modify the 3 components of the virtual profile as you wish. The screen capture represents a configuration allowing you to improve the &amp;quot;calibration&amp;quot; of the Input profile.&lt;br /&gt;
* In this example, the Working profile is Prophoto, where the primaries have not been modified. When you choose &amp;quot;Destination primaries” &amp;gt; Custom the algorithm will by default choose this particular Working profile to build the Abstract or Virtual profile.&lt;br /&gt;
* If you change &amp;quot;Destination primaries&amp;quot; to any value other than those used for the Working profile you can create special effects similar to those produced in the more familiar Color Toning or Channel Mixer modules.&lt;br /&gt;
* You can change the D50 Illuminant to another value, either to create or amplify some special effect, or adapt the illuminant to a specific case.&lt;br /&gt;
&lt;br /&gt;
If the first combobox in the Abstract Profile panel is set to Custom, the CIE xy diagram will display the default working-profile values. i.e:&lt;br /&gt;
* The 3 primaries: Red, Green &amp;amp; Blue.&lt;br /&gt;
* The white point.&lt;br /&gt;
If the first combobox in the Abstract Profile panel is set to Custom or some other option (e.g. BT709 etc.), the CIE xy diagram will display:&lt;br /&gt;
* The primaries and the white point of the profile selected in the &amp;quot;Destination primaries&amp;quot; combobox.&lt;br /&gt;
&lt;br /&gt;
In addition to the profile options in the &amp;quot;Destination primaries&amp;quot; combobox there are also two custom options.&lt;br /&gt;
* Custom (sliders):&lt;br /&gt;
**  The sliders Red (X, Y), Green (X, Y) &amp;amp; Blue (X, Y) will be active.&lt;br /&gt;
** The combobox Illuminant will be active.&lt;br /&gt;
** Any changes to the slider values will be shown in the CIE xy diagram. Note that the &amp;quot;Custom (sliders)&amp;quot; option does not allow you to make changes directly on the graph.&lt;br /&gt;
&lt;br /&gt;
* Custom (CIE xy diagram):&lt;br /&gt;
** You can modify the primaries directly on the graph using the mouse and the changes will be made automatically to the Red, Green &amp;amp; Blue sliders. Note that in this case you can only modify the slider positions by moving the points on the graph.&lt;br /&gt;
** The illuminant cannot be changed.&lt;br /&gt;
&lt;br /&gt;
Note: &lt;br /&gt;
If we take the example shown in the screen capture above (with the sliders set to the ProPhoto primary values):&lt;br /&gt;
* When you move the red primary vertically upwards, reds will move towards magenta.&lt;br /&gt;
* If you move it down the reds move towards orange.&lt;br /&gt;
Note that the color shifts move in the opposite direction to the red primary. This is because moving the primary upwards causes the colors to rotate clockwise around the white point (shown in the diagram &amp;quot;the limits of human vision&amp;quot;). Moving the primary downwards causes the colors to rotate counterclockwise.&lt;br /&gt;
Similar behavior can be observed with the green and blue primaries.&lt;br /&gt;
* When you move the red primary to the left, (reducing the distance to the white point) the saturation will increase.&lt;br /&gt;
* If you move it to the right, the saturation should decrease but additional colors will be added. This behavior is normal.&lt;br /&gt;
&lt;br /&gt;
Still using the same example:&lt;br /&gt;
* When you change the illuminant (in this case D50) to a lower temperature (D41, stdA), the reds will turn orange. If you change it to a higher temperature (D80, D120) the reds will turn magenta. This is also normal.&lt;br /&gt;
&lt;br /&gt;
This behavior is &amp;quot;normal&amp;quot;, but why? The reason is that we don't modify the Working profile. Instead, we modify the data that has already been modified in the processing pipeline. For didactic purposes, let's look at the operation of CIECAM02/16 in symmetrical mode. If the white balance is set to 7500K for example and it corresponds to the illuminant at the time of shooting, the image will have yellowish whites and an overall dominant red color. Cat02/16 chromatic adaptation will allow us to cool down the image by setting the temperature in Viewing Conditions to the corresponding white balance i.e. 7500K. The white balance acts as the Working profile upstream and chromatic adaptation acts as an Abstract profile downstream. &lt;br /&gt;
&lt;br /&gt;
Note: the diagram is given for information only. The limits are not always very precise, especially towards the greens.&lt;br /&gt;
&lt;br /&gt;
===Which data and profiles are used or modified?===&lt;br /&gt;
&lt;br /&gt;
The Abstract profiles (Virtual profiles) implemented here:&lt;br /&gt;
* Do not change the Working profile.&lt;br /&gt;
* Do not modify the Input profile.&lt;br /&gt;
* Do not modify the Output profiles.&lt;br /&gt;
* But they modify the data in the same way as any other RawTherapee algorithm. Particular features:&lt;br /&gt;
** The Abstract profile, which corresponds to a virtual ICC profile in LCMS, acts as a patch at the end of the pipeline (just before Ciecam and just before the conversion to a screen profile or an Output profile). It acts on the 3 components of the ICC profile (Tone Response Curve, Illuminant (white point) &amp;amp; Primaries). Depending on the choices and settings, the image appearance can be modified as follows:&lt;br /&gt;
*** In depth by acting on the distribution of luminance and colors – rather like a Channel Mixer or Color Toning to which an extra dimension has been added.&lt;br /&gt;
*** On the luminance distribution via the TRC, either to change the default aspect, which in RawTherapee is an sRGB TRC, or to act as a Shadows/Highlights control.&lt;br /&gt;
*** To modify or refine the results of the Input profile with the help of a color chart (Colorchecker24 or other), either with the same illuminant that was used during the elaboration of the Input profile, or with another illuminant. In this case CIECAM will need to be used also.&lt;br /&gt;
&lt;br /&gt;
===Three main uses (with or without CIECAM)===&lt;br /&gt;
&lt;br /&gt;
* TRC: adjust gamma and slope to: a) modify the image rendering, which by default is g=2.4 s=12.92; b) raise the shadows and modify the lighter tones while preserving the colorimetry and the gamut.&lt;br /&gt;
* Illuminant (white point): a) adjust the gamut of the Working profile to adapt it to the shooting conditions taking into account the colorimetry. If an image is taken at 4000K, in sRGB (which is D65), the gamut may not be suitable. The joint action of the Illuminant and CIECAM (symmetrical mode) allows you to ensure good chromatic adaptation; b) used in conjunction with the modification of the Primaries below.&lt;br /&gt;
* Primaries: this is where the notion of Abstract profiles comes into its own. Several possibilities are available: a) Use this module as a Channel Mixer in order to create special effects similar to Color Toning, with or without CIECAM; b) Use it to modify or refine the result of the Input profile to improve the colorimetry (calibration).&lt;br /&gt;
&lt;br /&gt;
===Where is it located in the toolchain pipeline?===&lt;br /&gt;
&lt;br /&gt;
It is located at the end of the process, just before CIECAM and allows the user to either:&lt;br /&gt;
* Apply special effects similar to Color Toning &amp;gt; Color Correction Regions.&lt;br /&gt;
* Make color corrections (calibration) at the end of the process just before the Output profile taking into account image modifications made upstream.&lt;br /&gt;
&lt;br /&gt;
This position also avoids the introduction of non-linearities.&lt;br /&gt;
&lt;br /&gt;
=== TRC - Tone Response Curve ===&lt;br /&gt;
&lt;br /&gt;
This feature allows you to vary the gamma and slope based on the Working profile. It does not modify the profile, but takes its characteristics into account. It is applied at the end of the process, just before CIECAM. It can be found in other software such as UFRaw©, as well as in Output profiles.&lt;br /&gt;
&lt;br /&gt;
It has several objectives:&lt;br /&gt;
* Didactic: you can see the main differences resulting from changes in gamma (g) and slope (s) directly on your monitor. For example:&lt;br /&gt;
** With standard gamma = 1.8 - used in the Output profile by Prophoto.&lt;br /&gt;
** With standard gamma = 2.2 - used in the Output profile by AdobeRGB.&lt;br /&gt;
** With a TRC e.g. BT709 which corresponds to gamma = 2.22 and slope = 4.5. This has a linear part up to a value of 4.5, then a logarithmic part with g = 2.22. This combination gives the same result as the &amp;quot;standard gamma = 1.8&amp;quot; for the medium tones and highlights, but has improved shadow rendering by removing the impression of grayness.&lt;br /&gt;
** An sRGB TRC, which corresponds to g=2.4 and s=12.92. This has a linear part up to the value of 12.92, then a logarithmic part with g=2.4. This is the usual rendering chosen by many software applications including Lightroom©, as well as the default screen output and output of RawTherapee.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Particular export requirements: you can decide to work with a linear gamma for example, for exporting to another software application (for printing, or for modification in Photoshop or Gimp) and/or to see the results directly on your monitor.&lt;br /&gt;
&lt;br /&gt;
* Action on shadows and highlights: this feature does not replace the other RawTherapee modules such as Shadows/Highlights, or the curves in Exposure, etc., but is complementary to them:&lt;br /&gt;
** You can lift the shadows by using the Slope slider. Values up to 300 allow a significant transformation of the image in the shadows.&lt;br /&gt;
** You can act on the highlights and mid-tones by acting on the Gamma slider. Values up to 15 are possible.&lt;br /&gt;
** You can observe the impact on the histogram.&lt;br /&gt;
* Adjust the luminance of the gray tones, for example when using a ColorChecker24 for calibration.&lt;br /&gt;
&lt;br /&gt;
* Note that the Slope slider is only active for values of Gamma &amp;gt;1. Because of the algorithm used to generate the tone response curve, it will show erratic behavior when set to values below 1 and greater than 0.It behaves as expected when set to zero.&lt;br /&gt;
** When Slope is set to 0, only the gamma component of the TRC curve is activated. The image rendering will be similar to profiles such as “AdobeRGB 2.2” or “ProPhoto 1.8”.&lt;br /&gt;
** When Slope reaches the value 1 (in fact when Slope = 1 the system behaves as if gamma = 1), the number of shades of gray in the shadows are reduced and the shadows become darker. The overall contrast is increased with only minor changes to the mid-tones and highlights.&lt;br /&gt;
** Depending on the gamma setting, increasing the Slope will make the shadows progressively lighter. High Slope values (50 or more) require a high gamma value to take full advantage of the possibilities.&lt;br /&gt;
** Different profiles may have parts of their respective TRCs that are similar. For example an image opened with “Adobe g=2.2” will have approximately the same luminance values for the midtones and highlights as one opened with “sRGB g=2.4 s=12.92”. However there will be significant differences between the two in the shadows.&lt;br /&gt;
&lt;br /&gt;
====Differences compared to a classic tone curve====&lt;br /&gt;
&lt;br /&gt;
* As previously mentioned, it is located at the end of the process to avoid non-linearities as much as possible and guarantee better quality results.&lt;br /&gt;
* When used in conjunction with Illuminant or Primaries it guarantees that the result stays in gamut and gives better colorimetry. When it is used on its own (with Illuminant and “Destination primaries” set to the default values), there is no gamut control (to optimize processing time). Changing any of the default values will immediately invoke the gamut control. &lt;br /&gt;
* The linear part, often with a small value (s= 2 ... s=13), connected to a parabolic part is practically impossible to realize with a tone curve.&lt;br /&gt;
* It constitutes - as soon as you activate &amp;quot;Illuminant&amp;quot; (if only to confirm the illuminant, for example D50 for ProPhoto), or &amp;quot;Primaries&amp;quot; - a part of a virtual ICC profile that can be applied to an image or a series of images at the end of the process.&lt;br /&gt;
&lt;br /&gt;
===Illuminant - white point===&lt;br /&gt;
&lt;br /&gt;
By default, the illuminant is set to the corresponding value in the Working profile. For example this corresponds to D50 for &amp;quot;ProPhoto&amp;quot;, D65 for &amp;quot;sRGB&amp;quot;, D60 for &amp;quot;ACESp1&amp;quot;.&lt;br /&gt;
[[File:ciexy-wp.jpg|600px|thumb|center|White point]]&lt;br /&gt;
Why change it? There are several reasons for wanting to change this value:&lt;br /&gt;
* To deliberately change the colors as you would with a Channel Mixer or with Color Toning. If we examine the &amp;quot;CIE xy&amp;quot; diagram, we can see that when we change the illuminant the white point moves:&lt;br /&gt;
** Towards the red zone if the temperature of the illuminant drops.&lt;br /&gt;
** Towards the blue zone if the temperature of the illuminant increases.&lt;br /&gt;
Used this way we are essentially modifying the red / blue balance.&lt;br /&gt;
&lt;br /&gt;
* To &amp;quot;patch&amp;quot; the Working profile and adapt the colorimetry to specific images. For example, let's imagine that we took pictures around dusk and that the Working profile is &amp;quot;Prophoto&amp;quot; with a D50 illuminant.&lt;br /&gt;
* There are two possibilities:&lt;br /&gt;
** You want to accentuate the effects of the sunset and make the image even warmer. In this case choose a white point with a temperature lower than the Working profile; for example D41 if the Working profile is &amp;quot;Prophoto D50&amp;quot;. &lt;br /&gt;
** You want to optimize the gamut to get the best range of colors in sunset shooting conditions. In this case choose a white point that has a temperature higher than the Working profile. For example if the Working profile is &amp;quot;Prophoto D50&amp;quot;, and the shot is around 4000K, then choose an illuminant around D60 or D65. Note that the white point function is not linear so the approach can only be approximate.&lt;br /&gt;
** The virtual profile will &amp;quot;patch&amp;quot; the data by changing the XYZ values of the RGB-XYZ conversion matrix to better fit the image data, thus avoiding out-of-gamut values.&lt;br /&gt;
&lt;br /&gt;
===Primaries===&lt;br /&gt;
&lt;br /&gt;
By default the primaries are set to the values of the Working profile, so why change them?&lt;br /&gt;
* To create special effects similar to those that can be produced in the Channel Mixer or in Color Toning - note that a &amp;quot;primaries&amp;quot; Channel Mixer is a little more intuitive than an RGB Channel Mixer in the sense that a primary adjustment acts mainly on the particular primary color - in this case there are two possibilities:&lt;br /&gt;
** You can choose a set of primaries that are different to those used in the Working profile by selecting a different profile in the drop-down list in the “Destination primaries” combobox. This will have the effect of moving the triangle on the “CIE xy” diagram to take into account the difference between the primaries in the Working profile and the primaries used in the “Destination primaries”. This introduces a constant shift in any images to which this “patch” is applied. The final result will of course depend on how the colors are distributed in each of the images. &lt;br /&gt;
** You can also adjust the primaries individually by selecting Custom in the drop-down list in the “Destination primaries” combobox. In this case you can modify the location of the 3 vertices of the triangle of “Destination primaries” giving you almost unlimited possibilities.&lt;br /&gt;
&lt;br /&gt;
* To modify/refine images so that they are as close as possible to the shooting conditions (deltaE minimized).&lt;br /&gt;
** The use with a chart (ColorChecker24 ...) is almost mandatory.&lt;br /&gt;
** CIECAM should be used if we want the Input profile to be relevant when used with an illuminant other than the one used to create it in the first place.&lt;br /&gt;
&lt;br /&gt;
===Black &amp;amp; White===&lt;br /&gt;
&lt;br /&gt;
Abstract profiles can also be used to produce striking black &amp;amp; white effects by varying the three components of the profile. For example by:&lt;br /&gt;
* Shifting the white point to a completely different setting e.g. to Tungsten 2000K.&lt;br /&gt;
* Significantly moving the primaries away from their working-profile settings.&lt;br /&gt;
* Using a different TRC to change the way the gray tones are distributed in the image e.g. by using a TRC g=2.793 s=4.26.&lt;br /&gt;
&lt;br /&gt;
You can also use this module in conjunction with the CIECAM02/16 module to obtain color-toning effects such as Sepia etc., by modifying Temperature and Tint in the CIECAM Viewing Conditions (Advanced mode).&lt;br /&gt;
&lt;br /&gt;
The settings given in the example are for didactic purposes. Of course you can (should) use settings that are closer to the Working profile values.&lt;br /&gt;
&lt;br /&gt;
[[File:ciexy-bw1.jpg|600px|thumb|center|Black and White]]&lt;br /&gt;
Raw file: [https://drive.google.com/file/d/1azCxu1midw6dcuN7SbvbAiJH4pxX5BTA/view?usp=sharing]&lt;br /&gt;
&lt;br /&gt;
===How the &amp;quot;Primaries and White Point&amp;quot; algorithm works===&lt;br /&gt;
&lt;br /&gt;
When you change the primaries and white point, a new &amp;quot;XYZ=&amp;gt;RGB&amp;quot; matrix is applied to the data. This matrix is produced using the following simplified algorithm: &lt;br /&gt;
* Start with the chromaticity values of each of the red green and blue primaries (these correspond to the xyY values when Y=1).&lt;br /&gt;
* Convert the xyY values to XYZ to derive the first XYZ matrix: [M1]. &lt;br /&gt;
* Invert this matrix: [IM1]. &lt;br /&gt;
* Using [IM1] and the source XYZ white point values (e.g. D45, D55, D60, StdA etc.), derive the values of Sr, Sg &amp;amp; Sb. &lt;br /&gt;
* Produce a new matrix [Mat_xyz] by multiplying Sr, Sg, Sb with the original XYZ data in [M1].&lt;br /&gt;
&lt;br /&gt;
Bradford transformation &lt;br /&gt;
* Preamble: Bradford is a chromatic adaptation, based on the concept of &amp;quot;response cones&amp;quot;. Its purpose is to adapt the XYZ data calculated using a D50 illuminant to the XYZ values for another illuminant such as D41, D55, etc. It uses the concepts of &amp;quot;RGB source&amp;quot; (RGB s) and &amp;quot;RGB destination&amp;quot; (RGB d), to calculate the &amp;quot;response cone&amp;quot; values. This is similar to the LMS (long, medium, short) concept, which is a colorimetric space that represents the responses of the 3 types of cones in human vision.&lt;br /&gt;
* Calculate RGB s = Source White point * [M(Bradford)].&lt;br /&gt;
* Calculate RGB d = D50 White point * [M(Bradford)].&lt;br /&gt;
* Calculate  the Cone _response (destination source) = RGB d / RGB s. &lt;br /&gt;
* Develop a new matrix [Cone_matrix] = Cone_response  * [Inverse-M(Bradford)]. &lt;br /&gt;
* Develop a new matrix [Chromatic_adaptation] =  [M(Bradford)] * [Cone_matrix].&lt;br /&gt;
* Develop the final matrix taking into account the source White-point: [Mat_xyz_bradford] = [Mat_xyz] * [Chromatic_adaptation].&lt;br /&gt;
[http://www.brucelindbloom.com/index.html?Eqn_ChromAdapt.html  Bruce Lindbloom Chromatic adaptation for information - (slightly different to RawTherapee implementation))].&lt;br /&gt;
&lt;br /&gt;
====Display Matrix XYZ-RGB - &amp;quot;Mat_xyz_bradford&amp;quot;====&lt;br /&gt;
&lt;br /&gt;
* If you run RawTherapee from the console, and in options set verbose = true, the XYZ to RGB conversion matrix &amp;quot;Mat_xyz_bradford&amp;quot; will be displayed. It takes into account the &amp;quot;Destination primaries&amp;quot; and Illuminant.&lt;br /&gt;
* Example with &amp;quot;Destination primaries” = Rec2020 and illuminant set to D80.&lt;br /&gt;
** Illuminant: D80&lt;br /&gt;
** rX=0.661827 gX=0.178737 bX=0.123636&lt;br /&gt;
** rY=0.274860 gY=0.678752 bY=0.046389&lt;br /&gt;
** rZ=-0.00275 gZ=0.031042 bZ=0.796608&lt;br /&gt;
&lt;br /&gt;
Important note: &lt;br /&gt;
* The source white point is only used to modify the ICC profile (the data of the XYZ-RGB matrix). In-depth modification of the image cannot result from this modification and is part of the color-management process (White Balance, CIECAM,etc.).&lt;br /&gt;
&lt;br /&gt;
===Possible example of use to modify/improve the behavior of the Input profile===&lt;br /&gt;
&lt;br /&gt;
* Switch to Neutral.&lt;br /&gt;
* Load the image of the chart that was used to create the Input profile.&lt;br /&gt;
* Choose Abstract Profile &amp;gt; Custom. By default the selected profile will be the same as the Working profile (as will the Illuminant). Do not change these values.&lt;br /&gt;
* Select Custom in &amp;quot;Destination primaries”.&lt;br /&gt;
* The Working profile primaries are displayed, you can now modify them.&lt;br /&gt;
* Activate the Lockable Color Picker.&lt;br /&gt;
* Select among the patches: 2 or 3 grays distributed between the darkest and the lightest, 1 red (saturated), 1 green (saturated), 1 blue (saturated).&lt;br /&gt;
* The L*a*b* values of these patches (chart references) are the target values.&lt;br /&gt;
* Adjust gamma (g) and slope (s) so that the 3 grays are as close as possible to the reference values.&lt;br /&gt;
* Change the &amp;quot;x&amp;quot; and &amp;quot;y&amp;quot; values of the Red, Green and Blue primaries so that the measured values are as close as possible to the reference values.&lt;br /&gt;
* Use &amp;quot;Preserves Pastel tones&amp;quot; if necessary: this slider allows you to avoid modifying very lightly saturated tones (close to neutral tones) and allows you to progressively reduce the action on pastel tones.&lt;br /&gt;
* Save the result.&lt;br /&gt;
&lt;br /&gt;
If you want your profile (e.g. developed in D50) to be used for another temperature range, it is necessary to take Cat16 into account in CIECAM:&lt;br /&gt;
* Choose the new temperature in &amp;quot;White balance&amp;quot; - for example 6000K.&lt;br /&gt;
* Select Color Appearance &amp;amp; Lighting (CIECAM02/16).&lt;br /&gt;
* Select: CAM Model = CIECAM16.&lt;br /&gt;
* Select CatO2/16 mode = Automatic Symmetric.&lt;br /&gt;
* Adjust the temperature in Viewing Conditions to that of the white balance (in this example 6000K),&lt;br /&gt;
* Then use the same process as before.&lt;br /&gt;
&lt;br /&gt;
To use the results of this virtual profile for other images, do the following:&lt;br /&gt;
* Right click on the thumbnail in the file browserand choose &amp;quot;Processing profile operations&amp;quot; &amp;gt; Copy,then &amp;quot;Paste partial&amp;quot; &amp;gt; &amp;quot;Color management&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Note: the values can of course be adjusted empirically as in ART and Lightroom. For small deviations from the original primaries, the results are fairly predictable. On the other hand, if we make big changes, the results will be less so.&lt;br /&gt;
&lt;br /&gt;
== Output Profile ==&lt;br /&gt;
&lt;br /&gt;
Specify the output color profile; the saved image will be transformed into this color space and the profile will be embedded in the metadata. The effects the output profile has on the image cannot be seen in the preview. &lt;br /&gt;
&lt;br /&gt;
RawTherapee lets you specify &amp;quot;input&amp;quot; (e.g. your camera's profile), &amp;quot;display&amp;quot; (e.g. computer screen) and &amp;quot;output&amp;quot; (e.g. printer) device class profiles with an RGB color space, because RawTherapee saves only RGB images. Profiles listed in this combobox are those which come bundled with RawTherapee and those located in the folder set in Preferences &amp;gt; [[Preferences#Color_Management_Tab|Color Management]].&lt;br /&gt;
&lt;br /&gt;
The soft-proofing feature is dedicated to simulating printer rendering. It lets you preview what your image will look like when printed, assuming you use a printer profile which correctly simulates your printer and paper combination. For best printout quality, after you have tweaked your photo using soft-proofing, you should select your printer profile as the output profile and save the image using it. This ensures that the image is encoded using your printer's color space directly from RawTherapee's internal high quality floating-point representation, instead of being saved to an 8-bit image in sRGB for example and then having to be subsequently converted to the printer profile, which would be quite lossy.&lt;br /&gt;
&lt;br /&gt;
The main histogram, navigator and clipping indicators will use either the working or the output profile. You can choose the behavior by using  [[File:gamut-hist.png]] button in the Editor tab.&lt;br /&gt;
 &lt;br /&gt;
The recommended output profile when you're saving to an 8-bit format and/or publishing to the web is RTv4_sRGB. If no profile is selected, none will be embedded, which means that &amp;quot;sRGB&amp;quot; is implied, though it is safer to embed RTv4_sRGB to ensure your image is displayed properly in various applications.&lt;br /&gt;
&lt;br /&gt;
RTv4_sRGB is a '''higher quality''' version of the standard sRGB profile, which surprisingly is inconsistent between implementations. RTv4_sRGB was custom-made for RawTherapee and has 4096 LUT points, as opposed to the lower quality 1024 point sRGB profiles. Applications that aren't color managed and won't take advantage of RTv4_sRGB will fall back on sRGB.&lt;br /&gt;
&lt;br /&gt;
Wide-gamut output profiles such as RTv4_Large are generally used if you export to a 16-bit or higher bit-depth format for further editing in another application. If you will be sending your image for printing, a wide-gamut output profile is also recommended, since some printers may have wide gamuts (at least in certain colors).&lt;br /&gt;
&lt;br /&gt;
You should have a wide-gamut monitor if you want to work with wide-gamut profiles, otherwise you're flying in the dark.&lt;br /&gt;
&lt;br /&gt;
=== Bundled Output Profiles ===&lt;br /&gt;
&lt;br /&gt;
RawTherapee comes bundled with a number of custom-made, high quality output profiles. There are two types: ones compatible with [https://en.wikipedia.org/wiki/ICC_profile ICC v2], and ones with [https://www.color.org/whyusev4.xalter v4]. The v4 versions should be compatible with most modern software. The legacy v2 versions are supplied as a fallback.&lt;br /&gt;
&lt;br /&gt;
Each ICC profile's filename describes the ICC version and the primaries of the output space:&lt;br /&gt;
* sRGB: similar to sRGB.&lt;br /&gt;
* Medium : similar to AdobeRGB1998.&lt;br /&gt;
* Large: similar to ProPhoto.&lt;br /&gt;
* ACES-AP0: similar to ACES AP0.&lt;br /&gt;
* ACES-AP1: similar to ACES AP1.&lt;br /&gt;
* Wide: similar to Widegamut.&lt;br /&gt;
* Rec2020: similar to Rec2020.&lt;br /&gt;
* Best: similar to Best.&lt;br /&gt;
* Beta: similar to Beta.&lt;br /&gt;
* Bruce : similar to Bruce.&lt;br /&gt;
&lt;br /&gt;
By default all these profiles have a TRC (Tone Reproduction Curve) with gamma=2.4 and slope=12.92.&lt;br /&gt;
&lt;br /&gt;
You can customize these profiles using the [[ICC_Profile_Creator| ICC profile Creator]], which allows you to: &lt;br /&gt;
* change the TRC and assign any value from 1 (linear gamma) upwards.&lt;br /&gt;
* change the primaries and illuminant to suit your needs.&lt;br /&gt;
* change the labels, description etc.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=File:ColorManagement-InputProfile-GUI.jpg&amp;diff=8583</id>
		<title>File:ColorManagement-InputProfile-GUI.jpg</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=File:ColorManagement-InputProfile-GUI.jpg&amp;diff=8583"/>
		<updated>2021-06-19T10:21:32Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Licensing ==&lt;br /&gt;
{{PD}}&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Color_Management&amp;diff=8582</id>
		<title>Color Management</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Color_Management&amp;diff=8582"/>
		<updated>2021-06-19T10:16:21Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Revised the text up to the DCP section.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Color Management&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Color management comprises all tasks to ensure a faithful representation of colors from scene to intermediate formats, editors and various output media. This is an often complicated and technical matter that RawTherapee tries to handle as correctly as possible behind the scenes. More can be read about it [http://rawpedia.rawtherapee.com/Color_Management_addon here]. The various options of the Color Management tool are explained below.&lt;br /&gt;
&lt;br /&gt;
== Input Profile ==&lt;br /&gt;
&lt;br /&gt;
An essential first step in raw processing is the faithful conversion of the [[Demosaicing#Introduction|camera sensor data]] to an internal RGB color space. This conversion requires an input profile made specifically for the camera. Such a profile is the result of the analysis of how specific colors and tones are captured, processed and represented as raw data by the camera (for more details, see e.g. [https://ninedegreesbelow.com/photography/articles.html#profile-digital-camera Elle Stone's article], [https://torger.se/anders/dcamprof.html DCamProf's documentation] or [[How to create DCP color profiles]]. Without a camera-specific input profile, accurate color representation is impossible.&lt;br /&gt;
&lt;br /&gt;
The input profile is applied to the image data at the beginning of RawTherapee's [[Toolchain_Pipeline|processing pipeline]] because most tools depend on it. There are several ways to apply an input profile.&lt;br /&gt;
&lt;br /&gt;
==== No Profile ====&lt;br /&gt;
&lt;br /&gt;
No color conversion will take place and a unit transform of the image data is applied. '''Do not use this for regular editing.''' Applying no input profile is generally only useful for analytical purposes to show images in the camera's native RGB color space, or in extreme cases to prevent clipping of channels when the camera has recorded colors outside of conventional gamuts.&lt;br /&gt;
&lt;br /&gt;
Note that selecting 'No Profile' for non-raw files bypasses the embedded color profile and the working profile will be assigned. This means that gamma-encoded files (e.g. sRGB) will be assumed linear, making them look brighter.&lt;br /&gt;
&lt;br /&gt;
==== Use embedded, if possible ====&lt;br /&gt;
&lt;br /&gt;
Only available for non-raw files. The embedded color profile is used. Which profile is embedded can be checked with GIMP for example.&lt;br /&gt;
&lt;br /&gt;
==== Camera Standard ====&lt;br /&gt;
&lt;br /&gt;
A conversion takes place based on profiled information from either of three sources, in decreasing priority:&lt;br /&gt;
* The &amp;lt;code&amp;gt;dcraw_matrix&amp;lt;/code&amp;gt; field in the &amp;lt;code&amp;gt;camconst.json&amp;lt;/code&amp;gt; data file available in RawTherapee's installation directory;&lt;br /&gt;
* Hard-coded values provided by the &amp;lt;code&amp;gt;dcraw&amp;lt;/code&amp;gt; library embedded within RawTherapee;&lt;br /&gt;
* The raw file itself.&lt;br /&gt;
&lt;br /&gt;
There is one exception: when a DNG raw file has a &amp;lt;code&amp;gt;ColorMatrix2&amp;lt;/code&amp;gt; Exif tag and was not generated by the Adobe DNG Converter, the matrix from the Exif data is prioritized above all others.&lt;br /&gt;
&lt;br /&gt;
Applying an input profile is nothing more than a linear algebra operation on the image data. The input profile consists of a square matrix (3×3 for RGB based sensors) that is multiplied with the pixel vectors of camera-native RGB values. These matrices are specifically calibrated for a specific illuminant ([https://en.wikipedia.org/wiki/Illuminant_D65 D65], i.e. 6500K) and provide the most accurate color reproduction if the scene illuminant matches the calibration illuminant. However, the color accuracy is usually still good enough for very different light sources and white balances.&lt;br /&gt;
&lt;br /&gt;
The benefit of a matrix profile over other profiles (e.g. table-based DCP or ICC profiles) is its linearity. Because no non-linear functions are applied to the data, the scene-referred linearity of the light intensities is kept intact. This is important for several image processing operations and for example when exporting for further editing (e.g. HDR applications usually require a predictable linear color response).&lt;br /&gt;
&lt;br /&gt;
==== Auto-Matched Camera Profile ====&lt;br /&gt;
&lt;br /&gt;
RawTherapee allows you to use custom '''DCP''' (Adobe DNG Camera Profile) or '''ICC''' (International Color Consortium) color input profiles. These can be tailor-made to specific scene conditions to provide the most accurate color rendition, or to generally improve upon the standard matrix profiles available.&lt;br /&gt;
&lt;br /&gt;
RawTherapee ships multiple high-quality, custom-made, general-purpose DCP profiles that can be automatically matched when an image from a supported camera is opened. The available profiles are found in the &amp;lt;code&amp;gt;dcpprofiles&amp;lt;/code&amp;gt; folder in your installation directory. It is possible to add your own DCP or ICC profiles to this folder. Matching only works on the exact name of the camera (case-sensitive) as is present in the image metadata.&lt;br /&gt;
&lt;br /&gt;
Most provided DCP profiles are dual-illuminant (see [[Color_Management#DCP_Illuminant|below]]) and some provide tone curves and looks as well. New profiles are added exclusively based on user submission. Please read [[How to create DCP color profiles]] for further instructions in case you want to contribute.&lt;br /&gt;
&lt;br /&gt;
==== Custom ====&lt;br /&gt;
&lt;br /&gt;
Specify a custom DCP or ICC camera input profile when an automatic match is not available, or if you want to override the standard or matched profile. DCP profiles for your camera may be available through the Adobe DNG Converter. Read [[How to get LCP and DCP profiles]] for further information.&lt;br /&gt;
&lt;br /&gt;
Be aware that when you load a custom ICC profile that it is an ''input'' profile. ICC profiles can be created for a multitude of purposes (printers, displays, etc.) and not all profiles are suited as a camera input profile. Your results may vary.&lt;br /&gt;
&lt;br /&gt;
=== DCP ===&lt;br /&gt;
&lt;br /&gt;
==== DCP Illuminant ====&lt;br /&gt;
&lt;br /&gt;
Some of RawTherapee's profiles are single-illuminant (Daylight/D50), while others are double-illuminant (Daylight/D50 and Tungsten/StdA). If a dual-illuminant profile is loaded the &amp;quot;DCP Illuminant&amp;quot; setting will be enabled and you can choose which illuminant to use. The actual DCP standard (part of the DNG standard) does not provide this choice, but instead an interpolation between the two illuminants is calculated based on the chosen white balance (there will only be an interpolation if the white balance is in-between both illuminants, otherwise the closest is picked). This &amp;quot;interpolated&amp;quot; mode is the default setting of &amp;quot;DCP Illuminant&amp;quot; and for any normal use you do not need to change this.&lt;br /&gt;
&lt;br /&gt;
You can however choose to base the color rendering on one of the specific illuminants. In some cases this might produce more pleasing color. It can also be interesting for diagnostic purposes to see how large (or small) a difference there is in color rendering between the illuminants, but, as said, for general use this setting should be untouched.&lt;br /&gt;
&lt;br /&gt;
==== DCP Tone Curve ====&lt;br /&gt;
&lt;br /&gt;
Some DCPs contain a tone curve which may be used to add contrast and brightness to provide a film-like look. This is mainly used for profiles simulating camera maker settings. The tone curve checkbox will be disabled for profiles which do not contain a tone curve.&lt;br /&gt;
&lt;br /&gt;
The curve mode used by the DCP tone curve is the same as the Exposure tool's &amp;quot;[[Exposure#Film-Like|film-like]]&amp;quot; mode, meaning you can reproduce the effect using the Exposure tool's tone curves in film-like mode. When contrast is applied with a film-like curve the appearance of the colors will change and overall saturation is increased, except for bright colors which instead are de-saturated. Some profiles which have curves embedded are pre-corrected for this color appearance change and will thus not provide the intended look without the curve applied. Most will however work well without the tone curve applied especially if you add a similar curve yourself using the Exposure tool's curves, but if you want to see exactly how the profile designer intended the colors to look you should enable the tone curve.&lt;br /&gt;
&lt;br /&gt;
While the input color profile is applied at the first stages of the [[Toolchain_Pipeline|toolchain pipeline]], the DCP tone curve is applied later in the pipeline at some point after the Exposure tool.&lt;br /&gt;
&lt;br /&gt;
{{acrrtc}}&lt;br /&gt;
&lt;br /&gt;
If the DCP profile has a copyright tag with the value &amp;quot;Adobe Systems&amp;quot;, regardless whether it contains a tone curve or not, RawTherapee will automatically create a tone curve shaped identically to the Adobe Camera Raw curve. The reason for this is so that using the DCP in RawTherapee can match the results of using that DCP in Lightroom. This is why the &amp;quot;Tone curve&amp;quot; checkbox will not be grayed-out when using a DCP profile which has no embedded tone curve, as long as it has the copyright tag set as described.&lt;br /&gt;
&lt;br /&gt;
==== DCP Base Table ====&lt;br /&gt;
&lt;br /&gt;
This enables the DCP &amp;quot;HueSatMap&amp;quot; lookup table which is used to add non-linear corrections on top of the basic matrix. This is an advanced user setting and unless you want only the pure matrix result should leave it on. It's grayed out if the loaded profile lacks a HueSatMap table.&lt;br /&gt;
&lt;br /&gt;
==== DCP Look Table ====&lt;br /&gt;
&lt;br /&gt;
This enables the DCP &amp;quot;LookTable&amp;quot; lookup table which is intended to add a subjective look on top generally together with an embedded tone curve. That is if you disable the DCP curve and looktable you may get a neutral &amp;quot;colorimetric&amp;quot; profile, if the DCP was designed that way which is not always the case (if the DCP has both a look table and a base table it's likely that it is, but if it only has a look table it will probably not work well with it disabled). Disabling individual DCP elements are considered advanced user settings, normally you would leave this on.&lt;br /&gt;
&lt;br /&gt;
==== DCP Baseline Exposure ====&lt;br /&gt;
&lt;br /&gt;
The DCP may indicate an exposure offset that corresponds to an offset of the exposure slider. The purpose of this is typically to make the brightness of the image match the brightness of the camera's own JPEGs, which can be useful if you're shooting with auto-exposure. Currently this offset is applied &amp;quot;under the surface&amp;quot; so you don't see it on the exposure slider.&lt;br /&gt;
&lt;br /&gt;
Note that if you are using Adobe's proprietary profiles those are expecting that the DNG's &amp;quot;baseline exposure&amp;quot; tag is applied too (the profile's offset is added on top). Currently there is no support for the DNG tag so you need to find that out on your own (using exiftool for example) and then set that offset using the exposure slider if you want to get the exact same brightness as in Adobe Camera Raw.&lt;br /&gt;
&lt;br /&gt;
=== Implementation Notes ===&lt;br /&gt;
&lt;br /&gt;
==== Third-Party DCP Support ====&lt;br /&gt;
&lt;br /&gt;
The DNG Camera Profile, DCP, is the preferred camera input profile format for RawTherapee. All elements of the 1.4 DNG specification are supported, with the exception of the black render tag (see below). A DCP can be a pure matrix profile, it can have a LUT (typically 2.5D) to improve the colorimetric accuracy, and then it can have an embedded curve and a separate &amp;quot;look table&amp;quot; on top. It may also add an exposure offset. All these elements can be toggled on/off via checkboxes. However, you should be aware that a profile will produce the most accurate colors when all the elements it was designed to include are enabled. For example, using a tone curve changes the color ''appearance'', so if you disable an embedded tone curve to get a linear profile you can't count on the colors being absolutely accurate. Nonetheless, most photographers rely on an aesthetically-pleasing appearance, and not on absolute accuracy, so this should not be a concern unless absolute accuracy is crucial. Typically, third-party profiles would come from Adobe Camera Raw/Lightroom/DNG Converter, and RawTherapee supports them. Many of Adobe's profiles lack a tone curve, but in Adobe's world that does not mean that no tone curve should be applied, but that Adobe's default curve should be applied. RawTherapee will therefore identify Adobe profiles (from the copyright string) and add the default curve to those (which you can toggle with the tone curve checkbox).&lt;br /&gt;
&lt;br /&gt;
Adobe DNG Converter may add a &amp;quot;baseline exposure&amp;quot; to the DNG file. Some of Adobe's DCPs are designed to work with that baseline exposure and then produce a default output which is about the same brightness and contrast as the out-of-camera JPEG. RawTherapee can honor this baseline exposure if the DCP contains one.&lt;br /&gt;
&lt;br /&gt;
The DCP format also has a black render tag. This indicates if the raw converter should do &amp;quot;automatic&amp;quot; black subtraction or not. RawTherapee ignores this tag - you can perform manual black subtraction with the [[Raw Black Points]] tool or with the [[Exposure#Black|black]] slider in the Exposure tool. As many of Adobe's profiles indicate auto black subtraction and Adobe Camera Raw/Lightroom does it, in those cases RawTherapee will render slightly lower contrast and brighter shadows.&lt;br /&gt;
&lt;br /&gt;
==== Third-Party ICC Support ====&lt;br /&gt;
&lt;br /&gt;
RawTherapee has specific support for ICC profiles bundled with Capture One and Nikon NX2, so those should work well. Older ICC profiles are not likely to work well though (typically the image becomes extremely dark with unsupported ICC profiles).&lt;br /&gt;
&lt;br /&gt;
Some ICC profiles apply a tone-curve and desaturate bright highlights for a more film-like look. Those profiles may not work well together with [[Exposure#Highlight_Reconstruction|Highlight Reconstruction]]. If you see a radical change in contrast when you apply your ICC profile, it has applied a tone-curve and then you should not use it together with [[Exposure#Highlight_Reconstruction|Highlight Reconstruction]].&lt;br /&gt;
&lt;br /&gt;
Unlike DCP profiles, ICC profile processing may cause clipping of extremely saturated colors during conversion. In practice this is rarely a problem, but still DCP should be considered the primary choice if available.&lt;br /&gt;
&lt;br /&gt;
Note on using Capture One ICC profiles: RawTherapee applies the ICC before exposure adjustments, as the intention is that input profiles should only be used to make the colors more accurate, and not to apply a look - you design the look using the tools instead. Phase One's ICC profiles contain a subjective look though, which means that they typically contain &amp;quot;hue twists&amp;quot;, for example saturation in the shadows is increased. This means that if you have an underexposed file and push it a few stops, those hue twists have been applied to the dark image before the exposure adjustment and will thus be in the wrong place after adjustment; that is you don't get the same look as in Phase One's Capture One. Therefore it is recommended to have the right exposure out of the camera when using Phase One ICC profiles. You should also apply a suitable RGB [[Exposure#Film-Like|film-like]] curve, as those ICC profiles are designed to be used together with that.&lt;br /&gt;
&lt;br /&gt;
We are aware that LUT ICCs should typically be applied after exposure (just as DCP LookTables are applied), and that would support for example Capture One profiles better. This may be fixed in a future version.&lt;br /&gt;
&lt;br /&gt;
=== Save Reference Image ===&lt;br /&gt;
&lt;br /&gt;
Clicking the &amp;quot;Save Reference Image&amp;quot; button saves a linear TIFF image before the input profile is applied. This file can then be used for profiling, i.e. creating a camera input profile. You can use the open-source ArgyllCMS program to create ICC profiles, and DCamProf to create ICC or DCP profiles.&lt;br /&gt;
&lt;br /&gt;
Cropping, resizing and transformations (rotation) will be applied, allowing you to make the output image more manageable by the receiving software. ArgyllCMS is very picky for instance, and requires that only the test target is visible in the image.&lt;br /&gt;
&lt;br /&gt;
You can also choose if you want to export with white balance applied or not. For ICC profiles you should export with white balance applied, but if you intend to make a DNG profile or a dcraw-style color matrix you should export without applying white balance.&lt;br /&gt;
&lt;br /&gt;
== Working Profile ==&lt;br /&gt;
&lt;br /&gt;
The default working profile is ProPhoto and should not be changed for normal use.&lt;br /&gt;
&lt;br /&gt;
The working profile specifies the working color space, which is the color space used for internal calculations, for instance for calculating saturation, RGB brightness/contrast and tone curve adjustments, chrominance, etc.&lt;br /&gt;
&lt;br /&gt;
When RawTherapee was based on integer math it was wise to not use working space larger than absolutely needed to get the best precision in the calculations. However, RawTherapee had switched to floating-point processing in 2011, and since version 4.0.12 the default working profile is ProPhoto, which has a very large gamut.&lt;br /&gt;
&lt;br /&gt;
The choice of working profile has an influence on the effect of the curves in all modes except for perceptual - in that mode, changing the working profile will not alter the effect of the curve. If you have trouble fitting colors within the output gamut you can experiment with changing the working profile when using curves in any mode but perceptual.&lt;br /&gt;
&lt;br /&gt;
Note that the working profile will only specify the red, green and blue primaries, gamma will not change as RawTherapee's processing pipeline is floating point with no gamma encoding (that is gamma = 1.0). Some tools (like curves and histograms) will still display with a gamma (usually sRGB gamma) which is hard-coded for the tool and stays the same regardless of working profile.&lt;br /&gt;
&lt;br /&gt;
=== Adding Custom Working Profiles ===&lt;br /&gt;
&lt;br /&gt;
RawTherapee 5.5 allows you to specify custom working profiles through a [https://en.wikipedia.org/wiki/JSON JSON] file. The file should be named &amp;lt;code&amp;gt;workingspaces.json&amp;lt;/code&amp;gt; and it can reside in:&lt;br /&gt;
* the ICC profile folder as set in [[Preferences#Color_Management_Tab|Preferences &amp;gt; Color Management &amp;gt; Directory containing color profiles]],&lt;br /&gt;
* or in RawTherapee's own ICC profile folder:&lt;br /&gt;
** Windows: &amp;lt;code&amp;gt;&amp;lt;rt-install-folder&amp;gt;\iccprofiles&amp;lt;/code&amp;gt;&lt;br /&gt;
** Linux:&lt;br /&gt;
*** When installed using your package manager or self-compiled with &amp;lt;code&amp;gt;BUILD_BUNDLE=OFF&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;/usr/share/rawtherapee/iccprofiles&amp;lt;/code&amp;gt;&lt;br /&gt;
*** When self-compiled with &amp;lt;code&amp;gt;BUILD_BUNDLE=ON&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;&amp;lt;rt-install-folder&amp;gt;/iccprofiles&amp;lt;/code&amp;gt;&lt;br /&gt;
** macOS: &amp;lt;code&amp;gt;/library/ColorSync/Profiles/Displays&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The format of &amp;lt;code&amp;gt;workingspaces.json&amp;lt;/code&amp;gt; is as follows:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
{&amp;quot;working_spaces&amp;quot;: [&lt;br /&gt;
    {&lt;br /&gt;
        &amp;quot;name&amp;quot; : &amp;quot;ACES&amp;quot;,&lt;br /&gt;
        &amp;quot;file&amp;quot; : &amp;quot;/path/to/ACES.icc&amp;quot;&lt;br /&gt;
    },&lt;br /&gt;
    {&lt;br /&gt;
        &amp;quot;name&amp;quot; : &amp;quot;ACEScg&amp;quot;,&lt;br /&gt;
        &amp;quot;matrix&amp;quot; : [0.7184354, 0.16578523, 0.09882643, 0.29728935, 0.66958117, 0.03571544, -0.00647622, 0.01469771, 0.66732561]&lt;br /&gt;
    }&lt;br /&gt;
]}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;quot;matrix&amp;quot; is present, &amp;quot;file&amp;quot; is ignored. If only &amp;quot;file&amp;quot; is present, the matrix is extracted from the ICC profile. For this, RawTherapee looks only at the R, G, and B matrix columns and the white point set in the profile. Bradford adaptation is used to convert the matrix to D50. Anything else in the profile (LUT, TRC, etc.) is ignored.&lt;br /&gt;
&lt;br /&gt;
It is the user's responsibility to ensure that the profile is suitable to be used as a working space.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Abstract Profiles==&lt;br /&gt;
&lt;br /&gt;
===What is an Abstract profile?===&lt;br /&gt;
&lt;br /&gt;
* According to the International Color Consortium (ICC), Abstract profiles allow you to perform custom image effects, such as applying a particular “look” to a series of images. Such a profile allows you to define CIELAB (or CIEXYZ) values as both Input and Output. This means you can algorithmically define whatever color changes you like and produce the corresponding LUT. A small number of color management applications support the creation and/or use of Abstract profiles. &lt;br /&gt;
* In the case of RawTherapee this is achieved using the Virtual profiles in LCMS, which allow you to modify the data using the same algorithms and principles as those used for Input profiles or Output profiles i.e. by acting on one or more of the 3 ICC profile components i.e. Tonal response curve (TRC), Illuminant (white point) and Primaries.&lt;br /&gt;
* Is an Abstract profile part of color management? This is debatable but it is certainly more so than the Working profile, which is simply a transformation in C++ code that converts RGB data into XYZ. If we use the ICC and LCMS (virtual profile) definitions, the answer is definitely yes.&lt;br /&gt;
* Note that Abstract Profile only works with the provided working profile package: ACESp0, ACESp1, Adobe RGB, Best RGB, BetaRGB, BruceRGB, ProPhoto, Rec2020, sRGB, WideGamut. The use of &amp;quot;Adding Custom Working Profiles through a JSON file&amp;quot; is not possible.&lt;br /&gt;
&lt;br /&gt;
===The CIE xy diagram===&lt;br /&gt;
&lt;br /&gt;
The LCMS virtual profile modifies the &amp;quot;x&amp;quot; &amp;amp; &amp;quot;y&amp;quot; data, which is one of the possible representations of the colorimetry. This representation makes it possible to easily see:&lt;br /&gt;
* The limits of human vision in terms of visible frequencies from 380nm to 770nm.&lt;br /&gt;
[[File:ciexy-color.jpg|600px|thumb|center|Limits of human vision]]&lt;br /&gt;
* A triangular color-space model based on the primaries.&lt;br /&gt;
[[File:ciexy-3space.jpg|600px|thumb|center|Colorimetric spaces]]&lt;br /&gt;
* The curve showing the evolution of the white point (one of the bases of the illuminants D50, D65, Std A, ).&lt;br /&gt;
[[File:ciexy-wp.jpg|600px|thumb|center|White point]]&lt;br /&gt;
* Note that this representation must be interpreted with care, because it is a vertical projection of the gamut. A color that is outside the gamut triangle is necessarily out of gamut, but a color inside the triangle can also be out of gamut, because this projection ignores the luminance component.&lt;br /&gt;
&lt;br /&gt;
====Some Primary values====&lt;br /&gt;
&lt;br /&gt;
* sRGB - Red x=0.64 y=0.33 - Green x=0.30 y=0.60 - Blue x=0.15 y=0.06&lt;br /&gt;
* Rec2020 - Red x=0.708 y=0.292 - Green x=0.17 y=0.797 - Blue x=0.131 y=0.046&lt;br /&gt;
* ProPhoto - Red x=0.7347 y=0.2653 - Green x=0.1596 y=0.8404 - Blue x=0.0366 y=0.0001&lt;br /&gt;
* ACESp0 - Red x=0.7347 y=0.2653 - Green x=0 y=1.0 - Blue x=0.0001 y=-0.077&lt;br /&gt;
&lt;br /&gt;
When one of the primaries is outside the limits of human vision we speak of imaginary colors.&lt;br /&gt;
&lt;br /&gt;
===Use of data from the &amp;quot;CIE xy&amp;quot; diagram in Abstract profiles.===&lt;br /&gt;
&lt;br /&gt;
[[File:cie-abstract_graph3.jpg|600px|thumb|center|Abstract profiles]]&lt;br /&gt;
&lt;br /&gt;
You can modify the 3 components of the virtual profile as you wish. The screen capture represents a configuration allowing you to improve the &amp;quot;calibration&amp;quot; of the Input profile.&lt;br /&gt;
* In this example, the Working profile is Prophoto, where the primaries have not been modified. When you choose &amp;quot;Destination primaries” &amp;gt; Custom the algorithm will by default choose this particular Working profile to build the Abstract or Virtual profile.&lt;br /&gt;
* If you change &amp;quot;Destination primaries&amp;quot; to any value other than those used for the Working profile you can create special effects similar to those produced in the more familiar Color Toning or Channel Mixer modules.&lt;br /&gt;
* You can change the D50 Illuminant to another value, either to create or amplify some special effect, or adapt the illuminant to a specific case.&lt;br /&gt;
&lt;br /&gt;
If the first combobox in the Abstract Profile panel is set to Custom, the CIE xy diagram will display the default working-profile values. i.e:&lt;br /&gt;
* The 3 primaries: Red, Green &amp;amp; Blue.&lt;br /&gt;
* The white point.&lt;br /&gt;
If the first combobox in the Abstract Profile panel is set to Custom or some other option (e.g. BT709 etc.), the CIE xy diagram will display:&lt;br /&gt;
* The primaries and the white point of the profile selected in the &amp;quot;Destination primaries&amp;quot; combobox.&lt;br /&gt;
&lt;br /&gt;
In addition to the profile options in the &amp;quot;Destination primaries&amp;quot; combobox there are also two custom options.&lt;br /&gt;
* Custom (sliders):&lt;br /&gt;
**  The sliders Red (X, Y), Green (X, Y) &amp;amp; Blue (X, Y) will be active.&lt;br /&gt;
** The combobox Illuminant will be active.&lt;br /&gt;
** Any changes to the slider values will be shown in the CIE xy diagram. Note that the &amp;quot;Custom (sliders)&amp;quot; option does not allow you to make changes directly on the graph.&lt;br /&gt;
&lt;br /&gt;
* Custom (CIE xy diagram):&lt;br /&gt;
** You can modify the primaries directly on the graph using the mouse and the changes will be made automatically to the Red, Green &amp;amp; Blue sliders. Note that in this case you can only modify the slider positions by moving the points on the graph.&lt;br /&gt;
** The illuminant cannot be changed.&lt;br /&gt;
&lt;br /&gt;
Note: &lt;br /&gt;
If we take the example shown in the screen capture above (with the sliders set to the ProPhoto primary values):&lt;br /&gt;
* When you move the red primary vertically upwards, reds will move towards magenta.&lt;br /&gt;
* If you move it down the reds move towards orange.&lt;br /&gt;
Note that the color shifts move in the opposite direction to the red primary. This is because moving the primary upwards causes the colors to rotate clockwise around the white point (shown in the diagram &amp;quot;the limits of human vision&amp;quot;). Moving the primary downwards causes the colors to rotate counterclockwise.&lt;br /&gt;
Similar behavior can be observed with the green and blue primaries.&lt;br /&gt;
* When you move the red primary to the left, (reducing the distance to the white point) the saturation will increase.&lt;br /&gt;
* If you move it to the right, the saturation should decrease but additional colors will be added. This behavior is normal.&lt;br /&gt;
&lt;br /&gt;
Still using the same example:&lt;br /&gt;
* When you change the illuminant (in this case D50) to a lower temperature (D41, stdA), the reds will turn orange. If you change it to a higher temperature (D80, D120) the reds will turn magenta. This is also normal.&lt;br /&gt;
&lt;br /&gt;
This behavior is &amp;quot;normal&amp;quot;, but why? The reason is that we don't modify the Working profile. Instead, we modify the data that has already been modified in the processing pipeline. For didactic purposes, let's look at the operation of CIECAM02/16 in symmetrical mode. If the white balance is set to 7500K for example and it corresponds to the illuminant at the time of shooting, the image will have yellowish whites and an overall dominant red color. Cat02/16 chromatic adaptation will allow us to cool down the image by setting the temperature in Viewing Conditions to the corresponding white balance i.e. 7500K. The white balance acts as the Working profile upstream and chromatic adaptation acts as an Abstract profile downstream. &lt;br /&gt;
&lt;br /&gt;
Note: the diagram is given for information only. The limits are not always very precise, especially towards the greens.&lt;br /&gt;
&lt;br /&gt;
===Which data and profiles are used or modified?===&lt;br /&gt;
&lt;br /&gt;
The Abstract profiles (Virtual profiles) implemented here:&lt;br /&gt;
* Do not change the Working profile.&lt;br /&gt;
* Do not modify the Input profile.&lt;br /&gt;
* Do not modify the Output profiles.&lt;br /&gt;
* But they modify the data in the same way as any other RawTherapee algorithm. Particular features:&lt;br /&gt;
** The Abstract profile, which corresponds to a virtual ICC profile in LCMS, acts as a patch at the end of the pipeline (just before Ciecam and just before the conversion to a screen profile or an Output profile). It acts on the 3 components of the ICC profile (Tone Response Curve, Illuminant (white point) &amp;amp; Primaries). Depending on the choices and settings, the image appearance can be modified as follows:&lt;br /&gt;
*** In depth by acting on the distribution of luminance and colors – rather like a Channel Mixer or Color Toning to which an extra dimension has been added.&lt;br /&gt;
*** On the luminance distribution via the TRC, either to change the default aspect, which in RawTherapee is an sRGB TRC, or to act as a Shadows/Highlights control.&lt;br /&gt;
*** To modify or refine the results of the Input profile with the help of a color chart (Colorchecker24 or other), either with the same illuminant that was used during the elaboration of the Input profile, or with another illuminant. In this case CIECAM will need to be used also.&lt;br /&gt;
&lt;br /&gt;
===Three main uses (with or without CIECAM)===&lt;br /&gt;
&lt;br /&gt;
* TRC: adjust gamma and slope to: a) modify the image rendering, which by default is g=2.4 s=12.92; b) raise the shadows and modify the lighter tones while preserving the colorimetry and the gamut.&lt;br /&gt;
* Illuminant (white point): a) adjust the gamut of the Working profile to adapt it to the shooting conditions taking into account the colorimetry. If an image is taken at 4000K, in sRGB (which is D65), the gamut may not be suitable. The joint action of the Illuminant and CIECAM (symmetrical mode) allows you to ensure good chromatic adaptation; b) used in conjunction with the modification of the Primaries below.&lt;br /&gt;
* Primaries: this is where the notion of Abstract profiles comes into its own. Several possibilities are available: a) Use this module as a Channel Mixer in order to create special effects similar to Color Toning, with or without CIECAM; b) Use it to modify or refine the result of the Input profile to improve the colorimetry (calibration).&lt;br /&gt;
&lt;br /&gt;
===Where is it located in the toolchain pipeline?===&lt;br /&gt;
&lt;br /&gt;
It is located at the end of the process, just before CIECAM and allows the user to either:&lt;br /&gt;
* Apply special effects similar to Color Toning &amp;gt; Color Correction Regions.&lt;br /&gt;
* Make color corrections (calibration) at the end of the process just before the Output profile taking into account image modifications made upstream.&lt;br /&gt;
&lt;br /&gt;
This position also avoids the introduction of non-linearities.&lt;br /&gt;
&lt;br /&gt;
=== TRC - Tone Response Curve ===&lt;br /&gt;
&lt;br /&gt;
This feature allows you to vary the gamma and slope based on the Working profile. It does not modify the profile, but takes its characteristics into account. It is applied at the end of the process, just before CIECAM. It can be found in other software such as UFRaw©, as well as in Output profiles.&lt;br /&gt;
&lt;br /&gt;
It has several objectives:&lt;br /&gt;
* Didactic: you can see the main differences resulting from changes in gamma (g) and slope (s) directly on your monitor. For example:&lt;br /&gt;
** With standard gamma = 1.8 - used in the Output profile by Prophoto.&lt;br /&gt;
** With standard gamma = 2.2 - used in the Output profile by AdobeRGB.&lt;br /&gt;
** With a TRC e.g. BT709 which corresponds to gamma = 2.22 and slope = 4.5. This has a linear part up to a value of 4.5, then a logarithmic part with g = 2.22. This combination gives the same result as the &amp;quot;standard gamma = 1.8&amp;quot; for the medium tones and highlights, but has improved shadow rendering by removing the impression of grayness.&lt;br /&gt;
** An sRGB TRC, which corresponds to g=2.4 and s=12.92. This has a linear part up to the value of 12.92, then a logarithmic part with g=2.4. This is the usual rendering chosen by many software applications including Lightroom©, as well as the default screen output and output of RawTherapee.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Particular export requirements: you can decide to work with a linear gamma for example, for exporting to another software application (for printing, or for modification in Photoshop or Gimp) and/or to see the results directly on your monitor.&lt;br /&gt;
&lt;br /&gt;
* Action on shadows and highlights: this feature does not replace the other RawTherapee modules such as Shadows/Highlights, or the curves in Exposure, etc., but is complementary to them:&lt;br /&gt;
** You can lift the shadows by using the Slope slider. Values up to 300 allow a significant transformation of the image in the shadows.&lt;br /&gt;
** You can act on the highlights and mid-tones by acting on the Gamma slider. Values up to 15 are possible.&lt;br /&gt;
** You can observe the impact on the histogram.&lt;br /&gt;
* Adjust the luminance of the gray tones, for example when using a ColorChecker24 for calibration.&lt;br /&gt;
&lt;br /&gt;
* Note that the Slope slider is only active for values of Gamma &amp;gt;1. Because of the algorithm used to generate the tone response curve, it will show erratic behavior when set to values below 1 and greater than 0.It behaves as expected when set to zero.&lt;br /&gt;
** When Slope is set to 0, only the gamma component of the TRC curve is activated. The image rendering will be similar to profiles such as “AdobeRGB 2.2” or “ProPhoto 1.8”.&lt;br /&gt;
** When Slope reaches the value 1 (in fact when Slope = 1 the system behaves as if gamma = 1), the number of shades of gray in the shadows are reduced and the shadows become darker. The overall contrast is increased with only minor changes to the mid-tones and highlights.&lt;br /&gt;
** Depending on the gamma setting, increasing the Slope will make the shadows progressively lighter. High Slope values (50 or more) require a high gamma value to take full advantage of the possibilities.&lt;br /&gt;
** Different profiles may have parts of their respective TRCs that are similar. For example an image opened with “Adobe g=2.2” will have approximately the same luminance values for the midtones and highlights as one opened with “sRGB g=2.4 s=12.92”. However there will be significant differences between the two in the shadows.&lt;br /&gt;
&lt;br /&gt;
====Differences compared to a classic tone curve====&lt;br /&gt;
&lt;br /&gt;
* As previously mentioned, it is located at the end of the process to avoid non-linearities as much as possible and guarantee better quality results.&lt;br /&gt;
* When used in conjunction with Illuminant or Primaries it guarantees that the result stays in gamut and gives better colorimetry. When it is used on its own (with Illuminant and “Destination primaries” set to the default values), there is no gamut control (to optimize processing time). Changing any of the default values will immediately invoke the gamut control. &lt;br /&gt;
* The linear part, often with a small value (s= 2 ... s=13), connected to a parabolic part is practically impossible to realize with a tone curve.&lt;br /&gt;
* It constitutes - as soon as you activate &amp;quot;Illuminant&amp;quot; (if only to confirm the illuminant, for example D50 for ProPhoto), or &amp;quot;Primaries&amp;quot; - a part of a virtual ICC profile that can be applied to an image or a series of images at the end of the process.&lt;br /&gt;
&lt;br /&gt;
===Illuminant - white point===&lt;br /&gt;
&lt;br /&gt;
By default, the illuminant is set to the corresponding value in the Working profile. For example this corresponds to D50 for &amp;quot;ProPhoto&amp;quot;, D65 for &amp;quot;sRGB&amp;quot;, D60 for &amp;quot;ACESp1&amp;quot;.&lt;br /&gt;
[[File:ciexy-wp.jpg|600px|thumb|center|White point]]&lt;br /&gt;
Why change it? There are several reasons for wanting to change this value:&lt;br /&gt;
* To deliberately change the colors as you would with a Channel Mixer or with Color Toning. If we examine the &amp;quot;CIE xy&amp;quot; diagram, we can see that when we change the illuminant the white point moves:&lt;br /&gt;
** Towards the red zone if the temperature of the illuminant drops.&lt;br /&gt;
** Towards the blue zone if the temperature of the illuminant increases.&lt;br /&gt;
Used this way we are essentially modifying the red / blue balance.&lt;br /&gt;
&lt;br /&gt;
* To &amp;quot;patch&amp;quot; the Working profile and adapt the colorimetry to specific images. For example, let's imagine that we took pictures around dusk and that the Working profile is &amp;quot;Prophoto&amp;quot; with a D50 illuminant.&lt;br /&gt;
* There are two possibilities:&lt;br /&gt;
** You want to accentuate the effects of the sunset and make the image even warmer. In this case choose a white point with a temperature lower than the Working profile; for example D41 if the Working profile is &amp;quot;Prophoto D50&amp;quot;. &lt;br /&gt;
** You want to optimize the gamut to get the best range of colors in sunset shooting conditions. In this case choose a white point that has a temperature higher than the Working profile. For example if the Working profile is &amp;quot;Prophoto D50&amp;quot;, and the shot is around 4000K, then choose an illuminant around D60 or D65. Note that the white point function is not linear so the approach can only be approximate.&lt;br /&gt;
** The virtual profile will &amp;quot;patch&amp;quot; the data by changing the XYZ values of the RGB-XYZ conversion matrix to better fit the image data, thus avoiding out-of-gamut values.&lt;br /&gt;
&lt;br /&gt;
===Primaries===&lt;br /&gt;
&lt;br /&gt;
By default the primaries are set to the values of the Working profile, so why change them?&lt;br /&gt;
* To create special effects similar to those that can be produced in the Channel Mixer or in Color Toning - note that a &amp;quot;primaries&amp;quot; Channel Mixer is a little more intuitive than an RGB Channel Mixer in the sense that a primary adjustment acts mainly on the particular primary color - in this case there are two possibilities:&lt;br /&gt;
** You can choose a set of primaries that are different to those used in the Working profile by selecting a different profile in the drop-down list in the “Destination primaries” combobox. This will have the effect of moving the triangle on the “CIE xy” diagram to take into account the difference between the primaries in the Working profile and the primaries used in the “Destination primaries”. This introduces a constant shift in any images to which this “patch” is applied. The final result will of course depend on how the colors are distributed in each of the images. &lt;br /&gt;
** You can also adjust the primaries individually by selecting Custom in the drop-down list in the “Destination primaries” combobox. In this case you can modify the location of the 3 vertices of the triangle of “Destination primaries” giving you almost unlimited possibilities.&lt;br /&gt;
&lt;br /&gt;
* To modify/refine images so that they are as close as possible to the shooting conditions (deltaE minimized).&lt;br /&gt;
** The use with a chart (ColorChecker24 ...) is almost mandatory.&lt;br /&gt;
** CIECAM should be used if we want the Input profile to be relevant when used with an illuminant other than the one used to create it in the first place.&lt;br /&gt;
&lt;br /&gt;
===Black &amp;amp; White===&lt;br /&gt;
&lt;br /&gt;
Abstract profiles can also be used to produce striking black &amp;amp; white effects by varying the three components of the profile. For example by:&lt;br /&gt;
* Shifting the white point to a completely different setting e.g. to Tungsten 2000K.&lt;br /&gt;
* Significantly moving the primaries away from their working-profile settings.&lt;br /&gt;
* Using a different TRC to change the way the gray tones are distributed in the image e.g. by using a TRC g=2.793 s=4.26.&lt;br /&gt;
&lt;br /&gt;
You can also use this module in conjunction with the CIECAM02/16 module to obtain color-toning effects such as Sepia etc., by modifying Temperature and Tint in the CIECAM Viewing Conditions (Advanced mode).&lt;br /&gt;
&lt;br /&gt;
The settings given in the example are for didactic purposes. Of course you can (should) use settings that are closer to the Working profile values.&lt;br /&gt;
&lt;br /&gt;
[[File:ciexy-bw1.jpg|600px|thumb|center|Black and White]]&lt;br /&gt;
Raw file: [https://drive.google.com/file/d/1azCxu1midw6dcuN7SbvbAiJH4pxX5BTA/view?usp=sharing]&lt;br /&gt;
&lt;br /&gt;
===How the &amp;quot;Primaries and White Point&amp;quot; algorithm works===&lt;br /&gt;
&lt;br /&gt;
When you change the primaries and white point, a new &amp;quot;XYZ=&amp;gt;RGB&amp;quot; matrix is applied to the data. This matrix is produced using the following simplified algorithm: &lt;br /&gt;
* Start with the chromaticity values of each of the red green and blue primaries (these correspond to the xyY values when Y=1).&lt;br /&gt;
* Convert the xyY values to XYZ to derive the first XYZ matrix: [M1]. &lt;br /&gt;
* Invert this matrix: [IM1]. &lt;br /&gt;
* Using [IM1] and the source XYZ white point values (e.g. D45, D55, D60, StdA etc.), derive the values of Sr, Sg &amp;amp; Sb. &lt;br /&gt;
* Produce a new matrix [Mat_xyz] by multiplying Sr, Sg, Sb with the original XYZ data in [M1].&lt;br /&gt;
&lt;br /&gt;
Bradford transformation &lt;br /&gt;
* Preamble: Bradford is a chromatic adaptation, based on the concept of &amp;quot;response cones&amp;quot;. Its purpose is to adapt the XYZ data calculated using a D50 illuminant to the XYZ values for another illuminant such as D41, D55, etc. It uses the concepts of &amp;quot;RGB source&amp;quot; (RGB s) and &amp;quot;RGB destination&amp;quot; (RGB d), to calculate the &amp;quot;response cone&amp;quot; values. This is similar to the LMS (long, medium, short) concept, which is a colorimetric space that represents the responses of the 3 types of cones in human vision.&lt;br /&gt;
* Calculate RGB s = Source White point * [M(Bradford)].&lt;br /&gt;
* Calculate RGB d = D50 White point * [M(Bradford)].&lt;br /&gt;
* Calculate  the Cone _response (destination source) = RGB d / RGB s. &lt;br /&gt;
* Develop a new matrix [Cone_matrix] = Cone_response  * [Inverse-M(Bradford)]. &lt;br /&gt;
* Develop a new matrix [Chromatic_adaptation] =  [M(Bradford)] * [Cone_matrix].&lt;br /&gt;
* Develop the final matrix taking into account the source White-point: [Mat_xyz_bradford] = [Mat_xyz] * [Chromatic_adaptation].&lt;br /&gt;
[http://www.brucelindbloom.com/index.html?Eqn_ChromAdapt.html  Bruce Lindbloom Chromatic adaptation for information - (slightly different to RawTherapee implementation))].&lt;br /&gt;
&lt;br /&gt;
====Display Matrix XYZ-RGB - &amp;quot;Mat_xyz_bradford&amp;quot;====&lt;br /&gt;
&lt;br /&gt;
* If you run RawTherapee from the console, and in options set verbose = true, the XYZ to RGB conversion matrix &amp;quot;Mat_xyz_bradford&amp;quot; will be displayed. It takes into account the &amp;quot;Destination primaries&amp;quot; and Illuminant.&lt;br /&gt;
* Example with &amp;quot;Destination primaries” = Rec2020 and illuminant set to D80.&lt;br /&gt;
** Illuminant: D80&lt;br /&gt;
** rX=0.661827 gX=0.178737 bX=0.123636&lt;br /&gt;
** rY=0.274860 gY=0.678752 bY=0.046389&lt;br /&gt;
** rZ=-0.00275 gZ=0.031042 bZ=0.796608&lt;br /&gt;
&lt;br /&gt;
Important note: &lt;br /&gt;
* The source white point is only used to modify the ICC profile (the data of the XYZ-RGB matrix). In-depth modification of the image cannot result from this modification and is part of the color-management process (White Balance, CIECAM,etc.).&lt;br /&gt;
&lt;br /&gt;
===Possible example of use to modify/improve the behavior of the Input profile===&lt;br /&gt;
&lt;br /&gt;
* Switch to Neutral.&lt;br /&gt;
* Load the image of the chart that was used to create the Input profile.&lt;br /&gt;
* Choose Abstract Profile &amp;gt; Custom. By default the selected profile will be the same as the Working profile (as will the Illuminant). Do not change these values.&lt;br /&gt;
* Select Custom in &amp;quot;Destination primaries”.&lt;br /&gt;
* The Working profile primaries are displayed, you can now modify them.&lt;br /&gt;
* Activate the Lockable Color Picker.&lt;br /&gt;
* Select among the patches: 2 or 3 grays distributed between the darkest and the lightest, 1 red (saturated), 1 green (saturated), 1 blue (saturated).&lt;br /&gt;
* The L*a*b* values of these patches (chart references) are the target values.&lt;br /&gt;
* Adjust gamma (g) and slope (s) so that the 3 grays are as close as possible to the reference values.&lt;br /&gt;
* Change the &amp;quot;x&amp;quot; and &amp;quot;y&amp;quot; values of the Red, Green and Blue primaries so that the measured values are as close as possible to the reference values.&lt;br /&gt;
* Use &amp;quot;Preserves Pastel tones&amp;quot; if necessary: this slider allows you to avoid modifying very lightly saturated tones (close to neutral tones) and allows you to progressively reduce the action on pastel tones.&lt;br /&gt;
* Save the result.&lt;br /&gt;
&lt;br /&gt;
If you want your profile (e.g. developed in D50) to be used for another temperature range, it is necessary to take Cat16 into account in CIECAM:&lt;br /&gt;
* Choose the new temperature in &amp;quot;White balance&amp;quot; - for example 6000K.&lt;br /&gt;
* Select Color Appearance &amp;amp; Lighting (CIECAM02/16).&lt;br /&gt;
* Select: CAM Model = CIECAM16.&lt;br /&gt;
* Select CatO2/16 mode = Automatic Symmetric.&lt;br /&gt;
* Adjust the temperature in Viewing Conditions to that of the white balance (in this example 6000K),&lt;br /&gt;
* Then use the same process as before.&lt;br /&gt;
&lt;br /&gt;
To use the results of this virtual profile for other images, do the following:&lt;br /&gt;
* Right click on the thumbnail in the file browserand choose &amp;quot;Processing profile operations&amp;quot; &amp;gt; Copy,then &amp;quot;Paste partial&amp;quot; &amp;gt; &amp;quot;Color management&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Note: the values can of course be adjusted empirically as in ART and Lightroom. For small deviations from the original primaries, the results are fairly predictable. On the other hand, if we make big changes, the results will be less so.&lt;br /&gt;
&lt;br /&gt;
== Output Profile ==&lt;br /&gt;
&lt;br /&gt;
Specify the output color profile; the saved image will be transformed into this color space and the profile will be embedded in the metadata. The effects the output profile has on the image cannot be seen in the preview. &lt;br /&gt;
&lt;br /&gt;
RawTherapee lets you specify &amp;quot;input&amp;quot; (e.g. your camera's profile), &amp;quot;display&amp;quot; (e.g. computer screen) and &amp;quot;output&amp;quot; (e.g. printer) device class profiles with an RGB color space, because RawTherapee saves only RGB images. Profiles listed in this combobox are those which come bundled with RawTherapee and those located in the folder set in Preferences &amp;gt; [[Preferences#Color_Management_Tab|Color Management]].&lt;br /&gt;
&lt;br /&gt;
The soft-proofing feature is dedicated to simulating printer rendering. It lets you preview what your image will look like when printed, assuming you use a printer profile which correctly simulates your printer and paper combination. For best printout quality, after you have tweaked your photo using soft-proofing, you should select your printer profile as the output profile and save the image using it. This ensures that the image is encoded using your printer's color space directly from RawTherapee's internal high quality floating-point representation, instead of being saved to an 8-bit image in sRGB for example and then having to be subsequently converted to the printer profile, which would be quite lossy.&lt;br /&gt;
&lt;br /&gt;
The main histogram, navigator and clipping indicators will use either the working or the output profile. You can choose the behavior by using  [[File:gamut-hist.png]] button in the Editor tab.&lt;br /&gt;
 &lt;br /&gt;
The recommended output profile when you're saving to an 8-bit format and/or publishing to the web is RTv4_sRGB. If no profile is selected, none will be embedded, which means that &amp;quot;sRGB&amp;quot; is implied, though it is safer to embed RTv4_sRGB to ensure your image is displayed properly in various applications.&lt;br /&gt;
&lt;br /&gt;
RTv4_sRGB is a '''higher quality''' version of the standard sRGB profile, which surprisingly is inconsistent between implementations. RTv4_sRGB was custom-made for RawTherapee and has 4096 LUT points, as opposed to the lower quality 1024 point sRGB profiles. Applications that aren't color managed and won't take advantage of RTv4_sRGB will fall back on sRGB.&lt;br /&gt;
&lt;br /&gt;
Wide-gamut output profiles such as RTv4_Large are generally used if you export to a 16-bit or higher bit-depth format for further editing in another application. If you will be sending your image for printing, a wide-gamut output profile is also recommended, since some printers may have wide gamuts (at least in certain colors).&lt;br /&gt;
&lt;br /&gt;
You should have a wide-gamut monitor if you want to work with wide-gamut profiles, otherwise you're flying in the dark.&lt;br /&gt;
&lt;br /&gt;
=== Bundled Output Profiles ===&lt;br /&gt;
&lt;br /&gt;
RawTherapee comes bundled with a number of custom-made, high quality output profiles. There are two types: ones compatible with [https://en.wikipedia.org/wiki/ICC_profile ICC v2], and ones with [https://www.color.org/whyusev4.xalter v4]. The v4 versions should be compatible with most modern software. The legacy v2 versions are supplied as a fallback.&lt;br /&gt;
&lt;br /&gt;
Each ICC profile's filename describes the ICC version and the primaries of the output space:&lt;br /&gt;
* sRGB: similar to sRGB.&lt;br /&gt;
* Medium : similar to AdobeRGB1998.&lt;br /&gt;
* Large: similar to ProPhoto.&lt;br /&gt;
* ACES-AP0: similar to ACES AP0.&lt;br /&gt;
* ACES-AP1: similar to ACES AP1.&lt;br /&gt;
* Wide: similar to Widegamut.&lt;br /&gt;
* Rec2020: similar to Rec2020.&lt;br /&gt;
* Best: similar to Best.&lt;br /&gt;
* Beta: similar to Beta.&lt;br /&gt;
* Bruce : similar to Bruce.&lt;br /&gt;
&lt;br /&gt;
By default all these profiles have a TRC (Tone Reproduction Curve) with gamma=2.4 and slope=12.92.&lt;br /&gt;
&lt;br /&gt;
You can customize these profiles using the [[ICC_Profile_Creator| ICC profile Creator]], which allows you to: &lt;br /&gt;
* change the TRC and assign any value from 1 (linear gamma) upwards.&lt;br /&gt;
* change the primaries and illuminant to suit your needs.&lt;br /&gt;
* change the labels, description etc.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Linux&amp;diff=8581</id>
		<title>Linux</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Linux&amp;diff=8581"/>
		<updated>2021-06-19T07:46:18Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Document TCMALLOC&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Linux&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This page details instructions for compiling RawTherapee on '''GNU/Linux''' systems. There are also instructions for compiling on [[Windows]] and [[macOS]].&lt;br /&gt;
&lt;br /&gt;
When in doubt, [[IRC|join us on IRC]] or in the [[Forum]] and ask a human!&lt;br /&gt;
&lt;br /&gt;
== Dependencies ==&lt;br /&gt;
&lt;br /&gt;
To compile RawTherapee your system will need a set of tools and code libraries from other programs. These are called dependencies, and here is a list of them for the latest version of RawTherapee:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+ Build-time dependencies for RawTherapee:&lt;br /&gt;
! Package      !! Version            !! URL&lt;br /&gt;
|-&lt;br /&gt;
| CMake        || cmake&amp;gt;=3.5         || https://cmake.org/&lt;br /&gt;
|-&lt;br /&gt;
| EXIV2        || exiv2&amp;gt;=0.19        || http://www.exiv2.org/&lt;br /&gt;
|-&lt;br /&gt;
| EXPAT        || expat&amp;gt;=2.1.0       || https://libexpat.github.io/&lt;br /&gt;
|-&lt;br /&gt;
| FFTW3        || fftw&amp;gt;=3.2.2        || http://fftw.org/&lt;br /&gt;
|-&lt;br /&gt;
| GCC          || gcc&amp;gt;=4.9           || https://gcc.gnu.org/&lt;br /&gt;
|-&lt;br /&gt;
| GLIB2        || glib-2.0&amp;gt;=2.24     || https://www.gtk.org/&lt;br /&gt;
|-&lt;br /&gt;
| GLIBMM       || glibmm-2.4&amp;gt;=2.24   || https://www.gtkmm.org/&lt;br /&gt;
|-&lt;br /&gt;
| GTK+         || gtk+-3.16 &amp;lt; 3.24.0 || https://www.gtk.org/&lt;br /&gt;
|-&lt;br /&gt;
| GTKMM        || gtkmm-3.16         || https://www.gtkmm.org/&lt;br /&gt;
|-&lt;br /&gt;
| JPEG         || libjpeg&amp;gt;=6b        || https://libjpeg-turbo.org/ https://jpegclub.org/ https://www.ijg.org/&lt;br /&gt;
|-&lt;br /&gt;
| LCMS2        || lcms&amp;gt;=2.6          || https://www.littlecms.com/&lt;br /&gt;
|-&lt;br /&gt;
| LENSFUN      || lensfun&amp;gt;=0.2       || https://github.com/lensfun/lensfun&lt;br /&gt;
|-&lt;br /&gt;
| LIBCANBERRA  || libcanberra&amp;gt;=0.29  || http://0pointer.de/lennart/projects/libcanberra/ (Linux only)&lt;br /&gt;
|-&lt;br /&gt;
| LIBIPTCDATA  || libiptcdata&amp;gt;=1.0.2 || http://libiptcdata.sourceforge.net&lt;br /&gt;
|-&lt;br /&gt;
| PNG          || libpng&amp;gt;=1.2.44     || http://www.libpng.org/&lt;br /&gt;
|-&lt;br /&gt;
| librsvg      || librsvg&amp;gt;=2.40      || https://github.com/GNOME/librsvg&lt;br /&gt;
|-&lt;br /&gt;
| SIGC         || sigc++-2.0         || https://github.com/libsigcplusplus/libsigcplusplus&lt;br /&gt;
|-&lt;br /&gt;
| TIFF         || libtiff&amp;gt;=4.0.4     || http://libtiff.org/&lt;br /&gt;
|-&lt;br /&gt;
| ZLIB         || zlib&amp;gt;=1.2.3        || http://www.zlib.net/&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
In order to install all these dependencies, you will need to open a console and paste the code from the appropriate section into the console.&lt;br /&gt;
&lt;br /&gt;
The code snippets below list dependencies for the latest RawTherapee code which requires GTK3. We dropped support for GTK2 with release &amp;quot;5.0-r1-gtk2&amp;quot; in February 2017. If you use a modern distribution, just copy and paste the code snippets as they are. If you're on an old distribution without the required GTK3 support, then refer to the archived [[Linux_GTK2|GTK2]] article, then checkout and compile the obsolete &amp;lt;code&amp;gt;5.0-r1-gtk2&amp;lt;/code&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
=== Arch/Manjaro ===&lt;br /&gt;
&lt;br /&gt;
Current versions of Arch and Manjaro work well out of the box. Refer to the [[Linux_GTK2|GTK2]] article if compiling on a version older than 17.1.12.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo pacman -S --needed cmake exiv2 expat fftw glib2 glibmm gtk3 gtkmm3 lcms2 lensfun libcanberra libiptcdata libjpeg-turbo libpng librsvg libsigc++ libtiff zlib&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Compilation|Compilation]].&lt;br /&gt;
&lt;br /&gt;
=== CentOS ===&lt;br /&gt;
&lt;br /&gt;
CentOS 7 has very outdated packages and requires extra steps to install a recent GCC, git, lensfun and libtiff. The steps below were verified to work in CentOS 7.4.1708, but proceed at your own risk.&lt;br /&gt;
&lt;br /&gt;
GCC &amp;gt;=4.9.3:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo yum update&lt;br /&gt;
sudo yum install cmake git&lt;br /&gt;
sudo yum install centos-release-scl&lt;br /&gt;
sudo yum install devtoolset-7-gcc*&lt;br /&gt;
scl enable devtoolset-7 bash&lt;br /&gt;
source /opt/rh/devtoolset-7/enable&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
git &amp;gt;=2.7:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
lensfun:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm&lt;br /&gt;
sudo rpm -ivh epel-release-latest-7.noarch.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
libtiff &amp;gt;=4.0.4:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo yum install ninja-build&lt;br /&gt;
mkdir ~/programs &amp;amp;&amp;amp; cd ~/programs&lt;br /&gt;
wget http://download.osgeo.org/libtiff/tiff-4.0.9.tar.gz&lt;br /&gt;
tar zxvf tiff-4.0.9.tar.gz&lt;br /&gt;
mkdir tiff-4.0.9/libtiff-build &amp;amp;&amp;amp; cd tiff-4.0.9/libtiff-build&lt;br /&gt;
cmake -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/libtiff-4.0.9 -DCMAKE_INSTALL_PREFIX=/usr -G Ninja ..&lt;br /&gt;
ninja-build&lt;br /&gt;
sudo ninja-build install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the other dependencies:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo yum install curl expat-devel fftw-devel gtk3-devel gtkmm30-devel lcms2-devel lensfun-devel libcanberra-devel libiptcdata-devel libjpeg-turbo-devel libpng-devel librsvg2-devel zlib-devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Symlink libatomic:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo ln -s /usr/lib64/libatomic.so.1 /usr/lib64/libatomic.so&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As you proceed to the next step - compilation - you will need to edit the &amp;lt;code&amp;gt;build-rawtherapee&amp;lt;/code&amp;gt; script and add these three lines to the CMake section near the end of the file, for example after the &amp;quot;-DWITH_BENCHMARK&amp;quot; line before the &amp;quot;$HOME&amp;quot; line:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;    -DTIFF_INCLUDE_DIR=&amp;quot;$HOME/programs/tiff-4.0.9/libtiff&amp;quot; \&lt;br /&gt;
    -DTIFF_LIBRARY=&amp;quot;$HOME/programs/tiff-4.0.9/libtiff-build/libtiff/libtiff.so&amp;quot; \&lt;br /&gt;
    -DCMAKE_CXX_FLAGS=&amp;quot;-Wno-deprecated -Wno-parentheses&amp;quot; \&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Compilation|Compilation]].&lt;br /&gt;
&lt;br /&gt;
=== Debian/Ubuntu/Mint/elementary OS ===&lt;br /&gt;
&lt;br /&gt;
Current versions of these distributions work well out of the box (Debian &amp;gt;=9, Ubuntu &amp;gt;=18.04 LTS, Linux Mint &amp;gt;=19, elementary OS &amp;gt;=5). Instructions below assume a fully updated system. Additional packages may need to be installed on your particular system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo apt install git build-essential cmake curl pkg-config libgtk-3-dev libgtkmm-3.0-dev liblensfun-dev librsvg2-dev liblcms2-dev libfftw3-dev libiptcdata0-dev libtiff5-dev libcanberra-gtk3-dev&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Ubuntu 16.04 LTS (Xenial) ====&lt;br /&gt;
RawTherapee 5.8 (release) is the latest version supported for Xenial-based distributions. See [https://github.com/Beep6581/RawTherapee/issues/5943 here] for details. When compiling, follow the manual steps and use git to checkout the &amp;lt;code&amp;gt;5.8&amp;lt;/code&amp;gt; branch.&lt;br /&gt;
&lt;br /&gt;
==== Ubuntu &amp;lt;=14.04 LTS (Trusty), Debian &amp;lt;=8 (Jessie) ====&lt;br /&gt;
Refer to the [[Linux_GTK2|GTK2]] article if compiling on earlier versions of Ubuntu. The GTK3 version of RawTherapee is unsupported in these distributions.&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Compilation|Compilation]].&lt;br /&gt;
&lt;br /&gt;
=== Fedora ===&lt;br /&gt;
&lt;br /&gt;
Current versions of Fedora work well out of the box. Instructions below assume a fully updated system. Additional packages may need to be installed on your particular system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo dnf install git make cmake curl gcc gcc-c++ gtk3-devel gtkmm30-devel lensfun-devel librsvg2-devel lcms2-devel fftw-devel libiptcdata-devel libtiff-devel libjpeg-turbo-devel libcanberra-devel libatomic&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Fedora &amp;lt;=23 ====&lt;br /&gt;
RawTherapee 5.6 (release) is the latest version supported for this distribution because of a higher CMake version requirement (see [https://github.com/Beep6581/RawTherapee/issues/5302 here]). When compiling, follow the manual steps and use git to checkout the &amp;lt;code&amp;gt;5.6&amp;lt;/code&amp;gt; branch.&lt;br /&gt;
&lt;br /&gt;
==== Fedora 22 ====&lt;br /&gt;
In addition to the above notices and requirements, an updated version of &amp;lt;code&amp;gt;libtiff&amp;lt;/code&amp;gt; needs to be compiled manually.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo yum install ninja-build&lt;br /&gt;
cd ~&lt;br /&gt;
wget http://download.osgeo.org/libtiff/tiff-4.0.9.tar.gz&lt;br /&gt;
tar zxvf tiff-4.0.9.tar.gz&lt;br /&gt;
cd tiff-4.0.9.tar.gz&lt;br /&gt;
mkdir build &amp;amp;&amp;amp; cd build&lt;br /&gt;
cmake -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/libtiff-4.0.9 -DCMAKE_INSTALL_PREFIX=/usr -G Ninja ..&lt;br /&gt;
ninja-build&lt;br /&gt;
sudo ninja-build install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Fedora &amp;lt;=21 ====&lt;br /&gt;
Refer to the [[Linux_GTK2|GTK2]] article if compiling on earlier versions of Fedora. The GTK3 version of RawTherapee is unsupported in these distributions.&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Compilation|Compilation]].&lt;br /&gt;
&lt;br /&gt;
=== Gentoo/Sabayon ===&lt;br /&gt;
&lt;br /&gt;
Sabayon users should use the same dependencies as for Gentoo, but instead of &amp;lt;code&amp;gt;sudo emerge -uva&amp;lt;/code&amp;gt; use &amp;lt;code&amp;gt;sudo equo install sys-devel/gcc dev-vcs/git&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo emerge -uva dev-cpp/gtkmm:3.0 dev-libs/expat dev-util/cmake media-gfx/exiv2 media-libs/lcms media-libs/lensfun media-libs/libcanberra media-libs/libiptcdata media-libs/libjpeg-turbo media-libs/libpng gnome-base/librsvg media-libs/tiff net-misc/curl sci-libs/fftw sys-libs/zlib x11-libs/gtk+:3&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Compilation|Compilation]].&lt;br /&gt;
&lt;br /&gt;
=== openSUSE ===&lt;br /&gt;
&lt;br /&gt;
openSUSE Leap 15 and Tumbleweed should work well out of the box. Serious compilation issues can be expected with other versions. Refer to the [[Linux_GTK2|GTK2]] article if compiling on a version older than 42.1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo zypper install git cmake gcc gcc-c++ gtk3-devel gtkmm3-devel liblcms2-devel fftw3-devel libitpcdata-devel librsvg-devel libtiff-devel libjpeg8-devel libcanberra-gtk3-devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For openSUSE 15.1 and newer, the &amp;lt;code&amp;gt;lensfun&amp;lt;/code&amp;gt; library needs to be installed as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo zypper install lensfun-data liblensfun1&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For openSUSE Tumbleweed, the package is slightly different:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;sudo zypper install lensfun-devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For other versions of openSUSE &amp;lt;code&amp;gt;lensfun&amp;lt;/code&amp;gt; has to be installed manually:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;wget https://sourceforge.net/projects/lensfun/files/0.3.2/lensfun-0.3.2.tar.gz&lt;br /&gt;
tar xvf lensfun-0.3.2.tar.gz&lt;br /&gt;
cd lensfun-0.3.2.tar.gz&lt;br /&gt;
mkdir build&lt;br /&gt;
cd build&lt;br /&gt;
cmake ../&lt;br /&gt;
make&lt;br /&gt;
sudo make install&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Compilation|Compilation]].&lt;br /&gt;
&lt;br /&gt;
== Compilation ==&lt;br /&gt;
&lt;br /&gt;
There are two general ways you can compile RawTherapee: either use the [[#The_Automatic_Way|automatic]] Bash script which compiles RawTherapee for you (recommended), or do so [[#The_Manual_Way|manually]].&lt;br /&gt;
&lt;br /&gt;
=== The Automatic Way ===&lt;br /&gt;
&lt;br /&gt;
This is the recommended way of compiling RawTherapee as it is fast, simple and fool-proof. It relies on a Bash script which downloads the latest RawTherapee source code and compiles it in a way which is optimized for your CPU. The compiled builds are ready for use. The script does not check for build-time dependencies, so be sure to read the [[#Dependencies|Dependencies]] section before using the script. The compiled builds are standalone, meaning that you can keep several versions of RawTherapee at the same time simply by renaming the build folders so that creating a new build does not overwrite the previous build, which happens by default.&lt;br /&gt;
&lt;br /&gt;
Run the script as a normal user, not as root!&lt;br /&gt;
&lt;br /&gt;
Open a terminal, get the script, make it executable, and run it:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;cd ~&lt;br /&gt;
wget https://raw.githubusercontent.com/Beep6581/RawTherapee/dev/tools/build-rawtherapee -O build-rawtherapee&lt;br /&gt;
chmod +x build-rawtherapee&lt;br /&gt;
./build-rawtherapee&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If everything goes well, the script will terminate with the message, &amp;quot;To run rawtherapee type: ...&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
To update RawTherapee if you previously compiled it using this script, just re-run the script. That's it.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;build-rawtherapee&amp;lt;/code&amp;gt; script is included in RawTherapee's source code. Since running the script updates the source code, after you compiled your first build you can delete the script you downloaded manually above using wget, and instead use &amp;lt;code&amp;gt;~/programs/code-rawtherapee/tools/build-rawtherapee&amp;lt;/code&amp;gt; which will always update itself.&lt;br /&gt;
&lt;br /&gt;
The script compiles the current branch, which by default is &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; where most of the development happens. To compile a different branch, check it out using standard git commands before running the script. Read more about RawTherapee's branches below in the [[Linux#Choose_a_branch|Choose a Branch]] section.&lt;br /&gt;
&lt;br /&gt;
For more information, see &amp;lt;code&amp;gt;./build-rawtherapee --help&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You have finished, RawTherapee is ready for use. You can skip the &amp;quot;Manual Way&amp;quot; section.&lt;br /&gt;
&lt;br /&gt;
=== The Manual Way ===&lt;br /&gt;
&lt;br /&gt;
The recommended way of compiling RawTherapee is by using the automatic script - see [[#The_Automatic_Way|Compilation: The Automatic Way]]. If you want to learn how to compile manually, read on.&lt;br /&gt;
&lt;br /&gt;
In order to keep your &amp;quot;home&amp;quot; folder clean when manually compiling multiple programs (i.e. when not using your distribution's package manager) and for this manual compilation tutorial to maintain compatibility with the automatic compilation script, you will create the folder &amp;lt;code&amp;gt;~/programs/&amp;lt;/code&amp;gt; which will contain all RawTherapee-related source code in the &amp;lt;code&amp;gt;~/programs/code-rawtherapee&amp;lt;/code&amp;gt; folder, and the compiled build in the &amp;lt;code&amp;gt;~/programs/rawtherapee&amp;lt;/code&amp;gt; folder. You can use the same scheme when compiling other programs.&lt;br /&gt;
&lt;br /&gt;
==== Clone the source ====&lt;br /&gt;
&lt;br /&gt;
First, you need to clone RawTherapee's source code repository. Bring up your console and run this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;mkdir -p ~/programs&lt;br /&gt;
git clone https://github.com/Beep6581/RawTherapee ~/programs/code-rawtherapee&lt;br /&gt;
cd ~/programs/code-rawtherapee&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Choose a branch ====&lt;br /&gt;
&lt;br /&gt;
* Features are developed on their own feature branches.&lt;br /&gt;
* Development happens in the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch. Feature branches are merged into the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch when they're ready. The &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch is unstable.&lt;br /&gt;
* Releases are tagged in the &amp;lt;code&amp;gt;releases&amp;lt;/code&amp;gt; branch.&lt;br /&gt;
&lt;br /&gt;
Checkout the latest tag if you want the most stable code. To see all available tags, type:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;git tag&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Checkout the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch or some other feature branch if you want to test the latest bleeding-edge code. To see all available branches, type:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;git branch -a&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Checking out is done via the &amp;quot;git checkout&amp;quot; command. To checkout a tag or a branch, type:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;git checkout &amp;lt;tag or branch&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
RawTherapee uses GTK+ for the user interface and requires GTK+ version 3.16 or newer. If your system does not support version 3.16 or newer then you must checkout the &amp;lt;code&amp;gt;5.0-r1-gtk2&amp;lt;/code&amp;gt; tag. Our GTK2 support has officially ended on 2 February 2017 - refer to the archived [[Linux_GTK2|GTK2]] article, and update your system.&lt;br /&gt;
&lt;br /&gt;
Compiling old versions of RawTherapee will fail on a modern system, as you will be missing the old dependencies.&lt;br /&gt;
&lt;br /&gt;
==== Compile RawTherapee ====&lt;br /&gt;
&lt;br /&gt;
Now you will make an out-of-source compilation of RawTherapee, it will be built into the &amp;lt;code&amp;gt;~/programs/code-rawtherapee/build/release&amp;lt;/code&amp;gt; folder, and then you will move this folder to &amp;lt;code&amp;gt;~/programs/rawtherapee&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== CMake =====&lt;br /&gt;
&lt;br /&gt;
There are a few compilation settings you need to be aware of, you will pass these to CMake using the &amp;lt;code&amp;gt;-D&amp;lt;/code&amp;gt; option as described below:&lt;br /&gt;
&lt;br /&gt;
; CMAKE_BUILD_TYPE&lt;br /&gt;
: One of: &amp;lt;code&amp;gt;release&amp;lt;/code&amp;gt; (default), &amp;lt;code&amp;gt;relwithdebinfo&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;debug&amp;lt;/code&amp;gt;.&lt;br /&gt;
: This controls whether the build will favor faster execution time or more verbose debugging output.&lt;br /&gt;
: The &amp;quot;debug&amp;quot; and &amp;quot;relwithdebinfo&amp;quot; builds will let you [[How_to_write_useful_bug_reports|get a useful stack-backtrace]] if RawTherapee crashes while running through GDB which you can then submit to us so we can find the problem and fix it. The &amp;quot;debug&amp;quot; build is the slowest but generates the most detailed information. The &amp;quot;relwithdebinfo&amp;quot; build is almost as fast as a &amp;quot;release&amp;quot; build and generates often sufficient information, though not as detailed as a &amp;quot;debug&amp;quot; build. The &amp;quot;release&amp;quot; build will not provide any useful information when it crashes, but does contain many speed optimizations resulting in a program that works several times faster than the &amp;quot;debug&amp;quot; build would. For normal use, make a &amp;quot;release&amp;quot; or &amp;quot;relwithdebinfo&amp;quot; build. If you find a reproducible bug, then make a &amp;quot;debug&amp;quot; build and send us a stack-backtrace (or fix it yourself and send us the patch!). We prefer stack backtraces from debug builds than from relwithdebinfo ones.&lt;br /&gt;
:: To make a &amp;quot;release&amp;quot; type build, set: &amp;lt;code&amp;gt;-DCMAKE_BUILD_TYPE=&amp;quot;release&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; USE_OLD_CXX_ABI&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
: When compiling a program, one must use the same conventions as those used by the libraries which that program relies upon, otherwise compilation (linking) will fail. Generally one does not need to concern oneself with this, but we are now at a time when GCC4 is being phased out by GCC5, each by default using a convention incompatible with the other, and so this issue is relevant. If the libraries on your system have been compiled using GCC5, they probably use a standard called C++11. This means that your RawTherapee build must use the same standard, which is the case by default. However, if despite using GCC5 your libraries were built using the older C++03 standard, then RawTherapee must be set to use the same, and this is when you would set &amp;quot;USE_OLD_CXX_ABI&amp;quot; to &amp;quot;ON&amp;quot;.&lt;br /&gt;
:: To enable USE_OLD_CXX_ABI, set: &amp;lt;code&amp;gt;-DUSE_OLD_CXX_ABI=&amp;quot;ON&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; CACHE_NAME_SUFFIX&lt;br /&gt;
: The CACHE_NAME_SUFFIX options sets the suffix of the cache and config folder names the compiled RawTherapee build will use. See the [[File Paths]] article for an explanation of what those are.&lt;br /&gt;
: For stable releases (if you checkout the &amp;quot;releases&amp;quot; branch) use &amp;lt;code&amp;gt;-DCACHE_NAME_SUFFIX=&amp;quot;&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
: For development builds (if you checkout the &amp;quot;dev&amp;quot; branch or any branch other than &amp;quot;releases&amp;quot;) use &amp;lt;code&amp;gt;-DCACHE_NAME_SUFFIX=&amp;quot;5-dev&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; PROC_TARGET_NUMBER&lt;br /&gt;
: From &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; (default) to &amp;lt;code&amp;gt;9&amp;lt;/code&amp;gt;.&lt;br /&gt;
: The PROC_TARGET_NUMBER option sets which CPU type to optimize for.&lt;br /&gt;
: If building for yourself, use &amp;quot;2&amp;quot;. It means &amp;quot;native&amp;quot;, so the optimizations will be automatically detected for your CPU and RawTherapee will perform as fast as possible on your CPU. It might not run at all on older or other CPU architectures.&lt;br /&gt;
: If building for distribution (for other people), use &amp;quot;1&amp;quot;. It means &amp;quot;generic&amp;quot;, so only optimizations supported by most CPUs will be used, meaning the build can be downloaded and used by anyone, though it won't benefit from the best optimizations possible for the user's CPU.&lt;br /&gt;
: For more info, see the file &amp;quot;ProcessorTargets.cmake&amp;quot; in the cloned repository.&lt;br /&gt;
:: To make a build using &amp;quot;native&amp;quot; optimizations, set: &amp;lt;code&amp;gt;-DPROC_TARGET_NUMBER=&amp;quot;2&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; BUILD_BUNDLE&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt;.&lt;br /&gt;
: Forced to &amp;quot;ON&amp;quot; for Windows and macOS. Optional in Linux where it is &amp;quot;OFF&amp;quot; by default.&lt;br /&gt;
: If set to ON, the program will be built into the &amp;lt;code&amp;gt;DATADIR&amp;lt;/code&amp;gt; folder, otherwise it will be installed relative to &amp;lt;code&amp;gt;CMAKE_INSTALL_PREFIX&amp;lt;/code&amp;gt; which would typically be system-wide.&lt;br /&gt;
&lt;br /&gt;
; BUNDLE_BASE_INSTALL_DIR&lt;br /&gt;
: Use an absolute path.&lt;br /&gt;
: The program will be built into this folder.&lt;br /&gt;
: For example, set it to: &amp;lt;code&amp;gt;-DBUNDLE_BASE_INSTALL_DIR=&amp;quot;$HOME/programs/rawtherapee&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
: If it is not set, the default is to use &amp;lt;code&amp;gt;${CMAKE_BINARY_DIR}/${CMAKE_BUILD_TYPE}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; LENSFUNDBDIR&lt;br /&gt;
: Unset by default.&lt;br /&gt;
: The &amp;lt;code&amp;gt;LENSFUNDBDIR&amp;lt;/code&amp;gt; option permits to locate the lensfun database in the specified directory. It can be unset, absolute or relative.&lt;br /&gt;
: When unset, Lensfun uses its own logic to find the database. This is the recommended option if you have Lensfun installed system-wide and want to use it.&lt;br /&gt;
: You can set it to a relative or absolute path if you want to use a custom lensfun database.&lt;br /&gt;
: If building a bundle, it is relative to the bundle's root folder, otherwise it is relative to &amp;lt;code&amp;gt;DATADIR&amp;lt;/code&amp;gt;, i.e. &amp;lt;code&amp;gt;${CMAKE_INSTALL_PREFIX}/share/rawtherapee&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; OPTION_OMP&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; (default) or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt;.&lt;br /&gt;
: Build with OpenMP support when enabled, which enables multithreading and makes RawTherapee much faster.&lt;br /&gt;
&lt;br /&gt;
; WITH_LTO&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
: Build with link-time optimizations when enabled, which may make RawTherapee run a little faster.&lt;br /&gt;
&lt;br /&gt;
; WITH_PROF&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
: For debugging purposes. Generate extra code to write profile information suitable for the analysis program gprof.&lt;br /&gt;
&lt;br /&gt;
; WITH_SAN&lt;br /&gt;
: &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default) or one of various other options.&lt;br /&gt;
: For debugging purposes. Allows enabling various sanitizers to help detect program issues.&lt;br /&gt;
: See GCC manual's [https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html Program Instrumentation Options] chapter for more information.&lt;br /&gt;
&lt;br /&gt;
; WITH_SYSTEM_KLT&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
: Build using system KLT library when ON, otherwise use KLT files bundled with RawTherapee.&lt;br /&gt;
: The Kanade–Lucas–Tomasi (KLT) feature tracker is used by the [[Lens/Geometry#Distortion_Correction|Auto Distortion Correction]] tool.&lt;br /&gt;
&lt;br /&gt;
; WITH_BENCHMARK&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
: Build with timing functions enabled to benchmark performance.&lt;br /&gt;
&lt;br /&gt;
; ENABLE_TCMALLOC&lt;br /&gt;
: &amp;lt;code&amp;gt;ON&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;OFF&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
: In some cases the operating system has trouble handling memory allocation and deallocation required by RawTherapee (see [https://github.com/Beep6581/RawTherapee/issues/5459 here] for more information). Linking against [https://gperftools.github.io/gperftools/tcmalloc.html TCMalloc] may alleviate these problems. This library may not be available on all platforms or distributions.&lt;br /&gt;
&lt;br /&gt;
===== Make =====&lt;br /&gt;
&lt;br /&gt;
Find out how many threads your CPU supports. This only influences the compilation speed, it has no influence over how fast the compiled RawTherapee build runs. To find out how many threads your CPU supports, run this in a terminal:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;nproc --all&amp;lt;/pre&amp;gt;&lt;br /&gt;
It will return a number. Use this number for the &amp;lt;code&amp;gt;--jobs&amp;lt;/code&amp;gt; parameter below.&lt;br /&gt;
&lt;br /&gt;
Compile:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;cd ~/programs/code-rawtherapee&lt;br /&gt;
mkdir build&lt;br /&gt;
cd build&lt;br /&gt;
&lt;br /&gt;
cmake \&lt;br /&gt;
    -DCMAKE_BUILD_TYPE=&amp;quot;release&amp;quot;  \&lt;br /&gt;
    -DCACHE_NAME_SUFFIX=&amp;quot;5-dev&amp;quot; \&lt;br /&gt;
    -DPROC_TARGET_NUMBER=&amp;quot;2&amp;quot; \&lt;br /&gt;
    -DBUILD_BUNDLE=&amp;quot;ON&amp;quot; \&lt;br /&gt;
    -DBUNDLE_BASE_INSTALL_DIR=&amp;quot;$HOME/programs/rawtherapee&amp;quot; \&lt;br /&gt;
    -DOPTION_OMP=&amp;quot;ON&amp;quot; \&lt;br /&gt;
    -DWITH_LTO=&amp;quot;OFF&amp;quot; \&lt;br /&gt;
    -DWITH_PROF=&amp;quot;OFF&amp;quot; \&lt;br /&gt;
    -DWITH_SAN=&amp;quot;OFF&amp;quot; \&lt;br /&gt;
    -DWITH_SYSTEM_KLT=&amp;quot;OFF&amp;quot; \&lt;br /&gt;
    ..&lt;br /&gt;
&lt;br /&gt;
make --jobs=4&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Run RawTherapee ====&lt;br /&gt;
&lt;br /&gt;
To run RawTherapee:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;~/programs/rawtherapee/rawtherapee&amp;lt;/pre&amp;gt;&lt;br /&gt;
Or to run the CLI version:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;~/programs/rawtherapee/rawtherapee-cli&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The source code repository is in &amp;lt;code&amp;gt;~/programs/code-rawtherapee&amp;lt;/code&amp;gt; and the compiled program is in &amp;lt;code&amp;gt;~/programs/rawtherapee&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can safely delete &amp;lt;code&amp;gt;~/programs/code-rawtherapee&amp;lt;/code&amp;gt; if you so wish. The compiled program will still work, but then you will have to redo all the above steps if you want to update. Rather, leave the repository intact so that you can do the next step in a week or a month's time when you want to update.&lt;br /&gt;
&lt;br /&gt;
==== Update RawTherapee ====&lt;br /&gt;
&lt;br /&gt;
Every time you want to update RawTherapee to the latest code available, just do the following:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;cd ~/programs/code-rawtherapee&lt;br /&gt;
git pull&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then repeat the [[#Make|Make]] step above.&lt;br /&gt;
&lt;br /&gt;
When updating, you can re-use the &amp;lt;code&amp;gt;build&amp;lt;/code&amp;gt; folder from last time to avoid having to recompile things which have not changed, to make the whole process faster. CMake should automatically detect changes. However, there are situations when compilation may fail when re-using an old &amp;lt;code&amp;gt;build&amp;lt;/code&amp;gt; folder - typically that might happen when hopping between very different branches. If that happens, just delete the &amp;lt;code&amp;gt;build&amp;lt;/code&amp;gt; folder, then proceed with the steps in the &amp;quot;Make&amp;quot; section.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Local_Contrast&amp;diff=8580</id>
		<title>Local Contrast</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Local_Contrast&amp;diff=8580"/>
		<updated>2021-06-19T07:21:14Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Added information about the position in the pipeline&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Local Contrast&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Local Contrast tool adds local contrast to an image by applying an unsharp mask with a large blur radius. It it an easy way to give an image a little more 'punch'. In effect, the image is blended with a blurred version of itself, amplifying the local tones (highlights get lighter, shadows get darker), thus creating more contrast. The contrast can be tuned by several parameters explained below.&lt;br /&gt;
&lt;br /&gt;
This tool was first implemented by [http://gmic.eu/ G'MIC] and then ported to RawTherapee. Its effect is applied in L*a*b* space and only on the lightness channel. Its position in the [http://rawpedia.rawtherapee.com/Toolchain_Pipeline processing pipeline] is after the Shadows / Highlight tool and before all other tools that operate in L*a*b* space.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;img-comp-wrapper&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;thumbinner thumbcompare tnone&amp;quot; style=&amp;quot;width: 500px&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;imgcomp img1='LocalContrast-Off.jpg' img2='LocalContrast-On.jpg'  width=500 /&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;thumbcaption&amp;quot;&amp;gt;&lt;br /&gt;
'''Left side:''' original image&amp;lt;br&amp;gt;&lt;br /&gt;
'''Right side:''' image with local contrast applied (Radius = 100, Amount = 0.5)&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
* '''Radius''' determines the extent of the local contrast (i.e. the radius of the blurring). Higher values give a smoother, but stronger contrast. Lower values give a more localized, less pronounced contrast.&lt;br /&gt;
* '''Amount''' determines the overall strength of the effect. Higher values amplify the differences between the original image and the blurred image, thereby increasing contrast.&lt;br /&gt;
* '''Darkness level''' modifies only those areas of the image that were darkened with respect to the original. Higher values amplify the change (making darker parts even darker), lower values diminish the change. N.B. A value of 0 means the local contrast is only modified by making the image lighter.&lt;br /&gt;
* '''Lightness level''' works similarly, but only on areas that were lightened.&lt;br /&gt;
&lt;br /&gt;
Note that setting both the &amp;quot;Darkness level&amp;quot; and &amp;quot;Lightness level&amp;quot; to 0 effectively disables the tool.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Local_Contrast&amp;diff=8579</id>
		<title>Local Contrast</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Local_Contrast&amp;diff=8579"/>
		<updated>2021-06-19T07:17:05Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Preliminary text&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Local Contrast&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Local Contrast tool adds local contrast to an image by applying an unsharp mask with a large blur radius. It it an easy way to give an image a little more 'punch'. In effect, the image is blended with a blurred version of itself, amplifying the local tones (highlights get lighter, shadows get darker), thus creating more contrast. The contrast can be tuned by several parameters explained below.&lt;br /&gt;
&lt;br /&gt;
This tool was first implemented by [http://gmic.eu/ G'MIC] and then ported to RawTherapee. Its effect is applied in L*a*b*-space and only on the lightness channel.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;img-comp-wrapper&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;thumbinner thumbcompare tnone&amp;quot; style=&amp;quot;width: 500px&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;imgcomp img1='LocalContrast-Off.jpg' img2='LocalContrast-On.jpg'  width=500 /&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;thumbcaption&amp;quot;&amp;gt;&lt;br /&gt;
'''Left side:''' original image&amp;lt;br&amp;gt;&lt;br /&gt;
'''Right side:''' image with local contrast applied (Radius = 100, Amount = 0.5)&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
* '''Radius''' determines the extent of the local contrast (i.e. the radius of the blurring). Higher values give a smoother, but stronger contrast. Lower values give a more localized, less pronounced contrast.&lt;br /&gt;
* '''Amount''' determines the overall strength of the effect. Higher values amplify the differences between the original image and the blurred image, thereby increasing contrast.&lt;br /&gt;
* '''Darkness level''' modifies only those areas of the image that were darkened with respect to the original. Higher values amplify the change (making darker parts even darker), lower values diminish the change. N.B. A value of 0 means the local contrast is only modified by making the image lighter.&lt;br /&gt;
* '''Lightness level''' works similarly, but only on areas that were lightened.&lt;br /&gt;
&lt;br /&gt;
Note that setting both the &amp;quot;Darkness level&amp;quot; and &amp;quot;Lightness level&amp;quot; to 0 effectively disables the tool.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=File:LocalContrast-Off.jpg&amp;diff=8578</id>
		<title>File:LocalContrast-Off.jpg</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=File:LocalContrast-Off.jpg&amp;diff=8578"/>
		<updated>2021-06-19T07:15:09Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Licensing ==&lt;br /&gt;
{{cc-by-sa-4.0}}&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=File:LocalContrast-On.jpg&amp;diff=8577</id>
		<title>File:LocalContrast-On.jpg</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=File:LocalContrast-On.jpg&amp;diff=8577"/>
		<updated>2021-06-19T07:14:47Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Licensing ==&lt;br /&gt;
{{cc-by-sa-4.0}}&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Dynamic_Range_Compression&amp;diff=8575</id>
		<title>Dynamic Range Compression</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Dynamic_Range_Compression&amp;diff=8575"/>
		<updated>2021-06-17T08:48:19Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: List and italics&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Dynamic Range Compression&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Dynamic range is the ratio of the largest to the smallest value of a measured signal. In photography it commonly refers to the ratio of the brightest element of a scene to the darkest. An outdoor scene on a very foggy day commonly has very little difference between the brightest and darkest elements, which is known as a ''low dynamic range'' scene. In contrast, an indoor scene with a visible sunny sky through a window is known as a ''high dynamic range'' scene.&lt;br /&gt;
&lt;br /&gt;
The dynamic range of a scene can easily exceed the dynamic range of the &amp;quot;sensor&amp;quot; that captures the scene. The [https://en.wikipedia.org/wiki/Dynamic_range#Human_perception human visual system] has an adaptive and wide dynamic range (you can see faint stars at night but also bright skies during day). This is very different from the fixed, lower dynamic range of your camera sensor and the (usually even lower) dynamic range of your monitor. As such, photography and image processing needs to deal with mapping high dynamic ranges to lower ones.&lt;br /&gt;
&lt;br /&gt;
In general there are two ways to handle dynamic range changes: either discard a portion of the data outside the destination range (e.g. clipping highlights), or compress the data so that it fits the destination range. The Dynamic Range Compression tool uses the latter approach based on the [http://www.cs.huji.ac.il/~danix/hdr/ Gradient Domain High Dynamic Range Compression] algorithm developed by R. Fattal and coworkers. This algorithm is often simply referred to as &amp;quot;Fattal&amp;quot;, e.g. in Luminance HDR.&lt;br /&gt;
&lt;br /&gt;
The algorithm uses two parameters to control the compression (&amp;amp;alpha; and &amp;amp;beta;) which can be tuned by the &amp;quot;detail&amp;quot; and &amp;quot;amount&amp;quot; sliders of the tool, respectively. The tool operates in RGB space and is applied right after [[Noise_Reduction|Noise Reduction]] and [[Haze_Removal|Haze Removal]], but before other tone curve adjustments such as the [[Exposure]] controls.&lt;br /&gt;
&lt;br /&gt;
N.B. There are alternative ways of compressing the dynamic range using other tools. The simplest would be a negative contrast value in the [[Exposure]] tool to reduce (or rather to redistribute) the dynamic range, however the effect would most likely appear flat and unappealing. A curve gives more control over the process, but may need a lot of fine-tuning.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
Use this tool when the dynamic range of the photographed scene is too high to be reproduced on your monitor in an aesthetically pleasing way, that is when you find that the difference between the dark tones and the bright tones (the contrast) is so strong that there is a lack of detail in those areas.&lt;br /&gt;
&lt;br /&gt;
'''Note for panorama's''' The effects of this tool depend on the dynamic range (and histogram) of the image being edited. If you are processing a series of images intended for stitching, where each image contains a section of a scene adjacent to the one before it, even if you were to apply identical parameters to these images using this tool, the end results would not be consistent - there would be sudden changes in brightness between adjacent images. Do not use this Dynamic Range Compression tool on the source images. If you need to compress the dynamic range across a series of images in a consistent way, use a curve instead. You can, however, use this tool on the stitched panorama.&lt;br /&gt;
&lt;br /&gt;
== Interface ==&lt;br /&gt;
&lt;br /&gt;
The tool provides three sliders.&lt;br /&gt;
* ''Amount'' sets the strength of the compression. Higher values lead to a narrower dynamic range (you can easily see the effect by observing the histogram).&lt;br /&gt;
* ''Detail'' sets how much local contrast is preserved. Positive values reduce the compression in favor of more contrast, negative values reduce the contrast.&lt;br /&gt;
* ''Anchor'' biases the compression towards the shadows or highlights, effectively functioning as an exposure compensation.&lt;br /&gt;
&lt;br /&gt;
The example below shows the typical effects of each slider (click to enlarge).&lt;br /&gt;
&lt;br /&gt;
[[File:DRC-Example.jpg]]&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Dynamic_Range_Compression&amp;diff=8574</id>
		<title>Dynamic Range Compression</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Dynamic_Range_Compression&amp;diff=8574"/>
		<updated>2021-06-17T08:46:54Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: /* Interface */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Dynamic Range Compression&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Dynamic range is the ratio of the largest to the smallest value of a measured signal. In photography it commonly refers to the ratio of the brightest element of a scene to the darkest. An outdoor scene on a very foggy day commonly has very little difference between the brightest and darkest elements, which is known as a ''low dynamic range'' scene. In contrast, an indoor scene with a visible sunny sky through a window is known as a ''high dynamic range'' scene.&lt;br /&gt;
&lt;br /&gt;
The dynamic range of a scene can easily exceed the dynamic range of the &amp;quot;sensor&amp;quot; that captures the scene. The [https://en.wikipedia.org/wiki/Dynamic_range#Human_perception human visual system] has an adaptive and wide dynamic range (you can see faint stars at night but also bright skies during day). This is very different from the fixed, lower dynamic range of your camera sensor and the (usually even lower) dynamic range of your monitor. As such, photography and image processing needs to deal with mapping high dynamic ranges to lower ones.&lt;br /&gt;
&lt;br /&gt;
In general there are two ways to handle dynamic range changes: either discard a portion of the data outside the destination range (e.g. clipping highlights), or compress the data so that it fits the destination range. The Dynamic Range Compression tool uses the latter approach based on the [http://www.cs.huji.ac.il/~danix/hdr/ Gradient Domain High Dynamic Range Compression] algorithm developed by R. Fattal and coworkers. This algorithm is often simply referred to as &amp;quot;Fattal&amp;quot;, e.g. in Luminance HDR.&lt;br /&gt;
&lt;br /&gt;
The algorithm uses two parameters to control the compression (&amp;amp;alpha; and &amp;amp;beta;) which can be tuned by the &amp;quot;detail&amp;quot; and &amp;quot;amount&amp;quot; sliders of the tool, respectively. The tool operates in RGB space and is applied right after [[Noise_Reduction|Noise Reduction]] and [[Haze_Removal|Haze Removal]], but before other tone curve adjustments such as the [[Exposure]] controls.&lt;br /&gt;
&lt;br /&gt;
N.B. There are alternative ways of compressing the dynamic range using other tools. The simplest would be a negative contrast value in the [[Exposure]] tool to reduce (or rather to redistribute) the dynamic range, however the effect would most likely appear flat and unappealing. A curve gives more control over the process, but may need a lot of fine-tuning.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
Use this tool when the dynamic range of the photographed scene is too high to be reproduced on your monitor in an aesthetically pleasing way, that is when you find that the difference between the dark tones and the bright tones (the contrast) is so strong that there is a lack of detail in those areas.&lt;br /&gt;
&lt;br /&gt;
'''Note for panorama's''' The effects of this tool depend on the dynamic range (and histogram) of the image being edited. If you are processing a series of images intended for stitching, where each image contains a section of a scene adjacent to the one before it, even if you were to apply identical parameters to these images using this tool, the end results would not be consistent - there would be sudden changes in brightness between adjacent images. Do not use this Dynamic Range Compression tool on the source images. If you need to compress the dynamic range across a series of images in a consistent way, use a curve instead. You can, however, use this tool on the stitched panorama.&lt;br /&gt;
&lt;br /&gt;
== Interface ==&lt;br /&gt;
&lt;br /&gt;
The tool provides three sliders. The '''Amount''' sets the strength of the compression. Higher values lead to a narrower dynamic range (you can easily see the effect by observing the histogram). The '''Detail''' sets how much local contrast is preserved. Positive values reduce the compression in favor of more contrast, negative values reduce the contrast. The '''Anchor''' biases the compression towards the shadows or highlights, effectively functioning as an exposure compensation.&lt;br /&gt;
&lt;br /&gt;
The example below shows the typical effects of each slider (click to enlarge).&lt;br /&gt;
&lt;br /&gt;
[[File:DRC-Example.jpg]]&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Dynamic_Range_Compression&amp;diff=8573</id>
		<title>Dynamic Range Compression</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Dynamic_Range_Compression&amp;diff=8573"/>
		<updated>2021-06-17T08:45:18Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Update text and include sample image&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Dynamic Range Compression&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Dynamic range is the ratio of the largest to the smallest value of a measured signal. In photography it commonly refers to the ratio of the brightest element of a scene to the darkest. An outdoor scene on a very foggy day commonly has very little difference between the brightest and darkest elements, which is known as a ''low dynamic range'' scene. In contrast, an indoor scene with a visible sunny sky through a window is known as a ''high dynamic range'' scene.&lt;br /&gt;
&lt;br /&gt;
The dynamic range of a scene can easily exceed the dynamic range of the &amp;quot;sensor&amp;quot; that captures the scene. The [https://en.wikipedia.org/wiki/Dynamic_range#Human_perception human visual system] has an adaptive and wide dynamic range (you can see faint stars at night but also bright skies during day). This is very different from the fixed, lower dynamic range of your camera sensor and the (usually even lower) dynamic range of your monitor. As such, photography and image processing needs to deal with mapping high dynamic ranges to lower ones.&lt;br /&gt;
&lt;br /&gt;
In general there are two ways to handle dynamic range changes: either discard a portion of the data outside the destination range (e.g. clipping highlights), or compress the data so that it fits the destination range. The Dynamic Range Compression tool uses the latter approach based on the [http://www.cs.huji.ac.il/~danix/hdr/ Gradient Domain High Dynamic Range Compression] algorithm developed by R. Fattal and coworkers. This algorithm is often simply referred to as &amp;quot;Fattal&amp;quot;, e.g. in Luminance HDR.&lt;br /&gt;
&lt;br /&gt;
The algorithm uses two parameters to control the compression (&amp;amp;alpha; and &amp;amp;beta;) which can be tuned by the &amp;quot;detail&amp;quot; and &amp;quot;amount&amp;quot; sliders of the tool, respectively. The tool operates in RGB space and is applied right after [[Noise_Reduction|Noise Reduction]] and [[Haze_Removal|Haze Removal]], but before other tone curve adjustments such as the [[Exposure]] controls.&lt;br /&gt;
&lt;br /&gt;
N.B. There are alternative ways of compressing the dynamic range using other tools. The simplest would be a negative contrast value in the [[Exposure]] tool to reduce (or rather to redistribute) the dynamic range, however the effect would most likely appear flat and unappealing. A curve gives more control over the process, but may need a lot of fine-tuning.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
Use this tool when the dynamic range of the photographed scene is too high to be reproduced on your monitor in an aesthetically pleasing way, that is when you find that the difference between the dark tones and the bright tones (the contrast) is so strong that there is a lack of detail in those areas.&lt;br /&gt;
&lt;br /&gt;
'''Note for panorama's''' The effects of this tool depend on the dynamic range (and histogram) of the image being edited. If you are processing a series of images intended for stitching, where each image contains a section of a scene adjacent to the one before it, even if you were to apply identical parameters to these images using this tool, the end results would not be consistent - there would be sudden changes in brightness between adjacent images. Do not use this Dynamic Range Compression tool on the source images. If you need to compress the dynamic range across a series of images in a consistent way, use a curve instead. You can, however, use this tool on the stitched panorama.&lt;br /&gt;
&lt;br /&gt;
== Interface ==&lt;br /&gt;
&lt;br /&gt;
The tool provides three sliders. The '''Amount''' sets the strength of the compression. Higher values lead to a narrower dynamic range (you can easily see the effect by observing the histogram). The '''Detail''' sets how much local contrast is preserved. Positive values reduce the compression in favor of more contrast, negative values reduce the contrast. The '''Anchor''' biases the compression towards the shadows or highlights, effectively functioning as an exposure compensation.&lt;br /&gt;
&lt;br /&gt;
The example below shows the typical effects of each slider.&lt;br /&gt;
&lt;br /&gt;
[[File:DRC-Example.jpg]]&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=File:DRC-Example.jpg&amp;diff=8572</id>
		<title>File:DRC-Example.jpg</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=File:DRC-Example.jpg&amp;diff=8572"/>
		<updated>2021-06-17T08:40:51Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Example of the effects of the Dynamic Range Compression tool.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Example of the effects of the Dynamic Range Compression tool.&lt;br /&gt;
== Licensing ==&lt;br /&gt;
{{PD}}&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Dynamic_Range_Compression&amp;diff=8571</id>
		<title>Dynamic Range Compression</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Dynamic_Range_Compression&amp;diff=8571"/>
		<updated>2021-06-17T08:03:43Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: /* Usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Dynamic Range Compression&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Dynamic range is the ratio of the largest to the smallest value of a measured signal. In photography it commonly refers to the ratio of the brightest element of a scene to the darkest. An outdoor scene on a very foggy day commonly has very little difference between the brightest and darkest elements, which is known as a ''low dynamic range'' scene. In contrast, an indoor scene with a visible sunny sky through a window is known as a ''high dynamic range'' scene.&lt;br /&gt;
&lt;br /&gt;
The dynamic range of a scene can easily exceed the dynamic range of the &amp;quot;sensor&amp;quot; that captures the scene. The [https://en.wikipedia.org/wiki/Dynamic_range#Human_perception human visual system] has an adaptive and wide dynamic range (you can see faint stars at night but also bright skies during day). This is very different from the fixed, lower dynamic range of your camera sensor and the (usually even lower) dynamic range of your monitor. As such, photography and image processing needs to deal with mapping high dynamic ranges to lower ones.&lt;br /&gt;
&lt;br /&gt;
In general there are two ways to handle dynamic range changes: either discard a portion of the data outside the destination range (e.g. clipping highlights), or compress the data so that it fits the destination range. The Dynamic Range Compression tool uses the latter approach based on the [http://www.cs.huji.ac.il/~danix/hdr/ Gradient Domain High Dynamic Range Compression] algorithm developed by R. Fattal and coworkers. This algorithm is often simply referred to as &amp;quot;Fattal&amp;quot;, e.g. in Luminance HDR.&lt;br /&gt;
&lt;br /&gt;
The algorithm uses two parameters to control the compression (&amp;amp;alpha; and &amp;amp;beta;) which can be tuned by the &amp;quot;detail&amp;quot; and &amp;quot;amount&amp;quot; sliders of the tool, respectively. The tool operates in RGB space and is applied right after [[Noise_Reduction|Noise Reduction]] and [[Haze_Removal|Haze Removal]], but before other tone curve adjustments such as the [[Exposure]] controls.&lt;br /&gt;
&lt;br /&gt;
N.B. There are alternative ways of compressing the dynamic range using other tools. The simplest would be a negative contrast value in the [[Exposure]] tool to reduce (or rather to redistribute) the dynamic range, however the effect would most likely appear flat and unappealing. A curve gives more control over the process, but may need a lot of fine-tuning.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
Use this tool when the dynamic range of the photographed scene is too high to be reproduced on your monitor in an aesthetically pleasing way, that is when you find that the difference between the dark tones and the bright tones (the contrast) is so strong that there is a lack of detail in those areas.&lt;br /&gt;
&lt;br /&gt;
'''Note for panorama's''' The effects of this tool depend on the dynamic range (and histogram) of the image being edited. If you are processing a series of images intended for stitching, where each image contains a section of a scene adjacent to the one before it, even if you were to apply identical parameters to these images using this tool, the end results would not be consistent - there would be sudden changes in brightness between adjacent images. Do not use this Dynamic Range Compression tool on the source images. If you need to compress the dynamic range across a series of images in a consistent way, use a curve instead. You can, however, use this tool on the stitched panorama.&lt;br /&gt;
&lt;br /&gt;
== Interface ==&lt;br /&gt;
&lt;br /&gt;
=== Amount ===&lt;br /&gt;
&lt;br /&gt;
Sets the amount of compression, where higher values lead to more dynamic range compression.&lt;br /&gt;
&lt;br /&gt;
=== Detail ===&lt;br /&gt;
&lt;br /&gt;
The amount of detail that is preserved can be tuned with this parameter. Negative values smooth the image by reducing local contrast, while positive values increase it.&lt;br /&gt;
&lt;br /&gt;
=== Anchor ===&lt;br /&gt;
&lt;br /&gt;
This parameter biases the compression towards the shadows or the highlights. It functions in effect as an exposure compensation.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Dynamic_Range_Compression&amp;diff=8570</id>
		<title>Dynamic Range Compression</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Dynamic_Range_Compression&amp;diff=8570"/>
		<updated>2021-06-17T08:02:46Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Rewritten more compactly&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Dynamic Range Compression&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Dynamic range is the ratio of the largest to the smallest value of a measured signal. In photography it commonly refers to the ratio of the brightest element of a scene to the darkest. An outdoor scene on a very foggy day commonly has very little difference between the brightest and darkest elements, which is known as a ''low dynamic range'' scene. In contrast, an indoor scene with a visible sunny sky through a window is known as a ''high dynamic range'' scene.&lt;br /&gt;
&lt;br /&gt;
The dynamic range of a scene can easily exceed the dynamic range of the &amp;quot;sensor&amp;quot; that captures the scene. The [https://en.wikipedia.org/wiki/Dynamic_range#Human_perception human visual system] has an adaptive and wide dynamic range (you can see faint stars at night but also bright skies during day). This is very different from the fixed, lower dynamic range of your camera sensor and the (usually even lower) dynamic range of your monitor. As such, photography and image processing needs to deal with mapping high dynamic ranges to lower ones.&lt;br /&gt;
&lt;br /&gt;
In general there are two ways to handle dynamic range changes: either discard a portion of the data outside the destination range (e.g. clipping highlights), or compress the data so that it fits the destination range. The Dynamic Range Compression tool uses the latter approach based on the [http://www.cs.huji.ac.il/~danix/hdr/ Gradient Domain High Dynamic Range Compression] algorithm developed by R. Fattal and coworkers. This algorithm is often simply referred to as &amp;quot;Fattal&amp;quot;, e.g. in Luminance HDR.&lt;br /&gt;
&lt;br /&gt;
The algorithm uses two parameters to control the compression (&amp;amp;alpha; and &amp;amp;beta;) which can be tuned by the &amp;quot;detail&amp;quot; and &amp;quot;amount&amp;quot; sliders of the tool, respectively. The tool operates in RGB space and is applied right after [[Noise_Reduction|Noise Reduction]] and [[Haze_Removal|Haze Removal]], but before other tone curve adjustments such as the [[Exposure]] controls.&lt;br /&gt;
&lt;br /&gt;
N.B. There are alternative ways of compressing the dynamic range using other tools. The simplest would be a negative contrast value in the [[Exposure]] tool to reduce (or rather to redistribute) the dynamic range, however the effect would most likely appear flat and unappealing. A curve gives more control over the process, but may need a lot of fine-tuning.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
Use this tool when the dynamic range of the photographed scene is too high to be reproduced on your monitor in an aesthetically pleasing way, that is when you find that the difference between the dark tones and the bright tones (the contrast) is so strong that there is a lack of detail in those areas.&lt;br /&gt;
&lt;br /&gt;
Heads-up panorama stitchers! The effects of this tool depend on the dynamic range (and histogram) of the image being edited. If you are processing a series of images intended for stitching, where each image contains a section of a scene adjacent to the one before it, even if you were to apply identical parameters to these images using this tool, the end results would not be consistent - there would be sudden changes in brightness between adjacent images. Do not use this Dynamic Range Compression tool on the source images. If you need to compress the dynamic range across a series of images in a consistent way, use a curve instead. You can, however, use this tool on the stitched panorama.&lt;br /&gt;
&lt;br /&gt;
== Interface ==&lt;br /&gt;
&lt;br /&gt;
=== Amount ===&lt;br /&gt;
&lt;br /&gt;
Sets the amount of compression, where higher values lead to more dynamic range compression.&lt;br /&gt;
&lt;br /&gt;
=== Detail ===&lt;br /&gt;
&lt;br /&gt;
The amount of detail that is preserved can be tuned with this parameter. Negative values smooth the image by reducing local contrast, while positive values increase it.&lt;br /&gt;
&lt;br /&gt;
=== Anchor ===&lt;br /&gt;
&lt;br /&gt;
This parameter biases the compression towards the shadows or the highlights. It functions in effect as an exposure compensation.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Spot_Removal&amp;diff=8569</id>
		<title>Spot Removal</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Spot_Removal&amp;diff=8569"/>
		<updated>2021-06-17T07:18:49Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Added title&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Spot Removal&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The spot removal tool can be used to mask portions of an image (e.g. blemishes, sensor dust) with another part of the same image. You can even use it to remove entire objects from an image, like in the example below.&lt;br /&gt;
&lt;br /&gt;
[[File:SpotRemoval-Example.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Activate spot editing mode ===&lt;br /&gt;
&lt;br /&gt;
In order to add, remove or change spots, the spot editing mode needs to be active. Toggle this mode using the [[File:Edit-point.png]] button.&lt;br /&gt;
&lt;br /&gt;
=== Adding spots ===&lt;br /&gt;
&lt;br /&gt;
Ctrl-click on the location that you want to mask (&amp;quot;destination&amp;quot;, solid lines) and drag the mouse to set the replacement location (&amp;quot;source&amp;quot;, dotted lines). The area under the source will replace the area of the destination. A line connects the two areas, which helps identification if you add multiple spots. You can move both areas after placement by clicking within the inner circle and dragging. The thicker inner circle determines the size of the replacement area, the outer line determines a feather that gradually blends with the surrounding image. Both circles can be adjusted in size after the spot has been placed (within a certain size range).&lt;br /&gt;
&lt;br /&gt;
=== Removing spots ===&lt;br /&gt;
&lt;br /&gt;
Right click on any part of the spot to remove it.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Spot_Removal&amp;diff=8568</id>
		<title>Spot Removal</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Spot_Removal&amp;diff=8568"/>
		<updated>2021-06-17T07:17:55Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Preliminary text&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The spot removal tool can be used to mask portions of an image (e.g. blemishes, sensor dust) with another part of the same image. You can even use it to remove entire objects from an image, like in the example below.&lt;br /&gt;
&lt;br /&gt;
[[File:SpotRemoval-Example.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Activate spot editing mode ===&lt;br /&gt;
&lt;br /&gt;
In order to add, remove or change spots, the spot editing mode needs to be active. Toggle this mode using the [[File:Edit-point.png]] button.&lt;br /&gt;
&lt;br /&gt;
=== Adding spots ===&lt;br /&gt;
&lt;br /&gt;
Ctrl-click on the location that you want to mask (&amp;quot;destination&amp;quot;, solid lines) and drag the mouse to set the replacement location (&amp;quot;source&amp;quot;, dotted lines). The area under the source will replace the area of the destination. A line connects the two areas, which helps identification if you add multiple spots. You can move both areas after placement by clicking within the inner circle and dragging. The thicker inner circle determines the size of the replacement area, the outer line determines a feather that gradually blends with the surrounding image. Both circles can be adjusted in size after the spot has been placed (within a certain size range).&lt;br /&gt;
&lt;br /&gt;
=== Removing spots ===&lt;br /&gt;
&lt;br /&gt;
Right click on any part of the spot to remove it.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=File:SpotRemoval-Example.jpg&amp;diff=8567</id>
		<title>File:SpotRemoval-Example.jpg</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=File:SpotRemoval-Example.jpg&amp;diff=8567"/>
		<updated>2021-06-17T06:59:13Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Thanatomanic uploaded a new version of File:SpotRemoval-Example.jpg&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Spot removal can even remove entire objects from an image&lt;br /&gt;
== Licensing ==&lt;br /&gt;
{{PD}}&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=File:SpotRemoval-Example.jpg&amp;diff=8566</id>
		<title>File:SpotRemoval-Example.jpg</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=File:SpotRemoval-Example.jpg&amp;diff=8566"/>
		<updated>2021-06-17T06:56:24Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Spot removal can even remove entire objects from an image&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Spot removal can even remove entire objects from an image&lt;br /&gt;
== Licensing ==&lt;br /&gt;
{{PD}}&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Editor_Tab_Modes&amp;diff=8565</id>
		<title>Editor Tab Modes</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Editor_Tab_Modes&amp;diff=8565"/>
		<updated>2021-06-17T06:44:38Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Changed redirect target from The Image Editor Tab#Editor to Editor&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Editor]].&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Editor_Tab_Modes&amp;diff=8564</id>
		<title>Editor Tab Modes</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Editor_Tab_Modes&amp;diff=8564"/>
		<updated>2021-06-17T06:44:22Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Changed redirect target from The Image Editor Tab#Editor Tab Modes to The Image Editor Tab#Editor&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[The_Image_Editor_Tab#Editor]].&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Wavelet&amp;diff=8563</id>
		<title>Wavelet</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Wavelet&amp;diff=8563"/>
		<updated>2021-06-17T06:43:29Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Changed redirect target from Wavelets to Wavelet Levels&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Wavelet Levels]]&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Main_Page&amp;diff=8562</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Main_Page&amp;diff=8562"/>
		<updated>2021-06-17T06:40:30Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: /* Local Adjustements Tab */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;main-page-title&amp;quot;&amp;gt;RawPedia. The encyclopedia of RawTherapee, raw shooting and everything raw&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:08_rt57_mushroom_blades_rawpedia.png|600px|right|link=]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;greetings&amp;quot;&amp;gt;&lt;br /&gt;
Welcome to '''RawTherapee's''' documentation!&lt;br /&gt;
&lt;br /&gt;
If you're a new user, don't miss the [[Getting Started]] page to quickly learn your way around this awesome raw image processing program.&lt;br /&gt;
&lt;br /&gt;
If you're an experienced user, here you have an index of all the topics covered.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=langsbox-wrapper&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row small-uncollapse large-collapse langsbox&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;span class=&amp;quot;langsavail&amp;quot;&amp;gt;In other languages&amp;lt;/span&amp;gt;&lt;br /&gt;
    &amp;lt;ul class=&amp;quot;small-block-grid-2 medium-block-grid-4 large-block-grid-7 columns flagsbox&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:braz.png|90x60px|frameless|link=Main_Page/pt|Brasileiro]]&amp;lt;br&amp;gt;[[Main_Page/pt|Brasileiro]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:ct.png|90x60px|frameless|link=Main_Page/ca|Català]]&amp;lt;br&amp;gt;[[Main_Page/ca|Català]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:deu.png|90x60px|frameless|link=Main_Page/de|Deutsch]]&amp;lt;br&amp;gt;[[Main_Page/de|Deutsch]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:esp.png|90x60px|frameless|link=Main_Page/es|Español]]&amp;lt;br&amp;gt;[[Main_Page/es|Español]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:frc.png|90x60px|frameless|link=Main_Page/fr|Française]]&amp;lt;br&amp;gt;[[Main_Page/fr|Français]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:ita.png|90x60px|frameless|link=Main_Page/it|Italiano]]&amp;lt;br&amp;gt;[[Main_Page/it|Italiano]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:jap.png|90x60px|frameless|link=Main_Page/jp|日本]]&amp;lt;br&amp;gt;[[Main_Page/jp|日本語]]&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== RawTherapee ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;container&amp;quot;&amp;gt;&lt;br /&gt;
=== General Information ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP3columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[Getting Started]]&lt;br /&gt;
* [[Features]]&lt;br /&gt;
* [[Download]]&lt;br /&gt;
* [[The Floating Point Engine]]&lt;br /&gt;
* [[Bit Depth]]&lt;br /&gt;
* [[RGB and Lab]]&lt;br /&gt;
* [[About Noise Reduction]]&lt;br /&gt;
* [[File Browser|The File Browser]]&lt;br /&gt;
* [[Queue|The Queue]]&lt;br /&gt;
* [[Editor|The Editor]]&lt;br /&gt;
* [[Batch Adjustments - Sync]]&lt;br /&gt;
* [[Saving Images]]&lt;br /&gt;
* [[Edit Current Image in External Editor]]&lt;br /&gt;
* [[Adding Support for New Raw Formats]]&lt;br /&gt;
* [[File Paths]]&lt;br /&gt;
* [[Preferences]]&lt;br /&gt;
* [[GIMP Plugin]]&lt;br /&gt;
* [[ICC Profile Creator]]&lt;br /&gt;
* [[Making a Portable Installation]]&lt;br /&gt;
* [[Command-Line Options]]&lt;br /&gt;
* [[Keyboard Shortcuts]]&lt;br /&gt;
* [[Toolchain Pipeline|Toolchain pipeline - Colorimetry]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;hr/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Processing Profiles ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP3columns&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
* [[Sidecar Files - Processing Profiles]]&lt;br /&gt;
* [[Creating processing profiles for general use]]&lt;br /&gt;
* [[Dynamic processing profiles]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
==== Processing Profile Scripts ====&lt;br /&gt;
* [[RTProfileSelector]]&lt;br /&gt;
* [[RTbatch]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
==== Bundled Processing Profiles ====&lt;br /&gt;
* [[Neutral]]&lt;br /&gt;
* [[Auto-Matched Curve]]&lt;br /&gt;
* [[Standard Film Curve]]&lt;br /&gt;
* [[Pop]]&lt;br /&gt;
* [[Unclipped]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;hr/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Tool Description ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[General Comments About Some Toolbox Widgets]]&lt;br /&gt;
* [[Favorites Tab]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP3columns&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
==== Exposure Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[Exposure]]&lt;br /&gt;
* [[Shadows/Highlights]]&lt;br /&gt;
* [[Tone Mapping]]&lt;br /&gt;
* [[Dynamic Range Compression]]&lt;br /&gt;
* [[Vignetting Filter]]&lt;br /&gt;
* [[Graduated Filter]]&lt;br /&gt;
* [[Lab Adjustments|L*a*b* Adjustments]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
==== Detail Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[Spot Removal]]&lt;br /&gt;
* [[Sharpening]]&lt;br /&gt;
* [[Local Contrast]]&lt;br /&gt;
* [[Edges and Microcontrast]]&lt;br /&gt;
* [[Impulse Noise Reduction]]&lt;br /&gt;
* [[Noise Reduction]]&lt;br /&gt;
* [[Defringe]]&lt;br /&gt;
* [[Contrast by Detail Levels]]&lt;br /&gt;
* [[Haze Removal]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Color Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[White Balance]]&lt;br /&gt;
* [[Vibrance]]&lt;br /&gt;
* [[Channel Mixer]]&lt;br /&gt;
* [[Black-and-White]]&lt;br /&gt;
* [[Black-and-White addon]]&lt;br /&gt;
* [[HSV Equalizer]]&lt;br /&gt;
* [[Film Simulation]]&lt;br /&gt;
* [[Film Negative]]&lt;br /&gt;
* [[Soft Light]]&lt;br /&gt;
* [[RGB Curves]]&lt;br /&gt;
* [[Color Toning]]&lt;br /&gt;
* [[Color Management]]&lt;br /&gt;
* [[Color Management addon | Color Management Supplement]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Advanced Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[Retinex]]&lt;br /&gt;
* [[CIECAM02|CIE Color Appearance Model 2002/16 - Cat02/Cat16 - Log encoding]]&lt;br /&gt;
* [[Wavelet Levels]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Local Tab====&lt;br /&gt;
* [[Local Adjustments]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Transform Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[Crop]]&lt;br /&gt;
* [[Resize]]&lt;br /&gt;
* [[Lens/Geometry]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
==== Raw Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[Sensor with Bayer/X-Trans Matrix]]&lt;br /&gt;
* [[Demosaicing]]&lt;br /&gt;
* [[Raw Black Points]]&lt;br /&gt;
* [[Preprocessing]]&lt;br /&gt;
* [[Chromatic Aberration Correction]]&lt;br /&gt;
* [[Raw White Points]]&lt;br /&gt;
* [[Preprocessing White Balance]]&lt;br /&gt;
* [[Dark-Frame]]&lt;br /&gt;
* [[Flat-Field]]&lt;br /&gt;
* [[Capture Sharpening]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Metadata Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[Metadata Copy Mode]]&lt;br /&gt;
* [[Exif Tab]]&lt;br /&gt;
* [[IPTC Tab]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;hr/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Interact ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[Forum]]&lt;br /&gt;
* [[IRC]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Compiling ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* In [[Linux]]&lt;br /&gt;
* In [[Windows]]&lt;br /&gt;
* In [[macOS]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[How to write useful bug reports]]&lt;br /&gt;
* [[How to fix crashes on startup]]&lt;br /&gt;
* [[Wayland]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Localization ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[Translating RawTherapee]]&lt;br /&gt;
* [[Translating RawPedia]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== RawPedia ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;container&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[Contributing]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== General Photography ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;container&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[How to convert raw formats to DNG]]&lt;br /&gt;
* [[How to create DCP color profiles]]&lt;br /&gt;
* [[How to create LCP profiles]]&lt;br /&gt;
* [[How to get LCP and DCP profiles]]&lt;br /&gt;
* [[How to extract and examine ICC profiles]]&lt;br /&gt;
* [[How to get Nikon ICM profiles]]&lt;br /&gt;
* [[Watermarking]]&lt;br /&gt;
* [[Image file formats and compression]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Main_Page&amp;diff=8561</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Main_Page&amp;diff=8561"/>
		<updated>2021-06-17T06:40:00Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Reorder two tabs&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;main-page-title&amp;quot;&amp;gt;RawPedia. The encyclopedia of RawTherapee, raw shooting and everything raw&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:08_rt57_mushroom_blades_rawpedia.png|600px|right|link=]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;greetings&amp;quot;&amp;gt;&lt;br /&gt;
Welcome to '''RawTherapee's''' documentation!&lt;br /&gt;
&lt;br /&gt;
If you're a new user, don't miss the [[Getting Started]] page to quickly learn your way around this awesome raw image processing program.&lt;br /&gt;
&lt;br /&gt;
If you're an experienced user, here you have an index of all the topics covered.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=langsbox-wrapper&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row small-uncollapse large-collapse langsbox&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;span class=&amp;quot;langsavail&amp;quot;&amp;gt;In other languages&amp;lt;/span&amp;gt;&lt;br /&gt;
    &amp;lt;ul class=&amp;quot;small-block-grid-2 medium-block-grid-4 large-block-grid-7 columns flagsbox&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:braz.png|90x60px|frameless|link=Main_Page/pt|Brasileiro]]&amp;lt;br&amp;gt;[[Main_Page/pt|Brasileiro]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:ct.png|90x60px|frameless|link=Main_Page/ca|Català]]&amp;lt;br&amp;gt;[[Main_Page/ca|Català]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:deu.png|90x60px|frameless|link=Main_Page/de|Deutsch]]&amp;lt;br&amp;gt;[[Main_Page/de|Deutsch]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:esp.png|90x60px|frameless|link=Main_Page/es|Español]]&amp;lt;br&amp;gt;[[Main_Page/es|Español]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:frc.png|90x60px|frameless|link=Main_Page/fr|Française]]&amp;lt;br&amp;gt;[[Main_Page/fr|Français]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:ita.png|90x60px|frameless|link=Main_Page/it|Italiano]]&amp;lt;br&amp;gt;[[Main_Page/it|Italiano]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:jap.png|90x60px|frameless|link=Main_Page/jp|日本]]&amp;lt;br&amp;gt;[[Main_Page/jp|日本語]]&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== RawTherapee ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;container&amp;quot;&amp;gt;&lt;br /&gt;
=== General Information ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP3columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[Getting Started]]&lt;br /&gt;
* [[Features]]&lt;br /&gt;
* [[Download]]&lt;br /&gt;
* [[The Floating Point Engine]]&lt;br /&gt;
* [[Bit Depth]]&lt;br /&gt;
* [[RGB and Lab]]&lt;br /&gt;
* [[About Noise Reduction]]&lt;br /&gt;
* [[File Browser|The File Browser]]&lt;br /&gt;
* [[Queue|The Queue]]&lt;br /&gt;
* [[Editor|The Editor]]&lt;br /&gt;
* [[Batch Adjustments - Sync]]&lt;br /&gt;
* [[Saving Images]]&lt;br /&gt;
* [[Edit Current Image in External Editor]]&lt;br /&gt;
* [[Adding Support for New Raw Formats]]&lt;br /&gt;
* [[File Paths]]&lt;br /&gt;
* [[Preferences]]&lt;br /&gt;
* [[GIMP Plugin]]&lt;br /&gt;
* [[ICC Profile Creator]]&lt;br /&gt;
* [[Making a Portable Installation]]&lt;br /&gt;
* [[Command-Line Options]]&lt;br /&gt;
* [[Keyboard Shortcuts]]&lt;br /&gt;
* [[Toolchain Pipeline|Toolchain pipeline - Colorimetry]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;hr/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Processing Profiles ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP3columns&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
* [[Sidecar Files - Processing Profiles]]&lt;br /&gt;
* [[Creating processing profiles for general use]]&lt;br /&gt;
* [[Dynamic processing profiles]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
==== Processing Profile Scripts ====&lt;br /&gt;
* [[RTProfileSelector]]&lt;br /&gt;
* [[RTbatch]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
==== Bundled Processing Profiles ====&lt;br /&gt;
* [[Neutral]]&lt;br /&gt;
* [[Auto-Matched Curve]]&lt;br /&gt;
* [[Standard Film Curve]]&lt;br /&gt;
* [[Pop]]&lt;br /&gt;
* [[Unclipped]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;hr/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Tool Description ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[General Comments About Some Toolbox Widgets]]&lt;br /&gt;
* [[Favorites Tab]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP3columns&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
==== Exposure Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[Exposure]]&lt;br /&gt;
* [[Shadows/Highlights]]&lt;br /&gt;
* [[Tone Mapping]]&lt;br /&gt;
* [[Dynamic Range Compression]]&lt;br /&gt;
* [[Vignetting Filter]]&lt;br /&gt;
* [[Graduated Filter]]&lt;br /&gt;
* [[Lab Adjustments|L*a*b* Adjustments]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
==== Detail Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[Spot Removal]]&lt;br /&gt;
* [[Sharpening]]&lt;br /&gt;
* [[Local Contrast]]&lt;br /&gt;
* [[Edges and Microcontrast]]&lt;br /&gt;
* [[Impulse Noise Reduction]]&lt;br /&gt;
* [[Noise Reduction]]&lt;br /&gt;
* [[Defringe]]&lt;br /&gt;
* [[Contrast by Detail Levels]]&lt;br /&gt;
* [[Haze Removal]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Color Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[White Balance]]&lt;br /&gt;
* [[Vibrance]]&lt;br /&gt;
* [[Channel Mixer]]&lt;br /&gt;
* [[Black-and-White]]&lt;br /&gt;
* [[Black-and-White addon]]&lt;br /&gt;
* [[HSV Equalizer]]&lt;br /&gt;
* [[Film Simulation]]&lt;br /&gt;
* [[Film Negative]]&lt;br /&gt;
* [[Soft Light]]&lt;br /&gt;
* [[RGB Curves]]&lt;br /&gt;
* [[Color Toning]]&lt;br /&gt;
* [[Color Management]]&lt;br /&gt;
* [[Color Management addon | Color Management Supplement]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Advanced Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[Retinex]]&lt;br /&gt;
* [[CIECAM02|CIE Color Appearance Model 2002/16 - Cat02/Cat16 - Log encoding]]&lt;br /&gt;
* [[Wavelet Levels]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Local Adjustements Tab====&lt;br /&gt;
* [[Local Adjustments]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Transform Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[Crop]]&lt;br /&gt;
* [[Resize]]&lt;br /&gt;
* [[Lens/Geometry]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
==== Raw Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[Sensor with Bayer/X-Trans Matrix]]&lt;br /&gt;
* [[Demosaicing]]&lt;br /&gt;
* [[Raw Black Points]]&lt;br /&gt;
* [[Preprocessing]]&lt;br /&gt;
* [[Chromatic Aberration Correction]]&lt;br /&gt;
* [[Raw White Points]]&lt;br /&gt;
* [[Preprocessing White Balance]]&lt;br /&gt;
* [[Dark-Frame]]&lt;br /&gt;
* [[Flat-Field]]&lt;br /&gt;
* [[Capture Sharpening]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Metadata Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[Metadata Copy Mode]]&lt;br /&gt;
* [[Exif Tab]]&lt;br /&gt;
* [[IPTC Tab]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;hr/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Interact ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[Forum]]&lt;br /&gt;
* [[IRC]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Compiling ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* In [[Linux]]&lt;br /&gt;
* In [[Windows]]&lt;br /&gt;
* In [[macOS]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[How to write useful bug reports]]&lt;br /&gt;
* [[How to fix crashes on startup]]&lt;br /&gt;
* [[Wayland]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Localization ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[Translating RawTherapee]]&lt;br /&gt;
* [[Translating RawPedia]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== RawPedia ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;container&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[Contributing]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== General Photography ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;container&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[How to convert raw formats to DNG]]&lt;br /&gt;
* [[How to create DCP color profiles]]&lt;br /&gt;
* [[How to create LCP profiles]]&lt;br /&gt;
* [[How to get LCP and DCP profiles]]&lt;br /&gt;
* [[How to extract and examine ICC profiles]]&lt;br /&gt;
* [[How to get Nikon ICM profiles]]&lt;br /&gt;
* [[Watermarking]]&lt;br /&gt;
* [[Image file formats and compression]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Main_Page&amp;diff=8560</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Main_Page&amp;diff=8560"/>
		<updated>2021-06-17T06:38:17Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Added Film Negative&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;main-page-title&amp;quot;&amp;gt;RawPedia. The encyclopedia of RawTherapee, raw shooting and everything raw&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:08_rt57_mushroom_blades_rawpedia.png|600px|right|link=]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;greetings&amp;quot;&amp;gt;&lt;br /&gt;
Welcome to '''RawTherapee's''' documentation!&lt;br /&gt;
&lt;br /&gt;
If you're a new user, don't miss the [[Getting Started]] page to quickly learn your way around this awesome raw image processing program.&lt;br /&gt;
&lt;br /&gt;
If you're an experienced user, here you have an index of all the topics covered.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=langsbox-wrapper&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row small-uncollapse large-collapse langsbox&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;span class=&amp;quot;langsavail&amp;quot;&amp;gt;In other languages&amp;lt;/span&amp;gt;&lt;br /&gt;
    &amp;lt;ul class=&amp;quot;small-block-grid-2 medium-block-grid-4 large-block-grid-7 columns flagsbox&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:braz.png|90x60px|frameless|link=Main_Page/pt|Brasileiro]]&amp;lt;br&amp;gt;[[Main_Page/pt|Brasileiro]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:ct.png|90x60px|frameless|link=Main_Page/ca|Català]]&amp;lt;br&amp;gt;[[Main_Page/ca|Català]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:deu.png|90x60px|frameless|link=Main_Page/de|Deutsch]]&amp;lt;br&amp;gt;[[Main_Page/de|Deutsch]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:esp.png|90x60px|frameless|link=Main_Page/es|Español]]&amp;lt;br&amp;gt;[[Main_Page/es|Español]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:frc.png|90x60px|frameless|link=Main_Page/fr|Française]]&amp;lt;br&amp;gt;[[Main_Page/fr|Français]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:ita.png|90x60px|frameless|link=Main_Page/it|Italiano]]&amp;lt;br&amp;gt;[[Main_Page/it|Italiano]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:jap.png|90x60px|frameless|link=Main_Page/jp|日本]]&amp;lt;br&amp;gt;[[Main_Page/jp|日本語]]&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== RawTherapee ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;container&amp;quot;&amp;gt;&lt;br /&gt;
=== General Information ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP3columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[Getting Started]]&lt;br /&gt;
* [[Features]]&lt;br /&gt;
* [[Download]]&lt;br /&gt;
* [[The Floating Point Engine]]&lt;br /&gt;
* [[Bit Depth]]&lt;br /&gt;
* [[RGB and Lab]]&lt;br /&gt;
* [[About Noise Reduction]]&lt;br /&gt;
* [[File Browser|The File Browser]]&lt;br /&gt;
* [[Queue|The Queue]]&lt;br /&gt;
* [[Editor|The Editor]]&lt;br /&gt;
* [[Batch Adjustments - Sync]]&lt;br /&gt;
* [[Saving Images]]&lt;br /&gt;
* [[Edit Current Image in External Editor]]&lt;br /&gt;
* [[Adding Support for New Raw Formats]]&lt;br /&gt;
* [[File Paths]]&lt;br /&gt;
* [[Preferences]]&lt;br /&gt;
* [[GIMP Plugin]]&lt;br /&gt;
* [[ICC Profile Creator]]&lt;br /&gt;
* [[Making a Portable Installation]]&lt;br /&gt;
* [[Command-Line Options]]&lt;br /&gt;
* [[Keyboard Shortcuts]]&lt;br /&gt;
* [[Toolchain Pipeline|Toolchain pipeline - Colorimetry]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;hr/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Processing Profiles ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP3columns&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
* [[Sidecar Files - Processing Profiles]]&lt;br /&gt;
* [[Creating processing profiles for general use]]&lt;br /&gt;
* [[Dynamic processing profiles]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
==== Processing Profile Scripts ====&lt;br /&gt;
* [[RTProfileSelector]]&lt;br /&gt;
* [[RTbatch]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
==== Bundled Processing Profiles ====&lt;br /&gt;
* [[Neutral]]&lt;br /&gt;
* [[Auto-Matched Curve]]&lt;br /&gt;
* [[Standard Film Curve]]&lt;br /&gt;
* [[Pop]]&lt;br /&gt;
* [[Unclipped]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;hr/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Tool Description ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[General Comments About Some Toolbox Widgets]]&lt;br /&gt;
* [[Favorites Tab]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP3columns&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
==== Exposure Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[Exposure]]&lt;br /&gt;
* [[Shadows/Highlights]]&lt;br /&gt;
* [[Tone Mapping]]&lt;br /&gt;
* [[Dynamic Range Compression]]&lt;br /&gt;
* [[Vignetting Filter]]&lt;br /&gt;
* [[Graduated Filter]]&lt;br /&gt;
* [[Lab Adjustments|L*a*b* Adjustments]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
==== Detail Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[Spot Removal]]&lt;br /&gt;
* [[Sharpening]]&lt;br /&gt;
* [[Local Contrast]]&lt;br /&gt;
* [[Edges and Microcontrast]]&lt;br /&gt;
* [[Impulse Noise Reduction]]&lt;br /&gt;
* [[Noise Reduction]]&lt;br /&gt;
* [[Defringe]]&lt;br /&gt;
* [[Contrast by Detail Levels]]&lt;br /&gt;
* [[Haze Removal]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Color Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[White Balance]]&lt;br /&gt;
* [[Vibrance]]&lt;br /&gt;
* [[Channel Mixer]]&lt;br /&gt;
* [[Black-and-White]]&lt;br /&gt;
* [[Black-and-White addon]]&lt;br /&gt;
* [[HSV Equalizer]]&lt;br /&gt;
* [[Film Simulation]]&lt;br /&gt;
* [[Film Negative]]&lt;br /&gt;
* [[Soft Light]]&lt;br /&gt;
* [[RGB Curves]]&lt;br /&gt;
* [[Color Toning]]&lt;br /&gt;
* [[Color Management]]&lt;br /&gt;
* [[Color Management addon | Color Management Supplement]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Local Adjustements Tab====&lt;br /&gt;
* [[Local Adjustments]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Advanced Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[Retinex]]&lt;br /&gt;
* [[CIECAM02|CIE Color Appearance Model 2002/16 - Cat02/Cat16 - Log encoding]]&lt;br /&gt;
* [[Wavelet Levels]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Transform Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[Crop]]&lt;br /&gt;
* [[Resize]]&lt;br /&gt;
* [[Lens/Geometry]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
==== Raw Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[Sensor with Bayer/X-Trans Matrix]]&lt;br /&gt;
* [[Demosaicing]]&lt;br /&gt;
* [[Raw Black Points]]&lt;br /&gt;
* [[Preprocessing]]&lt;br /&gt;
* [[Chromatic Aberration Correction]]&lt;br /&gt;
* [[Raw White Points]]&lt;br /&gt;
* [[Preprocessing White Balance]]&lt;br /&gt;
* [[Dark-Frame]]&lt;br /&gt;
* [[Flat-Field]]&lt;br /&gt;
* [[Capture Sharpening]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Metadata Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[Metadata Copy Mode]]&lt;br /&gt;
* [[Exif Tab]]&lt;br /&gt;
* [[IPTC Tab]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;hr/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Interact ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[Forum]]&lt;br /&gt;
* [[IRC]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Compiling ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* In [[Linux]]&lt;br /&gt;
* In [[Windows]]&lt;br /&gt;
* In [[macOS]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[How to write useful bug reports]]&lt;br /&gt;
* [[How to fix crashes on startup]]&lt;br /&gt;
* [[Wayland]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Localization ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[Translating RawTherapee]]&lt;br /&gt;
* [[Translating RawPedia]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== RawPedia ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;container&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[Contributing]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== General Photography ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;container&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[How to convert raw formats to DNG]]&lt;br /&gt;
* [[How to create DCP color profiles]]&lt;br /&gt;
* [[How to create LCP profiles]]&lt;br /&gt;
* [[How to get LCP and DCP profiles]]&lt;br /&gt;
* [[How to extract and examine ICC profiles]]&lt;br /&gt;
* [[How to get Nikon ICM profiles]]&lt;br /&gt;
* [[Watermarking]]&lt;br /&gt;
* [[Image file formats and compression]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Main_Page&amp;diff=8559</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Main_Page&amp;diff=8559"/>
		<updated>2021-06-17T06:37:41Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Reorder tools, remove Film Negative, add Preprocessing White Balance&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;main-page-title&amp;quot;&amp;gt;RawPedia. The encyclopedia of RawTherapee, raw shooting and everything raw&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:08_rt57_mushroom_blades_rawpedia.png|600px|right|link=]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;greetings&amp;quot;&amp;gt;&lt;br /&gt;
Welcome to '''RawTherapee's''' documentation!&lt;br /&gt;
&lt;br /&gt;
If you're a new user, don't miss the [[Getting Started]] page to quickly learn your way around this awesome raw image processing program.&lt;br /&gt;
&lt;br /&gt;
If you're an experienced user, here you have an index of all the topics covered.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=langsbox-wrapper&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row small-uncollapse large-collapse langsbox&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;span class=&amp;quot;langsavail&amp;quot;&amp;gt;In other languages&amp;lt;/span&amp;gt;&lt;br /&gt;
    &amp;lt;ul class=&amp;quot;small-block-grid-2 medium-block-grid-4 large-block-grid-7 columns flagsbox&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:braz.png|90x60px|frameless|link=Main_Page/pt|Brasileiro]]&amp;lt;br&amp;gt;[[Main_Page/pt|Brasileiro]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:ct.png|90x60px|frameless|link=Main_Page/ca|Català]]&amp;lt;br&amp;gt;[[Main_Page/ca|Català]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:deu.png|90x60px|frameless|link=Main_Page/de|Deutsch]]&amp;lt;br&amp;gt;[[Main_Page/de|Deutsch]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:esp.png|90x60px|frameless|link=Main_Page/es|Español]]&amp;lt;br&amp;gt;[[Main_Page/es|Español]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:frc.png|90x60px|frameless|link=Main_Page/fr|Française]]&amp;lt;br&amp;gt;[[Main_Page/fr|Français]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:ita.png|90x60px|frameless|link=Main_Page/it|Italiano]]&amp;lt;br&amp;gt;[[Main_Page/it|Italiano]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:jap.png|90x60px|frameless|link=Main_Page/jp|日本]]&amp;lt;br&amp;gt;[[Main_Page/jp|日本語]]&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== RawTherapee ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;container&amp;quot;&amp;gt;&lt;br /&gt;
=== General Information ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP3columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[Getting Started]]&lt;br /&gt;
* [[Features]]&lt;br /&gt;
* [[Download]]&lt;br /&gt;
* [[The Floating Point Engine]]&lt;br /&gt;
* [[Bit Depth]]&lt;br /&gt;
* [[RGB and Lab]]&lt;br /&gt;
* [[About Noise Reduction]]&lt;br /&gt;
* [[File Browser|The File Browser]]&lt;br /&gt;
* [[Queue|The Queue]]&lt;br /&gt;
* [[Editor|The Editor]]&lt;br /&gt;
* [[Batch Adjustments - Sync]]&lt;br /&gt;
* [[Saving Images]]&lt;br /&gt;
* [[Edit Current Image in External Editor]]&lt;br /&gt;
* [[Adding Support for New Raw Formats]]&lt;br /&gt;
* [[File Paths]]&lt;br /&gt;
* [[Preferences]]&lt;br /&gt;
* [[GIMP Plugin]]&lt;br /&gt;
* [[ICC Profile Creator]]&lt;br /&gt;
* [[Making a Portable Installation]]&lt;br /&gt;
* [[Command-Line Options]]&lt;br /&gt;
* [[Keyboard Shortcuts]]&lt;br /&gt;
* [[Toolchain Pipeline|Toolchain pipeline - Colorimetry]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;hr/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Processing Profiles ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP3columns&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
* [[Sidecar Files - Processing Profiles]]&lt;br /&gt;
* [[Creating processing profiles for general use]]&lt;br /&gt;
* [[Dynamic processing profiles]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
==== Processing Profile Scripts ====&lt;br /&gt;
* [[RTProfileSelector]]&lt;br /&gt;
* [[RTbatch]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
==== Bundled Processing Profiles ====&lt;br /&gt;
* [[Neutral]]&lt;br /&gt;
* [[Auto-Matched Curve]]&lt;br /&gt;
* [[Standard Film Curve]]&lt;br /&gt;
* [[Pop]]&lt;br /&gt;
* [[Unclipped]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;hr/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Tool Description ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[General Comments About Some Toolbox Widgets]]&lt;br /&gt;
* [[Favorites Tab]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP3columns&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
==== Exposure Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[Exposure]]&lt;br /&gt;
* [[Shadows/Highlights]]&lt;br /&gt;
* [[Tone Mapping]]&lt;br /&gt;
* [[Dynamic Range Compression]]&lt;br /&gt;
* [[Vignetting Filter]]&lt;br /&gt;
* [[Graduated Filter]]&lt;br /&gt;
* [[Lab Adjustments|L*a*b* Adjustments]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
==== Detail Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[Spot Removal]]&lt;br /&gt;
* [[Sharpening]]&lt;br /&gt;
* [[Local Contrast]]&lt;br /&gt;
* [[Edges and Microcontrast]]&lt;br /&gt;
* [[Impulse Noise Reduction]]&lt;br /&gt;
* [[Noise Reduction]]&lt;br /&gt;
* [[Defringe]]&lt;br /&gt;
* [[Contrast by Detail Levels]]&lt;br /&gt;
* [[Haze Removal]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Color Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[White Balance]]&lt;br /&gt;
* [[Vibrance]]&lt;br /&gt;
* [[Channel Mixer]]&lt;br /&gt;
* [[Black-and-White]]&lt;br /&gt;
* [[Black-and-White addon]]&lt;br /&gt;
* [[HSV Equalizer]]&lt;br /&gt;
* [[Film Simulation]]&lt;br /&gt;
* [[Soft Light]]&lt;br /&gt;
* [[RGB Curves]]&lt;br /&gt;
* [[Color Toning]]&lt;br /&gt;
* [[Color Management]]&lt;br /&gt;
* [[Color Management addon | Color Management Supplement]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Local Adjustements Tab====&lt;br /&gt;
* [[Local Adjustments]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Advanced Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[Retinex]]&lt;br /&gt;
* [[CIECAM02|CIE Color Appearance Model 2002/16 - Cat02/Cat16 - Log encoding]]&lt;br /&gt;
* [[Wavelet Levels]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Transform Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[Crop]]&lt;br /&gt;
* [[Resize]]&lt;br /&gt;
* [[Lens/Geometry]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
==== Raw Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[Sensor with Bayer/X-Trans Matrix]]&lt;br /&gt;
* [[Demosaicing]]&lt;br /&gt;
* [[Raw Black Points]]&lt;br /&gt;
* [[Preprocessing]]&lt;br /&gt;
* [[Chromatic Aberration Correction]]&lt;br /&gt;
* [[Raw White Points]]&lt;br /&gt;
* [[Preprocessing White Balance]]&lt;br /&gt;
* [[Dark-Frame]]&lt;br /&gt;
* [[Flat-Field]]&lt;br /&gt;
* [[Capture Sharpening]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Metadata Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[Metadata Copy Mode]]&lt;br /&gt;
* [[Exif Tab]]&lt;br /&gt;
* [[IPTC Tab]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;hr/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Interact ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[Forum]]&lt;br /&gt;
* [[IRC]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Compiling ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* In [[Linux]]&lt;br /&gt;
* In [[Windows]]&lt;br /&gt;
* In [[macOS]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[How to write useful bug reports]]&lt;br /&gt;
* [[How to fix crashes on startup]]&lt;br /&gt;
* [[Wayland]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Localization ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[Translating RawTherapee]]&lt;br /&gt;
* [[Translating RawPedia]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== RawPedia ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;container&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[Contributing]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== General Photography ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;container&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[How to convert raw formats to DNG]]&lt;br /&gt;
* [[How to create DCP color profiles]]&lt;br /&gt;
* [[How to create LCP profiles]]&lt;br /&gt;
* [[How to get LCP and DCP profiles]]&lt;br /&gt;
* [[How to extract and examine ICC profiles]]&lt;br /&gt;
* [[How to get Nikon ICM profiles]]&lt;br /&gt;
* [[Watermarking]]&lt;br /&gt;
* [[Image file formats and compression]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Main_Page&amp;diff=8558</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Main_Page&amp;diff=8558"/>
		<updated>2021-06-17T06:35:13Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: /* Detail Tab */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;main-page-title&amp;quot;&amp;gt;RawPedia. The encyclopedia of RawTherapee, raw shooting and everything raw&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:08_rt57_mushroom_blades_rawpedia.png|600px|right|link=]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;greetings&amp;quot;&amp;gt;&lt;br /&gt;
Welcome to '''RawTherapee's''' documentation!&lt;br /&gt;
&lt;br /&gt;
If you're a new user, don't miss the [[Getting Started]] page to quickly learn your way around this awesome raw image processing program.&lt;br /&gt;
&lt;br /&gt;
If you're an experienced user, here you have an index of all the topics covered.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=langsbox-wrapper&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row small-uncollapse large-collapse langsbox&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;span class=&amp;quot;langsavail&amp;quot;&amp;gt;In other languages&amp;lt;/span&amp;gt;&lt;br /&gt;
    &amp;lt;ul class=&amp;quot;small-block-grid-2 medium-block-grid-4 large-block-grid-7 columns flagsbox&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:braz.png|90x60px|frameless|link=Main_Page/pt|Brasileiro]]&amp;lt;br&amp;gt;[[Main_Page/pt|Brasileiro]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:ct.png|90x60px|frameless|link=Main_Page/ca|Català]]&amp;lt;br&amp;gt;[[Main_Page/ca|Català]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:deu.png|90x60px|frameless|link=Main_Page/de|Deutsch]]&amp;lt;br&amp;gt;[[Main_Page/de|Deutsch]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:esp.png|90x60px|frameless|link=Main_Page/es|Español]]&amp;lt;br&amp;gt;[[Main_Page/es|Español]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:frc.png|90x60px|frameless|link=Main_Page/fr|Française]]&amp;lt;br&amp;gt;[[Main_Page/fr|Français]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:ita.png|90x60px|frameless|link=Main_Page/it|Italiano]]&amp;lt;br&amp;gt;[[Main_Page/it|Italiano]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[File:jap.png|90x60px|frameless|link=Main_Page/jp|日本]]&amp;lt;br&amp;gt;[[Main_Page/jp|日本語]]&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== RawTherapee ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;container&amp;quot;&amp;gt;&lt;br /&gt;
=== General Information ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP3columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[Getting Started]]&lt;br /&gt;
* [[Features]]&lt;br /&gt;
* [[Download]]&lt;br /&gt;
* [[The Floating Point Engine]]&lt;br /&gt;
* [[Bit Depth]]&lt;br /&gt;
* [[RGB and Lab]]&lt;br /&gt;
* [[About Noise Reduction]]&lt;br /&gt;
* [[File Browser|The File Browser]]&lt;br /&gt;
* [[Queue|The Queue]]&lt;br /&gt;
* [[Editor|The Editor]]&lt;br /&gt;
* [[Batch Adjustments - Sync]]&lt;br /&gt;
* [[Saving Images]]&lt;br /&gt;
* [[Edit Current Image in External Editor]]&lt;br /&gt;
* [[Adding Support for New Raw Formats]]&lt;br /&gt;
* [[File Paths]]&lt;br /&gt;
* [[Preferences]]&lt;br /&gt;
* [[GIMP Plugin]]&lt;br /&gt;
* [[ICC Profile Creator]]&lt;br /&gt;
* [[Making a Portable Installation]]&lt;br /&gt;
* [[Command-Line Options]]&lt;br /&gt;
* [[Keyboard Shortcuts]]&lt;br /&gt;
* [[Toolchain Pipeline|Toolchain pipeline - Colorimetry]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;hr/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Processing Profiles ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP3columns&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
* [[Sidecar Files - Processing Profiles]]&lt;br /&gt;
* [[Creating processing profiles for general use]]&lt;br /&gt;
* [[Dynamic processing profiles]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
==== Processing Profile Scripts ====&lt;br /&gt;
* [[RTProfileSelector]]&lt;br /&gt;
* [[RTbatch]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
==== Bundled Processing Profiles ====&lt;br /&gt;
* [[Neutral]]&lt;br /&gt;
* [[Auto-Matched Curve]]&lt;br /&gt;
* [[Standard Film Curve]]&lt;br /&gt;
* [[Pop]]&lt;br /&gt;
* [[Unclipped]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;hr/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Tool Description ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[General Comments About Some Toolbox Widgets]]&lt;br /&gt;
* [[Favorites Tab]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP3columns&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
==== Exposure Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[Exposure]]&lt;br /&gt;
* [[Shadows/Highlights]]&lt;br /&gt;
* [[Tone Mapping]]&lt;br /&gt;
* [[Dynamic Range Compression]]&lt;br /&gt;
* [[Vignetting Filter]]&lt;br /&gt;
* [[Graduated Filter]]&lt;br /&gt;
* [[Lab Adjustments|L*a*b* Adjustments]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
==== Detail Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[Spot Removal]]&lt;br /&gt;
* [[Sharpening]]&lt;br /&gt;
* [[Local Contrast]]&lt;br /&gt;
* [[Edges and Microcontrast]]&lt;br /&gt;
* [[Impulse Noise Reduction]]&lt;br /&gt;
* [[Noise Reduction]]&lt;br /&gt;
* [[Defringe]]&lt;br /&gt;
* [[Contrast by Detail Levels]]&lt;br /&gt;
* [[Haze Removal]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Color Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[White Balance]]&lt;br /&gt;
* [[Vibrance]]&lt;br /&gt;
* [[Channel Mixer]]&lt;br /&gt;
* [[Black-and-White]]&lt;br /&gt;
* [[Black-and-White addon]]&lt;br /&gt;
* [[HSV Equalizer]]&lt;br /&gt;
* [[Film Simulation]]&lt;br /&gt;
* [[Soft Light]]&lt;br /&gt;
* [[RGB Curves]]&lt;br /&gt;
* [[Color Toning]]&lt;br /&gt;
* [[Color Management]]&lt;br /&gt;
* [[Color Management addon | Color Management Supplement]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Local Adjustements Tab====&lt;br /&gt;
* [[Local Adjustments]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Advanced Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[Retinex]]&lt;br /&gt;
* [[CIECAM02|CIE Color Appearance Model 2002/16 - Cat02/Cat16 - Log encoding]]&lt;br /&gt;
* [[Wavelet Levels]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Transform Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[Crop]]&lt;br /&gt;
* [[Resize]]&lt;br /&gt;
* [[Lens/Geometry]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
==== Raw Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[Sensor with Bayer/X-Trans Matrix]]&lt;br /&gt;
* [[Demosaicing]]&lt;br /&gt;
* [[Raw Black Points]]&lt;br /&gt;
* [[Preprocessing]]&lt;br /&gt;
* [[Chromatic Aberration]]&lt;br /&gt;
* [[Raw White Points]]&lt;br /&gt;
* [[Dark-Frame]]&lt;br /&gt;
* [[Flat-Field]]&lt;br /&gt;
* [[Film Negative]]&lt;br /&gt;
* [[Capture Sharpening]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;keeptogether&amp;quot;&amp;gt;&lt;br /&gt;
==== Metadata Tab ====&lt;br /&gt;
&lt;br /&gt;
* [[Metadata Copy Mode]]&lt;br /&gt;
* [[Exif Tab]]&lt;br /&gt;
* [[IPTC Tab]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;hr/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Interact ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[Forum]]&lt;br /&gt;
* [[IRC]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Compiling ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* In [[Linux]]&lt;br /&gt;
* In [[Windows]]&lt;br /&gt;
* In [[macOS]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[How to write useful bug reports]]&lt;br /&gt;
* [[How to fix crashes on startup]]&lt;br /&gt;
* [[Wayland]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Localization ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[Translating RawTherapee]]&lt;br /&gt;
* [[Translating RawPedia]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== RawPedia ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;container&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[Contributing]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== General Photography ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;container&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;RP1columns&amp;quot;&amp;gt;&lt;br /&gt;
* [[How to convert raw formats to DNG]]&lt;br /&gt;
* [[How to create DCP color profiles]]&lt;br /&gt;
* [[How to create LCP profiles]]&lt;br /&gt;
* [[How to get LCP and DCP profiles]]&lt;br /&gt;
* [[How to extract and examine ICC profiles]]&lt;br /&gt;
* [[How to get Nikon ICM profiles]]&lt;br /&gt;
* [[Watermarking]]&lt;br /&gt;
* [[Image file formats and compression]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Windows&amp;diff=8557</id>
		<title>Windows</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Windows&amp;diff=8557"/>
		<updated>2021-06-17T06:26:06Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Remove notice about libiptcdata here&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Windows&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Follow the instructions on this page to compile RawTherapee on Windows using the [https://www.msys2.org MSYS2] build environment. For more details on customizing and understanding the build process, see the [[Linux]] article.&lt;br /&gt;
&lt;br /&gt;
Note: this guide applies to compiling the '''64-bit''' version of RawTherapee under '''Windows 7 and newer'''. Compiling the 32-bit version is no longer supported, nor is compilation on older operating systems. The latest version of RawTherapee to work under 32-bit Windows XP is 5.0-rc1, and can be downloaded [http://www.rawtherapee.com/downloads/5.0-r1/ here] (dated 2017-02-02).&lt;br /&gt;
&lt;br /&gt;
Note that RawTherapee also requires the availability of GTK+ 3.22.24 or newer to have [https://gitlab.gnome.org/GNOME/gtk/issues/760#note_110809 native window support]. Without it RawTherapee may exhibit [https://github.com/Beep6581/RawTherapee/issues/4125 strange behavior], such as maximizing underneath the taskbar in Windows 10. When using an up to date build environment, you should not encounter this problem.&lt;br /&gt;
&lt;br /&gt;
== MSYS2 Installation ==&lt;br /&gt;
&lt;br /&gt;
=== Install MSYS2 base system ===&lt;br /&gt;
&lt;br /&gt;
Install the build environment MSYS2 carefully by following the instructions from the [https://www.msys2.org MSYS2 website]. Make sure to update the system fully until no further updates are available, using the command:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ pacman -Syu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
MSYS2 provides [https://www.msys2.org/wiki/MSYS2-introduction/ three 'shells'] (command-line interfaces) for different purposes: '''MSYS''', '''MinGW 32-bit''' and '''MinGW 64-bit'''. They can be launched through shortcuts in your Start menu. Most commonly you will be running a 64-bit operating system and will want to create applications that are optimized for that. Therefore, start the '''MSYS2 MinGW 64-bit''' shell and continue below.&lt;br /&gt;
&lt;br /&gt;
[[File:MSYS2 Shell.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note: in following text, &amp;lt;code&amp;gt;&amp;lt;MSYS2&amp;gt;&amp;lt;/code&amp;gt; refers to the MSYS2 installation folder, typically &amp;lt;code&amp;gt;C:\msys64&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install tools and libraries ===&lt;br /&gt;
&lt;br /&gt;
MSYS2 uses the package manager &amp;lt;code&amp;gt;pacman&amp;lt;/code&amp;gt; to install software and components. Please refer to the [https://wiki.archlinux.org/index.php/pacman pacman manual] for details.&lt;br /&gt;
 &lt;br /&gt;
First, install a few miscellaneous tools:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ pacman -S tar gzip nano make diffutils intltool git&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the necessary development tools and the required libraries:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-gdb mingw-w64-x86_64-make mingw-w64-x86_64-pkg-config mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-gtkmm3 mingw-w64-x86_64-lcms2 mingw-w64-x86_64-fftw mingw-w64-x86_64-lensfun mingw-w64-x86_64-libiptcdata&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Updating Lensfun database ===&lt;br /&gt;
&lt;br /&gt;
RawTherapee uses the [https://lensfun.github.io Lensfun] library for lens-specific corrections. Run the following command to update the database:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ lensfun-update-data&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The updater returns the path where the updated database is located. '''Copy this path for later use!'''&lt;br /&gt;
&lt;br /&gt;
=== Download and build libiptcdata ===&lt;br /&gt;
&lt;br /&gt;
Since December 2020 the &amp;lt;code&amp;gt;libiptcdata&amp;lt;/code&amp;gt; library is provided by MSYS2 and no longer requires manual compilation. &amp;lt;i&amp;gt;Only if you experience problems using this library&amp;lt;/i&amp;gt;, follow the instructions below to manually build it. Otherwise, continue to the next section.&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cd ~&lt;br /&gt;
$ curl -LO http://downloads.sourceforge.net/project/libiptcdata/libiptcdata/1.0.4/libiptcdata-1.0.4.tar.gz&lt;br /&gt;
$ tar xzf libiptcdata-1.0.4.tar.gz&lt;br /&gt;
$ cd libiptcdata-1.0.4&lt;br /&gt;
$ ./configure --prefix=/mingw64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some modifications to the resulting &amp;lt;code&amp;gt;Makefile&amp;lt;/code&amp;gt; are needed. You can edit the file with any text editor (either through your OS or from within the shell). We use the &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; editor from within the shell:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ nano Makefile&lt;br /&gt;
&lt;br /&gt;
# search (command Ctrl+W)&lt;br /&gt;
DIST_SUBDIRS = m4 libiptcdata po iptc docs win python&lt;br /&gt;
# and replace with&lt;br /&gt;
DIST_SUBDIRS = m4 libiptcdata po win python&lt;br /&gt;
&lt;br /&gt;
# search&lt;br /&gt;
SUBDIRS = m4 libiptcdata po iptc docs win $(MAYBE_PYTHONLIB)&lt;br /&gt;
# and replace with&lt;br /&gt;
SUBDIRS = m4 libiptcdata po win $(MAYBE_PYTHONLIB)&lt;br /&gt;
&lt;br /&gt;
# save and quit&lt;br /&gt;
Ctrl+X, Y&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally build and install the library:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Clone and build RawTherapee ==&lt;br /&gt;
&lt;br /&gt;
=== Clone RawTherapee's git repository. ===&lt;br /&gt;
RawTherapee's source code can be cloned from [https://github.com/Beep6581/RawTherapee the official GitHub repository]:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cd ~&lt;br /&gt;
$ git clone git://github.com/Beep6581/RawTherapee.git&lt;br /&gt;
$ cd RawTherapee&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Switching branches ===&lt;br /&gt;
After cloning you will automatically have checked out the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch. This is the main development branch of RawTherapee and probably what you want to use. To switch to a [https://github.com/Beep6581/RawTherapee/branches different branch], do the following:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ git checkout branchname # replace with another available branch name&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create a separate directory for the build ===&lt;br /&gt;
It is essential to create a new directory to build the application. The directory can have any name, for example:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ mkdir build&lt;br /&gt;
$ cd build&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: if you switch branches, ''always build in an empty directory'' to prevent issues. From within a build directory, you can run &amp;lt;code&amp;gt;rm -rf *&amp;lt;/code&amp;gt; to remove all files.&lt;br /&gt;
&lt;br /&gt;
=== Configuration and compilation ===&lt;br /&gt;
To create an optimized build for your machine architecture, use the following commands:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cmake -G &amp;quot;Ninja&amp;quot; -DLENSFUNDBDIR=put/your/lensfun/directory/here -DCMAKE_BUILD_TYPE=&amp;quot;release&amp;quot; -DPROC_TARGET_NUMBER=&amp;quot;2&amp;quot; -DCACHE_NAME_SUFFIX=&amp;quot;5-dev&amp;quot; ..&lt;br /&gt;
$ cmake --build . --target install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Make sure to replace the path to the Lensfun database with the actual path obtained a few steps before. See the [[Linux#CMake|Linux article]] for more details on the various options. Depending on your system, the build process may take anywhere between 5 and 25 minutes.&lt;br /&gt;
&lt;br /&gt;
There may be warnings during the build process which you can safely ignore. Errors that are not traceable to a mistake when following this guide should be reported [https://github.com/Beep6581/RawTherapee/issues/new?assignees=&amp;amp;labels=&amp;amp;template=bug_report.md&amp;amp;title= here]. &lt;br /&gt;
&lt;br /&gt;
=== Starting RawTherapee ===&lt;br /&gt;
RawTherapee can now be run:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ ./release/rawtherapee.exe # replace release with debug or relwithdebinfo if you built another target&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional: preloaded CMake cache ===&lt;br /&gt;
As described in the [https://cmake.org/cmake/help/latest/manual/cmake.1.html CMake manual]&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
-C &amp;lt;initial-cache&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    Pre-load a script to populate the cache.&lt;br /&gt;
&lt;br /&gt;
    When cmake is first run in an empty build tree, it creates a CMakeCache.txt file and populates it with customizable settings for the project. This option may be used to specify a file from which to load cache entries before the first pass through the project’s cmake listfiles. The loaded entries take priority over the project’s default values. The given file should be a CMake script containing SET commands that use the CACHE option, not a cache-format file.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To simplify the invocation of CMake and be able to easily define Windows specific options, a &amp;lt;code&amp;gt;win.cmake&amp;lt;/code&amp;gt; template script is provided with the sources. Copy it out of RawTherapee's source to avoid overwriting by update for instance in &amp;lt;code&amp;gt;mywin.cmake&amp;lt;/code&amp;gt;.&lt;br /&gt;
Edit it to define or modify options. To preload the cache, in the CMake command line:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cmake -G &amp;quot;Ninja&amp;quot; -DLENSFUNDBDIR=share/lensfun -DCMAKE_BUILD_TYPE=&amp;quot;release&amp;quot; -DPROC_TARGET_NUMBER=&amp;quot;2&amp;quot; -DCACHE_NAME_SUFFIX=&amp;quot;5-dev&amp;quot; -C &amp;lt;path/to/mywin.cmake&amp;gt; ..&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Making a bundled build ==&lt;br /&gt;
&lt;br /&gt;
This section only applies if you want to run RawTherapee outside the MinGW shell or distribute it.&lt;br /&gt;
&lt;br /&gt;
Note: You can copy either with the Windows file manager or, recommended, with [https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy robocopy] inside the &amp;lt;code&amp;gt;mingw64&amp;lt;/code&amp;gt; shell script using &amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt; instead of &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt; for the options.&lt;br /&gt;
&lt;br /&gt;
=== Definition of folders ===&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;prefix&amp;gt;&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;&amp;lt;MSYS2&amp;gt;\mingw64&amp;lt;/code&amp;gt;,&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;MSYS2&amp;gt;&amp;lt;/code&amp;gt; is the MSYS2 installation folder,&lt;br /&gt;
*and &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt; is the RawTherapee installation folder.&lt;br /&gt;
&lt;br /&gt;
=== Copy RawTherapee executable and generated files ===&lt;br /&gt;
Copy the content of &amp;lt;code&amp;gt;c:\code\repo-rt\build\&amp;lt;debug|release|relwithdebinfo&amp;gt;&amp;lt;/code&amp;gt; into &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Copy the  dependencies ===&lt;br /&gt;
Copy the necessary DLLs and exe from &amp;lt;code&amp;gt;&amp;lt;prefix&amp;gt;\bin&amp;lt;/code&amp;gt; into &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt;.&lt;br /&gt;
The current list of required DLLs and EXE is:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
gspawn-win64-helper.exe&lt;br /&gt;
gspawn-win64-helper-console.exe&lt;br /&gt;
gdbus.exe&lt;br /&gt;
libatk-1.0-0.dll&lt;br /&gt;
libatkmm-1.6-1.dll&lt;br /&gt;
libbz2-1.dll&lt;br /&gt;
libcairo-2.dll&lt;br /&gt;
libcairo-gobject-2.dll&lt;br /&gt;
libcairomm-1.0-1.dll&lt;br /&gt;
libcroco-0.6-3.dll&lt;br /&gt;
libdatrie-1.dll&lt;br /&gt;
libepoxy-0.dll&lt;br /&gt;
libexpat-1.dll&lt;br /&gt;
libffi-6.dll&lt;br /&gt;
libfftw3f-3.dll&lt;br /&gt;
libfontconfig-1.dll&lt;br /&gt;
libfreetype-6.dll&lt;br /&gt;
libfribidi-0.dll&lt;br /&gt;
libgcc_s_seh-1.dll&lt;br /&gt;
libgdk_pixbuf-2.0-0.dll&lt;br /&gt;
libgdk-3-0.dll&lt;br /&gt;
libgdkmm-3.0-1.dll&lt;br /&gt;
libgio-2.0-0.dll&lt;br /&gt;
libgiomm-2.4-1.dll&lt;br /&gt;
libglib-2.0-0.dll&lt;br /&gt;
libglibmm-2.4-1.dll&lt;br /&gt;
libgmodule-2.0-0.dll&lt;br /&gt;
libgobject-2.0-0.dll&lt;br /&gt;
libgomp-1.dll&lt;br /&gt;
libgraphite2.dll&lt;br /&gt;
libgtk-3-0.dll&lt;br /&gt;
libgtkmm-3.0-1.dll&lt;br /&gt;
libharfbuzz-0.dll&lt;br /&gt;
libiconv-2.dll&lt;br /&gt;
libintl-8.dll&lt;br /&gt;
libjpeg-8.dll&lt;br /&gt;
liblcms2-2.dll&lt;br /&gt;
liblensfun.dll&lt;br /&gt;
liblzma-5.dll&lt;br /&gt;
libpango-1.0-0.dll&lt;br /&gt;
libpangocairo-1.0-0.dll&lt;br /&gt;
libpangoft2-1.0-0.dll&lt;br /&gt;
libpangomm-1.4-1.dll&lt;br /&gt;
libpangowin32-1.0-0.dll&lt;br /&gt;
libpcre-1.dll&lt;br /&gt;
libpixman-1-0.dll&lt;br /&gt;
libpng16-16.dll&lt;br /&gt;
librsvg-2-2.dll&lt;br /&gt;
libsigc-2.0-0.dll&lt;br /&gt;
libstdc++-6.dll&lt;br /&gt;
libsystre-0.dll&lt;br /&gt;
libthai-0.dll&lt;br /&gt;
libtiff-5.dll&lt;br /&gt;
libtre-5.dll&lt;br /&gt;
libwinpthread-1.dll&lt;br /&gt;
libxml2-2.dll&lt;br /&gt;
libzstd.dll&lt;br /&gt;
zlib1.dll&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the following list of Adwaita theme files and directories  from &amp;lt;code&amp;gt;&amp;lt;prefix&amp;gt;\share\icons\Adwaita\&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;.\share\icons\Adwaita\&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
scalable\actions&lt;br /&gt;
scalable\devices&lt;br /&gt;
scalable\mimetypes&lt;br /&gt;
scalable\places&lt;br /&gt;
scalable\status&lt;br /&gt;
scalable\ui&lt;br /&gt;
index.theme&lt;br /&gt;
cursors\plus.cur&lt;br /&gt;
cursors\sb_h_double_arrow.cur&lt;br /&gt;
cursors\sb_left_arrow.cur&lt;br /&gt;
cursors\sb_right_arrow.cur&lt;br /&gt;
cursors\sb_v_double_arrow.cur&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy following files :&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;prefix&amp;gt;\lib\gdk-pixbuf-2.0 -&amp;gt; .\lib\gdk-pixbuf-2.0&lt;br /&gt;
&amp;lt;prefix&amp;gt;\share\glib-2.0\schemas\gschemas.compiled -&amp;gt; .\share\glib-2.0\schemas&lt;br /&gt;
&amp;lt;prefix&amp;gt;\share\lensfun\version_1\* -&amp;gt; .\share\lensfun&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create in .\share\gtk-3.0 a file &amp;lt;code&amp;gt;settings.ini&amp;lt;/code&amp;gt; containing :&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
[Settings] gtk-button-images=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Creating a distributable package ==&lt;br /&gt;
&lt;br /&gt;
If you plan to distribute RawTherapee packages for the Windows platform, as a first step you need to make sure that RawTherapee will be built for the &amp;quot;generic&amp;quot; processor target. To do so, use &amp;lt;code&amp;gt;-DPROC_TARGET_NUMBER=&amp;quot;1&amp;quot;&amp;lt;/code&amp;gt; in the CMake command.&lt;br /&gt;
&lt;br /&gt;
During compilation, a script named &amp;lt;code&amp;gt;WindowsInnoSetup.iss&amp;lt;/code&amp;gt; is created in the RawTherapee installation folder. This script is used by Inno Setup [http://www.jrsoftware.org/isinfo.php], a program which is used to generate installers for Windows programs. It is advised to download the Unicode version [http://www.jrsoftware.org/download.php/is-unicode.exe] to avoid problems with some languages.&lt;br /&gt;
&lt;br /&gt;
To help users [[How_to_write_useful_bug_reports|write useful bug reports]], package maintainers are encouraged to produce builds which include both a &amp;quot;release&amp;quot; and a &amp;quot;debug&amp;quot; executable, and to bundle them together with the GDB debugger executable.&lt;br /&gt;
&lt;br /&gt;
In other words, put the &amp;lt;code&amp;gt;rawtherapee.exe&amp;lt;/code&amp;gt; (release) file together with the &amp;lt;code&amp;gt;rawtherapee-debug.exe&amp;lt;/code&amp;gt; (debug) file and the &amp;lt;code&amp;gt;gdb.exe&amp;lt;/code&amp;gt; file together into the same installer or the same archive. An alternative is to produce &amp;quot;relwithdebinfo&amp;quot; builds - these are much faster than &amp;quot;debug&amp;quot; but not as optimized as &amp;quot;release&amp;quot; builds, yet they provide just about as much useful information as &amp;quot;debug&amp;quot; builds. &lt;br /&gt;
&lt;br /&gt;
When making &amp;quot;relwithdebinfo&amp;quot; or &amp;quot;debug&amp;quot; builds you must provide the GDB debugger executable. Windows binaries of the debugger &amp;lt;code&amp;gt;gdb.exe&amp;lt;/code&amp;gt; can be downloaded from [http://www.equation.com/servlet/equation.cmd?fa=gdb here] in 32- and 64-bit versions and will be copied into Rawtherapee installation folder.&lt;br /&gt;
&lt;br /&gt;
Now that everything is set up, to create the package right-click on the &amp;lt;code&amp;gt;WindowsInnoSetup.iss&amp;lt;/code&amp;gt; script and choose ''Compile'' from the context menu. It will automatically generate the installer and place it in the parent folder.&lt;br /&gt;
&lt;br /&gt;
To make your new package compatible with the RawTherapee website's upload panel, create a zip archive in which you will place both the newly created installer and the corresponding ''AboutThisBuild.txt'' file which can be found at the same place. Name the resulting zip archive following this template:&lt;br /&gt;
&amp;lt;code&amp;gt;RawTherapee_&amp;lt;version&amp;gt;_WinVista_64_&amp;lt;buildtype&amp;gt;.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are building and distributing nightly builds, follow this template:&lt;br /&gt;
&amp;lt;code&amp;gt;RawTherapee_&amp;lt;branch&amp;gt;_&amp;lt;version&amp;gt;_WinVista_64_&amp;lt;buildtype&amp;gt;.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;WinVista&amp;quot;  means it can run on any version of Windows from Vista upwards, including 10.&lt;br /&gt;
* The &amp;quot;version&amp;quot; will either look like &amp;lt;code&amp;gt;5.8&amp;lt;/code&amp;gt; if you checkout the &amp;lt;code&amp;gt;5.8&amp;lt;/code&amp;gt; tag, or &amp;lt;code&amp;gt;5.8-g35abd92&lt;br /&gt;
&amp;lt;/code&amp;gt; if you checkout the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch after 5.8 was tagged.&lt;br /&gt;
* If you are shipping more than one build type in an installer, don't include &amp;lt;buildtype&amp;gt; in the name.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Windows&amp;diff=8556</id>
		<title>Windows</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Windows&amp;diff=8556"/>
		<updated>2021-06-17T06:25:44Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: /* Download and build libiptcdata */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Windows&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Follow the instructions on this page to compile RawTherapee on Windows using the [https://www.msys2.org MSYS2] build environment. For more details on customizing and understanding the build process, see the [[Linux]] article.&lt;br /&gt;
&lt;br /&gt;
Note: this guide applies to compiling the '''64-bit''' version of RawTherapee under '''Windows 7 and newer'''. Compiling the 32-bit version is no longer supported, nor is compilation on older operating systems. The latest version of RawTherapee to work under 32-bit Windows XP is 5.0-rc1, and can be downloaded [http://www.rawtherapee.com/downloads/5.0-r1/ here] (dated 2017-02-02).&lt;br /&gt;
&lt;br /&gt;
Note that RawTherapee also requires the availability of GTK+ 3.22.24 or newer to have [https://gitlab.gnome.org/GNOME/gtk/issues/760#note_110809 native window support]. Without it RawTherapee may exhibit [https://github.com/Beep6581/RawTherapee/issues/4125 strange behavior], such as maximizing underneath the taskbar in Windows 10. When using an up to date build environment, you should not encounter this problem.&lt;br /&gt;
&lt;br /&gt;
== MSYS2 Installation ==&lt;br /&gt;
&lt;br /&gt;
=== Install MSYS2 base system ===&lt;br /&gt;
&lt;br /&gt;
Install the build environment MSYS2 carefully by following the instructions from the [https://www.msys2.org MSYS2 website]. Make sure to update the system fully until no further updates are available, using the command:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ pacman -Syu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
MSYS2 provides [https://www.msys2.org/wiki/MSYS2-introduction/ three 'shells'] (command-line interfaces) for different purposes: '''MSYS''', '''MinGW 32-bit''' and '''MinGW 64-bit'''. They can be launched through shortcuts in your Start menu. Most commonly you will be running a 64-bit operating system and will want to create applications that are optimized for that. Therefore, start the '''MSYS2 MinGW 64-bit''' shell and continue below.&lt;br /&gt;
&lt;br /&gt;
[[File:MSYS2 Shell.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note: in following text, &amp;lt;code&amp;gt;&amp;lt;MSYS2&amp;gt;&amp;lt;/code&amp;gt; refers to the MSYS2 installation folder, typically &amp;lt;code&amp;gt;C:\msys64&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install tools and libraries ===&lt;br /&gt;
&lt;br /&gt;
MSYS2 uses the package manager &amp;lt;code&amp;gt;pacman&amp;lt;/code&amp;gt; to install software and components. Please refer to the [https://wiki.archlinux.org/index.php/pacman pacman manual] for details.&lt;br /&gt;
 &lt;br /&gt;
First, install a few miscellaneous tools:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ pacman -S tar gzip nano make diffutils intltool git&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the necessary development tools and the required libraries:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-gdb mingw-w64-x86_64-make mingw-w64-x86_64-pkg-config mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-gtkmm3 mingw-w64-x86_64-lcms2 mingw-w64-x86_64-fftw mingw-w64-x86_64-lensfun mingw-w64-x86_64-libiptcdata&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: the &amp;lt;code&amp;gt;mingw-w64-x86_64-libiptcdata&amp;lt;/code&amp;gt; package has been added to MSYS2 in December 2020. If you experience difficulty using this package, please see the instructions below how to compile the library yourself.&lt;br /&gt;
&lt;br /&gt;
=== Updating Lensfun database ===&lt;br /&gt;
&lt;br /&gt;
RawTherapee uses the [https://lensfun.github.io Lensfun] library for lens-specific corrections. Run the following command to update the database:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ lensfun-update-data&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The updater returns the path where the updated database is located. '''Copy this path for later use!'''&lt;br /&gt;
&lt;br /&gt;
=== Download and build libiptcdata ===&lt;br /&gt;
&lt;br /&gt;
Since December 2020 the &amp;lt;code&amp;gt;libiptcdata&amp;lt;/code&amp;gt; library is provided by MSYS2 and no longer requires manual compilation. &amp;lt;i&amp;gt;Only if you experience problems using this library&amp;lt;/i&amp;gt;, follow the instructions below to manually build it. Otherwise, continue to the next section.&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cd ~&lt;br /&gt;
$ curl -LO http://downloads.sourceforge.net/project/libiptcdata/libiptcdata/1.0.4/libiptcdata-1.0.4.tar.gz&lt;br /&gt;
$ tar xzf libiptcdata-1.0.4.tar.gz&lt;br /&gt;
$ cd libiptcdata-1.0.4&lt;br /&gt;
$ ./configure --prefix=/mingw64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some modifications to the resulting &amp;lt;code&amp;gt;Makefile&amp;lt;/code&amp;gt; are needed. You can edit the file with any text editor (either through your OS or from within the shell). We use the &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; editor from within the shell:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ nano Makefile&lt;br /&gt;
&lt;br /&gt;
# search (command Ctrl+W)&lt;br /&gt;
DIST_SUBDIRS = m4 libiptcdata po iptc docs win python&lt;br /&gt;
# and replace with&lt;br /&gt;
DIST_SUBDIRS = m4 libiptcdata po win python&lt;br /&gt;
&lt;br /&gt;
# search&lt;br /&gt;
SUBDIRS = m4 libiptcdata po iptc docs win $(MAYBE_PYTHONLIB)&lt;br /&gt;
# and replace with&lt;br /&gt;
SUBDIRS = m4 libiptcdata po win $(MAYBE_PYTHONLIB)&lt;br /&gt;
&lt;br /&gt;
# save and quit&lt;br /&gt;
Ctrl+X, Y&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally build and install the library:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Clone and build RawTherapee ==&lt;br /&gt;
&lt;br /&gt;
=== Clone RawTherapee's git repository. ===&lt;br /&gt;
RawTherapee's source code can be cloned from [https://github.com/Beep6581/RawTherapee the official GitHub repository]:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cd ~&lt;br /&gt;
$ git clone git://github.com/Beep6581/RawTherapee.git&lt;br /&gt;
$ cd RawTherapee&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Switching branches ===&lt;br /&gt;
After cloning you will automatically have checked out the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch. This is the main development branch of RawTherapee and probably what you want to use. To switch to a [https://github.com/Beep6581/RawTherapee/branches different branch], do the following:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ git checkout branchname # replace with another available branch name&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create a separate directory for the build ===&lt;br /&gt;
It is essential to create a new directory to build the application. The directory can have any name, for example:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ mkdir build&lt;br /&gt;
$ cd build&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: if you switch branches, ''always build in an empty directory'' to prevent issues. From within a build directory, you can run &amp;lt;code&amp;gt;rm -rf *&amp;lt;/code&amp;gt; to remove all files.&lt;br /&gt;
&lt;br /&gt;
=== Configuration and compilation ===&lt;br /&gt;
To create an optimized build for your machine architecture, use the following commands:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cmake -G &amp;quot;Ninja&amp;quot; -DLENSFUNDBDIR=put/your/lensfun/directory/here -DCMAKE_BUILD_TYPE=&amp;quot;release&amp;quot; -DPROC_TARGET_NUMBER=&amp;quot;2&amp;quot; -DCACHE_NAME_SUFFIX=&amp;quot;5-dev&amp;quot; ..&lt;br /&gt;
$ cmake --build . --target install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Make sure to replace the path to the Lensfun database with the actual path obtained a few steps before. See the [[Linux#CMake|Linux article]] for more details on the various options. Depending on your system, the build process may take anywhere between 5 and 25 minutes.&lt;br /&gt;
&lt;br /&gt;
There may be warnings during the build process which you can safely ignore. Errors that are not traceable to a mistake when following this guide should be reported [https://github.com/Beep6581/RawTherapee/issues/new?assignees=&amp;amp;labels=&amp;amp;template=bug_report.md&amp;amp;title= here]. &lt;br /&gt;
&lt;br /&gt;
=== Starting RawTherapee ===&lt;br /&gt;
RawTherapee can now be run:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ ./release/rawtherapee.exe # replace release with debug or relwithdebinfo if you built another target&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional: preloaded CMake cache ===&lt;br /&gt;
As described in the [https://cmake.org/cmake/help/latest/manual/cmake.1.html CMake manual]&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
-C &amp;lt;initial-cache&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    Pre-load a script to populate the cache.&lt;br /&gt;
&lt;br /&gt;
    When cmake is first run in an empty build tree, it creates a CMakeCache.txt file and populates it with customizable settings for the project. This option may be used to specify a file from which to load cache entries before the first pass through the project’s cmake listfiles. The loaded entries take priority over the project’s default values. The given file should be a CMake script containing SET commands that use the CACHE option, not a cache-format file.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To simplify the invocation of CMake and be able to easily define Windows specific options, a &amp;lt;code&amp;gt;win.cmake&amp;lt;/code&amp;gt; template script is provided with the sources. Copy it out of RawTherapee's source to avoid overwriting by update for instance in &amp;lt;code&amp;gt;mywin.cmake&amp;lt;/code&amp;gt;.&lt;br /&gt;
Edit it to define or modify options. To preload the cache, in the CMake command line:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cmake -G &amp;quot;Ninja&amp;quot; -DLENSFUNDBDIR=share/lensfun -DCMAKE_BUILD_TYPE=&amp;quot;release&amp;quot; -DPROC_TARGET_NUMBER=&amp;quot;2&amp;quot; -DCACHE_NAME_SUFFIX=&amp;quot;5-dev&amp;quot; -C &amp;lt;path/to/mywin.cmake&amp;gt; ..&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Making a bundled build ==&lt;br /&gt;
&lt;br /&gt;
This section only applies if you want to run RawTherapee outside the MinGW shell or distribute it.&lt;br /&gt;
&lt;br /&gt;
Note: You can copy either with the Windows file manager or, recommended, with [https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy robocopy] inside the &amp;lt;code&amp;gt;mingw64&amp;lt;/code&amp;gt; shell script using &amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt; instead of &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt; for the options.&lt;br /&gt;
&lt;br /&gt;
=== Definition of folders ===&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;prefix&amp;gt;&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;&amp;lt;MSYS2&amp;gt;\mingw64&amp;lt;/code&amp;gt;,&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;MSYS2&amp;gt;&amp;lt;/code&amp;gt; is the MSYS2 installation folder,&lt;br /&gt;
*and &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt; is the RawTherapee installation folder.&lt;br /&gt;
&lt;br /&gt;
=== Copy RawTherapee executable and generated files ===&lt;br /&gt;
Copy the content of &amp;lt;code&amp;gt;c:\code\repo-rt\build\&amp;lt;debug|release|relwithdebinfo&amp;gt;&amp;lt;/code&amp;gt; into &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Copy the  dependencies ===&lt;br /&gt;
Copy the necessary DLLs and exe from &amp;lt;code&amp;gt;&amp;lt;prefix&amp;gt;\bin&amp;lt;/code&amp;gt; into &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt;.&lt;br /&gt;
The current list of required DLLs and EXE is:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
gspawn-win64-helper.exe&lt;br /&gt;
gspawn-win64-helper-console.exe&lt;br /&gt;
gdbus.exe&lt;br /&gt;
libatk-1.0-0.dll&lt;br /&gt;
libatkmm-1.6-1.dll&lt;br /&gt;
libbz2-1.dll&lt;br /&gt;
libcairo-2.dll&lt;br /&gt;
libcairo-gobject-2.dll&lt;br /&gt;
libcairomm-1.0-1.dll&lt;br /&gt;
libcroco-0.6-3.dll&lt;br /&gt;
libdatrie-1.dll&lt;br /&gt;
libepoxy-0.dll&lt;br /&gt;
libexpat-1.dll&lt;br /&gt;
libffi-6.dll&lt;br /&gt;
libfftw3f-3.dll&lt;br /&gt;
libfontconfig-1.dll&lt;br /&gt;
libfreetype-6.dll&lt;br /&gt;
libfribidi-0.dll&lt;br /&gt;
libgcc_s_seh-1.dll&lt;br /&gt;
libgdk_pixbuf-2.0-0.dll&lt;br /&gt;
libgdk-3-0.dll&lt;br /&gt;
libgdkmm-3.0-1.dll&lt;br /&gt;
libgio-2.0-0.dll&lt;br /&gt;
libgiomm-2.4-1.dll&lt;br /&gt;
libglib-2.0-0.dll&lt;br /&gt;
libglibmm-2.4-1.dll&lt;br /&gt;
libgmodule-2.0-0.dll&lt;br /&gt;
libgobject-2.0-0.dll&lt;br /&gt;
libgomp-1.dll&lt;br /&gt;
libgraphite2.dll&lt;br /&gt;
libgtk-3-0.dll&lt;br /&gt;
libgtkmm-3.0-1.dll&lt;br /&gt;
libharfbuzz-0.dll&lt;br /&gt;
libiconv-2.dll&lt;br /&gt;
libintl-8.dll&lt;br /&gt;
libjpeg-8.dll&lt;br /&gt;
liblcms2-2.dll&lt;br /&gt;
liblensfun.dll&lt;br /&gt;
liblzma-5.dll&lt;br /&gt;
libpango-1.0-0.dll&lt;br /&gt;
libpangocairo-1.0-0.dll&lt;br /&gt;
libpangoft2-1.0-0.dll&lt;br /&gt;
libpangomm-1.4-1.dll&lt;br /&gt;
libpangowin32-1.0-0.dll&lt;br /&gt;
libpcre-1.dll&lt;br /&gt;
libpixman-1-0.dll&lt;br /&gt;
libpng16-16.dll&lt;br /&gt;
librsvg-2-2.dll&lt;br /&gt;
libsigc-2.0-0.dll&lt;br /&gt;
libstdc++-6.dll&lt;br /&gt;
libsystre-0.dll&lt;br /&gt;
libthai-0.dll&lt;br /&gt;
libtiff-5.dll&lt;br /&gt;
libtre-5.dll&lt;br /&gt;
libwinpthread-1.dll&lt;br /&gt;
libxml2-2.dll&lt;br /&gt;
libzstd.dll&lt;br /&gt;
zlib1.dll&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the following list of Adwaita theme files and directories  from &amp;lt;code&amp;gt;&amp;lt;prefix&amp;gt;\share\icons\Adwaita\&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;.\share\icons\Adwaita\&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
scalable\actions&lt;br /&gt;
scalable\devices&lt;br /&gt;
scalable\mimetypes&lt;br /&gt;
scalable\places&lt;br /&gt;
scalable\status&lt;br /&gt;
scalable\ui&lt;br /&gt;
index.theme&lt;br /&gt;
cursors\plus.cur&lt;br /&gt;
cursors\sb_h_double_arrow.cur&lt;br /&gt;
cursors\sb_left_arrow.cur&lt;br /&gt;
cursors\sb_right_arrow.cur&lt;br /&gt;
cursors\sb_v_double_arrow.cur&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy following files :&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;prefix&amp;gt;\lib\gdk-pixbuf-2.0 -&amp;gt; .\lib\gdk-pixbuf-2.0&lt;br /&gt;
&amp;lt;prefix&amp;gt;\share\glib-2.0\schemas\gschemas.compiled -&amp;gt; .\share\glib-2.0\schemas&lt;br /&gt;
&amp;lt;prefix&amp;gt;\share\lensfun\version_1\* -&amp;gt; .\share\lensfun&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create in .\share\gtk-3.0 a file &amp;lt;code&amp;gt;settings.ini&amp;lt;/code&amp;gt; containing :&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
[Settings] gtk-button-images=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Creating a distributable package ==&lt;br /&gt;
&lt;br /&gt;
If you plan to distribute RawTherapee packages for the Windows platform, as a first step you need to make sure that RawTherapee will be built for the &amp;quot;generic&amp;quot; processor target. To do so, use &amp;lt;code&amp;gt;-DPROC_TARGET_NUMBER=&amp;quot;1&amp;quot;&amp;lt;/code&amp;gt; in the CMake command.&lt;br /&gt;
&lt;br /&gt;
During compilation, a script named &amp;lt;code&amp;gt;WindowsInnoSetup.iss&amp;lt;/code&amp;gt; is created in the RawTherapee installation folder. This script is used by Inno Setup [http://www.jrsoftware.org/isinfo.php], a program which is used to generate installers for Windows programs. It is advised to download the Unicode version [http://www.jrsoftware.org/download.php/is-unicode.exe] to avoid problems with some languages.&lt;br /&gt;
&lt;br /&gt;
To help users [[How_to_write_useful_bug_reports|write useful bug reports]], package maintainers are encouraged to produce builds which include both a &amp;quot;release&amp;quot; and a &amp;quot;debug&amp;quot; executable, and to bundle them together with the GDB debugger executable.&lt;br /&gt;
&lt;br /&gt;
In other words, put the &amp;lt;code&amp;gt;rawtherapee.exe&amp;lt;/code&amp;gt; (release) file together with the &amp;lt;code&amp;gt;rawtherapee-debug.exe&amp;lt;/code&amp;gt; (debug) file and the &amp;lt;code&amp;gt;gdb.exe&amp;lt;/code&amp;gt; file together into the same installer or the same archive. An alternative is to produce &amp;quot;relwithdebinfo&amp;quot; builds - these are much faster than &amp;quot;debug&amp;quot; but not as optimized as &amp;quot;release&amp;quot; builds, yet they provide just about as much useful information as &amp;quot;debug&amp;quot; builds. &lt;br /&gt;
&lt;br /&gt;
When making &amp;quot;relwithdebinfo&amp;quot; or &amp;quot;debug&amp;quot; builds you must provide the GDB debugger executable. Windows binaries of the debugger &amp;lt;code&amp;gt;gdb.exe&amp;lt;/code&amp;gt; can be downloaded from [http://www.equation.com/servlet/equation.cmd?fa=gdb here] in 32- and 64-bit versions and will be copied into Rawtherapee installation folder.&lt;br /&gt;
&lt;br /&gt;
Now that everything is set up, to create the package right-click on the &amp;lt;code&amp;gt;WindowsInnoSetup.iss&amp;lt;/code&amp;gt; script and choose ''Compile'' from the context menu. It will automatically generate the installer and place it in the parent folder.&lt;br /&gt;
&lt;br /&gt;
To make your new package compatible with the RawTherapee website's upload panel, create a zip archive in which you will place both the newly created installer and the corresponding ''AboutThisBuild.txt'' file which can be found at the same place. Name the resulting zip archive following this template:&lt;br /&gt;
&amp;lt;code&amp;gt;RawTherapee_&amp;lt;version&amp;gt;_WinVista_64_&amp;lt;buildtype&amp;gt;.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are building and distributing nightly builds, follow this template:&lt;br /&gt;
&amp;lt;code&amp;gt;RawTherapee_&amp;lt;branch&amp;gt;_&amp;lt;version&amp;gt;_WinVista_64_&amp;lt;buildtype&amp;gt;.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;WinVista&amp;quot;  means it can run on any version of Windows from Vista upwards, including 10.&lt;br /&gt;
* The &amp;quot;version&amp;quot; will either look like &amp;lt;code&amp;gt;5.8&amp;lt;/code&amp;gt; if you checkout the &amp;lt;code&amp;gt;5.8&amp;lt;/code&amp;gt; tag, or &amp;lt;code&amp;gt;5.8-g35abd92&lt;br /&gt;
&amp;lt;/code&amp;gt; if you checkout the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch after 5.8 was tagged.&lt;br /&gt;
* If you are shipping more than one build type in an installer, don't include &amp;lt;buildtype&amp;gt; in the name.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Windows&amp;diff=8555</id>
		<title>Windows</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Windows&amp;diff=8555"/>
		<updated>2021-06-17T06:25:13Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Clarify build instructions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Windows&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Follow the instructions on this page to compile RawTherapee on Windows using the [https://www.msys2.org MSYS2] build environment. For more details on customizing and understanding the build process, see the [[Linux]] article.&lt;br /&gt;
&lt;br /&gt;
Note: this guide applies to compiling the '''64-bit''' version of RawTherapee under '''Windows 7 and newer'''. Compiling the 32-bit version is no longer supported, nor is compilation on older operating systems. The latest version of RawTherapee to work under 32-bit Windows XP is 5.0-rc1, and can be downloaded [http://www.rawtherapee.com/downloads/5.0-r1/ here] (dated 2017-02-02).&lt;br /&gt;
&lt;br /&gt;
Note that RawTherapee also requires the availability of GTK+ 3.22.24 or newer to have [https://gitlab.gnome.org/GNOME/gtk/issues/760#note_110809 native window support]. Without it RawTherapee may exhibit [https://github.com/Beep6581/RawTherapee/issues/4125 strange behavior], such as maximizing underneath the taskbar in Windows 10. When using an up to date build environment, you should not encounter this problem.&lt;br /&gt;
&lt;br /&gt;
== MSYS2 Installation ==&lt;br /&gt;
&lt;br /&gt;
=== Install MSYS2 base system ===&lt;br /&gt;
&lt;br /&gt;
Install the build environment MSYS2 carefully by following the instructions from the [https://www.msys2.org MSYS2 website]. Make sure to update the system fully until no further updates are available, using the command:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ pacman -Syu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
MSYS2 provides [https://www.msys2.org/wiki/MSYS2-introduction/ three 'shells'] (command-line interfaces) for different purposes: '''MSYS''', '''MinGW 32-bit''' and '''MinGW 64-bit'''. They can be launched through shortcuts in your Start menu. Most commonly you will be running a 64-bit operating system and will want to create applications that are optimized for that. Therefore, start the '''MSYS2 MinGW 64-bit''' shell and continue below.&lt;br /&gt;
&lt;br /&gt;
[[File:MSYS2 Shell.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note: in following text, &amp;lt;code&amp;gt;&amp;lt;MSYS2&amp;gt;&amp;lt;/code&amp;gt; refers to the MSYS2 installation folder, typically &amp;lt;code&amp;gt;C:\msys64&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install tools and libraries ===&lt;br /&gt;
&lt;br /&gt;
MSYS2 uses the package manager &amp;lt;code&amp;gt;pacman&amp;lt;/code&amp;gt; to install software and components. Please refer to the [https://wiki.archlinux.org/index.php/pacman pacman manual] for details.&lt;br /&gt;
 &lt;br /&gt;
First, install a few miscellaneous tools:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ pacman -S tar gzip nano make diffutils intltool git&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the necessary development tools and the required libraries:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-gdb mingw-w64-x86_64-make mingw-w64-x86_64-pkg-config mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-gtkmm3 mingw-w64-x86_64-lcms2 mingw-w64-x86_64-fftw mingw-w64-x86_64-lensfun mingw-w64-x86_64-libiptcdata&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: the &amp;lt;code&amp;gt;mingw-w64-x86_64-libiptcdata&amp;lt;/code&amp;gt; package has been added to MSYS2 in December 2020. If you experience difficulty using this package, please see the instructions below how to compile the library yourself.&lt;br /&gt;
&lt;br /&gt;
=== Updating Lensfun database ===&lt;br /&gt;
&lt;br /&gt;
RawTherapee uses the [https://lensfun.github.io Lensfun] library for lens-specific corrections. Run the following command to update the database:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ lensfun-update-data&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The updater returns the path where the updated database is located. '''Copy this path for later use!'''&lt;br /&gt;
&lt;br /&gt;
=== Download and build libiptcdata ===&lt;br /&gt;
&lt;br /&gt;
Since December 2020 the &amp;lt;code&amp;gt;libiptcdata&amp;lt;/code&amp;gt; library is provided by MSYS2 and no longer requires manual compilation. &amp;lt;i&amp;gt;Only if you experience problems using this library&amp;lt;/i&amp;gt;, follow the instructions below to manually build it:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cd ~&lt;br /&gt;
$ curl -LO http://downloads.sourceforge.net/project/libiptcdata/libiptcdata/1.0.4/libiptcdata-1.0.4.tar.gz&lt;br /&gt;
$ tar xzf libiptcdata-1.0.4.tar.gz&lt;br /&gt;
$ cd libiptcdata-1.0.4&lt;br /&gt;
$ ./configure --prefix=/mingw64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some modifications to the resulting &amp;lt;code&amp;gt;Makefile&amp;lt;/code&amp;gt; are needed. You can edit the file with any text editor (either through your OS or from within the shell). We use the &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; editor from within the shell:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ nano Makefile&lt;br /&gt;
&lt;br /&gt;
# search (command Ctrl+W)&lt;br /&gt;
DIST_SUBDIRS = m4 libiptcdata po iptc docs win python&lt;br /&gt;
# and replace with&lt;br /&gt;
DIST_SUBDIRS = m4 libiptcdata po win python&lt;br /&gt;
&lt;br /&gt;
# search&lt;br /&gt;
SUBDIRS = m4 libiptcdata po iptc docs win $(MAYBE_PYTHONLIB)&lt;br /&gt;
# and replace with&lt;br /&gt;
SUBDIRS = m4 libiptcdata po win $(MAYBE_PYTHONLIB)&lt;br /&gt;
&lt;br /&gt;
# save and quit&lt;br /&gt;
Ctrl+X, Y&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally build and install the library:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Clone and build RawTherapee ==&lt;br /&gt;
&lt;br /&gt;
=== Clone RawTherapee's git repository. ===&lt;br /&gt;
RawTherapee's source code can be cloned from [https://github.com/Beep6581/RawTherapee the official GitHub repository]:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cd ~&lt;br /&gt;
$ git clone git://github.com/Beep6581/RawTherapee.git&lt;br /&gt;
$ cd RawTherapee&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Switching branches ===&lt;br /&gt;
After cloning you will automatically have checked out the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch. This is the main development branch of RawTherapee and probably what you want to use. To switch to a [https://github.com/Beep6581/RawTherapee/branches different branch], do the following:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ git checkout branchname # replace with another available branch name&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create a separate directory for the build ===&lt;br /&gt;
It is essential to create a new directory to build the application. The directory can have any name, for example:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ mkdir build&lt;br /&gt;
$ cd build&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: if you switch branches, ''always build in an empty directory'' to prevent issues. From within a build directory, you can run &amp;lt;code&amp;gt;rm -rf *&amp;lt;/code&amp;gt; to remove all files.&lt;br /&gt;
&lt;br /&gt;
=== Configuration and compilation ===&lt;br /&gt;
To create an optimized build for your machine architecture, use the following commands:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cmake -G &amp;quot;Ninja&amp;quot; -DLENSFUNDBDIR=put/your/lensfun/directory/here -DCMAKE_BUILD_TYPE=&amp;quot;release&amp;quot; -DPROC_TARGET_NUMBER=&amp;quot;2&amp;quot; -DCACHE_NAME_SUFFIX=&amp;quot;5-dev&amp;quot; ..&lt;br /&gt;
$ cmake --build . --target install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Make sure to replace the path to the Lensfun database with the actual path obtained a few steps before. See the [[Linux#CMake|Linux article]] for more details on the various options. Depending on your system, the build process may take anywhere between 5 and 25 minutes.&lt;br /&gt;
&lt;br /&gt;
There may be warnings during the build process which you can safely ignore. Errors that are not traceable to a mistake when following this guide should be reported [https://github.com/Beep6581/RawTherapee/issues/new?assignees=&amp;amp;labels=&amp;amp;template=bug_report.md&amp;amp;title= here]. &lt;br /&gt;
&lt;br /&gt;
=== Starting RawTherapee ===&lt;br /&gt;
RawTherapee can now be run:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ ./release/rawtherapee.exe # replace release with debug or relwithdebinfo if you built another target&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional: preloaded CMake cache ===&lt;br /&gt;
As described in the [https://cmake.org/cmake/help/latest/manual/cmake.1.html CMake manual]&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
-C &amp;lt;initial-cache&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    Pre-load a script to populate the cache.&lt;br /&gt;
&lt;br /&gt;
    When cmake is first run in an empty build tree, it creates a CMakeCache.txt file and populates it with customizable settings for the project. This option may be used to specify a file from which to load cache entries before the first pass through the project’s cmake listfiles. The loaded entries take priority over the project’s default values. The given file should be a CMake script containing SET commands that use the CACHE option, not a cache-format file.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To simplify the invocation of CMake and be able to easily define Windows specific options, a &amp;lt;code&amp;gt;win.cmake&amp;lt;/code&amp;gt; template script is provided with the sources. Copy it out of RawTherapee's source to avoid overwriting by update for instance in &amp;lt;code&amp;gt;mywin.cmake&amp;lt;/code&amp;gt;.&lt;br /&gt;
Edit it to define or modify options. To preload the cache, in the CMake command line:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cmake -G &amp;quot;Ninja&amp;quot; -DLENSFUNDBDIR=share/lensfun -DCMAKE_BUILD_TYPE=&amp;quot;release&amp;quot; -DPROC_TARGET_NUMBER=&amp;quot;2&amp;quot; -DCACHE_NAME_SUFFIX=&amp;quot;5-dev&amp;quot; -C &amp;lt;path/to/mywin.cmake&amp;gt; ..&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Making a bundled build ==&lt;br /&gt;
&lt;br /&gt;
This section only applies if you want to run RawTherapee outside the MinGW shell or distribute it.&lt;br /&gt;
&lt;br /&gt;
Note: You can copy either with the Windows file manager or, recommended, with [https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy robocopy] inside the &amp;lt;code&amp;gt;mingw64&amp;lt;/code&amp;gt; shell script using &amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt; instead of &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt; for the options.&lt;br /&gt;
&lt;br /&gt;
=== Definition of folders ===&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;prefix&amp;gt;&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;&amp;lt;MSYS2&amp;gt;\mingw64&amp;lt;/code&amp;gt;,&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;MSYS2&amp;gt;&amp;lt;/code&amp;gt; is the MSYS2 installation folder,&lt;br /&gt;
*and &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt; is the RawTherapee installation folder.&lt;br /&gt;
&lt;br /&gt;
=== Copy RawTherapee executable and generated files ===&lt;br /&gt;
Copy the content of &amp;lt;code&amp;gt;c:\code\repo-rt\build\&amp;lt;debug|release|relwithdebinfo&amp;gt;&amp;lt;/code&amp;gt; into &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Copy the  dependencies ===&lt;br /&gt;
Copy the necessary DLLs and exe from &amp;lt;code&amp;gt;&amp;lt;prefix&amp;gt;\bin&amp;lt;/code&amp;gt; into &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt;.&lt;br /&gt;
The current list of required DLLs and EXE is:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
gspawn-win64-helper.exe&lt;br /&gt;
gspawn-win64-helper-console.exe&lt;br /&gt;
gdbus.exe&lt;br /&gt;
libatk-1.0-0.dll&lt;br /&gt;
libatkmm-1.6-1.dll&lt;br /&gt;
libbz2-1.dll&lt;br /&gt;
libcairo-2.dll&lt;br /&gt;
libcairo-gobject-2.dll&lt;br /&gt;
libcairomm-1.0-1.dll&lt;br /&gt;
libcroco-0.6-3.dll&lt;br /&gt;
libdatrie-1.dll&lt;br /&gt;
libepoxy-0.dll&lt;br /&gt;
libexpat-1.dll&lt;br /&gt;
libffi-6.dll&lt;br /&gt;
libfftw3f-3.dll&lt;br /&gt;
libfontconfig-1.dll&lt;br /&gt;
libfreetype-6.dll&lt;br /&gt;
libfribidi-0.dll&lt;br /&gt;
libgcc_s_seh-1.dll&lt;br /&gt;
libgdk_pixbuf-2.0-0.dll&lt;br /&gt;
libgdk-3-0.dll&lt;br /&gt;
libgdkmm-3.0-1.dll&lt;br /&gt;
libgio-2.0-0.dll&lt;br /&gt;
libgiomm-2.4-1.dll&lt;br /&gt;
libglib-2.0-0.dll&lt;br /&gt;
libglibmm-2.4-1.dll&lt;br /&gt;
libgmodule-2.0-0.dll&lt;br /&gt;
libgobject-2.0-0.dll&lt;br /&gt;
libgomp-1.dll&lt;br /&gt;
libgraphite2.dll&lt;br /&gt;
libgtk-3-0.dll&lt;br /&gt;
libgtkmm-3.0-1.dll&lt;br /&gt;
libharfbuzz-0.dll&lt;br /&gt;
libiconv-2.dll&lt;br /&gt;
libintl-8.dll&lt;br /&gt;
libjpeg-8.dll&lt;br /&gt;
liblcms2-2.dll&lt;br /&gt;
liblensfun.dll&lt;br /&gt;
liblzma-5.dll&lt;br /&gt;
libpango-1.0-0.dll&lt;br /&gt;
libpangocairo-1.0-0.dll&lt;br /&gt;
libpangoft2-1.0-0.dll&lt;br /&gt;
libpangomm-1.4-1.dll&lt;br /&gt;
libpangowin32-1.0-0.dll&lt;br /&gt;
libpcre-1.dll&lt;br /&gt;
libpixman-1-0.dll&lt;br /&gt;
libpng16-16.dll&lt;br /&gt;
librsvg-2-2.dll&lt;br /&gt;
libsigc-2.0-0.dll&lt;br /&gt;
libstdc++-6.dll&lt;br /&gt;
libsystre-0.dll&lt;br /&gt;
libthai-0.dll&lt;br /&gt;
libtiff-5.dll&lt;br /&gt;
libtre-5.dll&lt;br /&gt;
libwinpthread-1.dll&lt;br /&gt;
libxml2-2.dll&lt;br /&gt;
libzstd.dll&lt;br /&gt;
zlib1.dll&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the following list of Adwaita theme files and directories  from &amp;lt;code&amp;gt;&amp;lt;prefix&amp;gt;\share\icons\Adwaita\&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;.\share\icons\Adwaita\&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
scalable\actions&lt;br /&gt;
scalable\devices&lt;br /&gt;
scalable\mimetypes&lt;br /&gt;
scalable\places&lt;br /&gt;
scalable\status&lt;br /&gt;
scalable\ui&lt;br /&gt;
index.theme&lt;br /&gt;
cursors\plus.cur&lt;br /&gt;
cursors\sb_h_double_arrow.cur&lt;br /&gt;
cursors\sb_left_arrow.cur&lt;br /&gt;
cursors\sb_right_arrow.cur&lt;br /&gt;
cursors\sb_v_double_arrow.cur&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy following files :&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;prefix&amp;gt;\lib\gdk-pixbuf-2.0 -&amp;gt; .\lib\gdk-pixbuf-2.0&lt;br /&gt;
&amp;lt;prefix&amp;gt;\share\glib-2.0\schemas\gschemas.compiled -&amp;gt; .\share\glib-2.0\schemas&lt;br /&gt;
&amp;lt;prefix&amp;gt;\share\lensfun\version_1\* -&amp;gt; .\share\lensfun&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create in .\share\gtk-3.0 a file &amp;lt;code&amp;gt;settings.ini&amp;lt;/code&amp;gt; containing :&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
[Settings] gtk-button-images=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Creating a distributable package ==&lt;br /&gt;
&lt;br /&gt;
If you plan to distribute RawTherapee packages for the Windows platform, as a first step you need to make sure that RawTherapee will be built for the &amp;quot;generic&amp;quot; processor target. To do so, use &amp;lt;code&amp;gt;-DPROC_TARGET_NUMBER=&amp;quot;1&amp;quot;&amp;lt;/code&amp;gt; in the CMake command.&lt;br /&gt;
&lt;br /&gt;
During compilation, a script named &amp;lt;code&amp;gt;WindowsInnoSetup.iss&amp;lt;/code&amp;gt; is created in the RawTherapee installation folder. This script is used by Inno Setup [http://www.jrsoftware.org/isinfo.php], a program which is used to generate installers for Windows programs. It is advised to download the Unicode version [http://www.jrsoftware.org/download.php/is-unicode.exe] to avoid problems with some languages.&lt;br /&gt;
&lt;br /&gt;
To help users [[How_to_write_useful_bug_reports|write useful bug reports]], package maintainers are encouraged to produce builds which include both a &amp;quot;release&amp;quot; and a &amp;quot;debug&amp;quot; executable, and to bundle them together with the GDB debugger executable.&lt;br /&gt;
&lt;br /&gt;
In other words, put the &amp;lt;code&amp;gt;rawtherapee.exe&amp;lt;/code&amp;gt; (release) file together with the &amp;lt;code&amp;gt;rawtherapee-debug.exe&amp;lt;/code&amp;gt; (debug) file and the &amp;lt;code&amp;gt;gdb.exe&amp;lt;/code&amp;gt; file together into the same installer or the same archive. An alternative is to produce &amp;quot;relwithdebinfo&amp;quot; builds - these are much faster than &amp;quot;debug&amp;quot; but not as optimized as &amp;quot;release&amp;quot; builds, yet they provide just about as much useful information as &amp;quot;debug&amp;quot; builds. &lt;br /&gt;
&lt;br /&gt;
When making &amp;quot;relwithdebinfo&amp;quot; or &amp;quot;debug&amp;quot; builds you must provide the GDB debugger executable. Windows binaries of the debugger &amp;lt;code&amp;gt;gdb.exe&amp;lt;/code&amp;gt; can be downloaded from [http://www.equation.com/servlet/equation.cmd?fa=gdb here] in 32- and 64-bit versions and will be copied into Rawtherapee installation folder.&lt;br /&gt;
&lt;br /&gt;
Now that everything is set up, to create the package right-click on the &amp;lt;code&amp;gt;WindowsInnoSetup.iss&amp;lt;/code&amp;gt; script and choose ''Compile'' from the context menu. It will automatically generate the installer and place it in the parent folder.&lt;br /&gt;
&lt;br /&gt;
To make your new package compatible with the RawTherapee website's upload panel, create a zip archive in which you will place both the newly created installer and the corresponding ''AboutThisBuild.txt'' file which can be found at the same place. Name the resulting zip archive following this template:&lt;br /&gt;
&amp;lt;code&amp;gt;RawTherapee_&amp;lt;version&amp;gt;_WinVista_64_&amp;lt;buildtype&amp;gt;.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are building and distributing nightly builds, follow this template:&lt;br /&gt;
&amp;lt;code&amp;gt;RawTherapee_&amp;lt;branch&amp;gt;_&amp;lt;version&amp;gt;_WinVista_64_&amp;lt;buildtype&amp;gt;.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;WinVista&amp;quot;  means it can run on any version of Windows from Vista upwards, including 10.&lt;br /&gt;
* The &amp;quot;version&amp;quot; will either look like &amp;lt;code&amp;gt;5.8&amp;lt;/code&amp;gt; if you checkout the &amp;lt;code&amp;gt;5.8&amp;lt;/code&amp;gt; tag, or &amp;lt;code&amp;gt;5.8-g35abd92&lt;br /&gt;
&amp;lt;/code&amp;gt; if you checkout the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch after 5.8 was tagged.&lt;br /&gt;
* If you are shipping more than one build type in an installer, don't include &amp;lt;buildtype&amp;gt; in the name.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Windows&amp;diff=8554</id>
		<title>Windows</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Windows&amp;diff=8554"/>
		<updated>2021-06-17T06:21:56Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Note about libiptcdata&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Windows&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Follow the instructions on this page to compile RawTherapee on Windows using the [https://www.msys2.org MSYS2] build environment. For more details on customizing and understanding the build process, see the [[Linux]] article.&lt;br /&gt;
&lt;br /&gt;
Note: this guide applies to compiling the '''64-bit''' version of RawTherapee under '''Windows 7 and newer'''. Compiling the 32-bit version is no longer supported, nor is compilation on older operating systems. The latest version of RawTherapee to work under 32-bit Windows XP is 5.0-rc1, and can be downloaded [http://www.rawtherapee.com/downloads/5.0-r1/ here] (dated 2017-02-02).&lt;br /&gt;
&lt;br /&gt;
Note that RawTherapee also requires the availability of GTK+ 3.22.24 or newer to have [https://gitlab.gnome.org/GNOME/gtk/issues/760#note_110809 native window support]. Without it RawTherapee may exhibit [https://github.com/Beep6581/RawTherapee/issues/4125 strange behavior], such as maximizing underneath the taskbar in Windows 10. When using an up to date build environment, you should not encounter this problem.&lt;br /&gt;
&lt;br /&gt;
== MSYS2 Installation ==&lt;br /&gt;
&lt;br /&gt;
=== Install MSYS2 base system ===&lt;br /&gt;
&lt;br /&gt;
Install the build environment MSYS2 carefully by following the instructions from the [https://www.msys2.org MSYS2 website]. Make sure to update the system fully until no further updates are available, using the command:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ pacman -Syu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
MSYS2 provides [https://www.msys2.org/wiki/MSYS2-introduction/ three 'shells'] (command-line interfaces) for different purposes: '''MSYS''', '''MinGW 32-bit''' and '''MinGW 64-bit'''. They can be launched through shortcuts in your Start menu. Most commonly you will be running a 64-bit operating system and will want to create applications that are optimized for that. Therefore, start the '''MSYS2 MinGW 64-bit''' shell and continue below.&lt;br /&gt;
&lt;br /&gt;
[[File:MSYS2 Shell.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note: in following text, &amp;lt;code&amp;gt;&amp;lt;MSYS2&amp;gt;&amp;lt;/code&amp;gt; refers to the MSYS2 installation folder, typically &amp;lt;code&amp;gt;C:\msys64&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install tools and libraries ===&lt;br /&gt;
&lt;br /&gt;
MSYS2 uses the package manager &amp;lt;code&amp;gt;pacman&amp;lt;/code&amp;gt; to install software and components. Please refer to the [https://wiki.archlinux.org/index.php/pacman pacman manual] for details.&lt;br /&gt;
 &lt;br /&gt;
First, install a few miscellaneous tools:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ pacman -S tar gzip nano make diffutils intltool git&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the necessary development tools and the required libraries:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-gdb mingw-w64-x86_64-make mingw-w64-x86_64-pkg-config mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-gtkmm3 mingw-w64-x86_64-lcms2 mingw-w64-x86_64-fftw mingw-w64-x86_64-lensfun mingw-w64-x86_64-libiptcdata&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: the &amp;lt;code&amp;gt;mingw-w64-x86_64-libiptcdata&amp;lt;/code&amp;gt; package has been added to MSYS2 in December 2020. If you experience difficulty using this package, please see the instructions below how to compile the library yourself.&lt;br /&gt;
&lt;br /&gt;
=== Updating Lensfun database ===&lt;br /&gt;
&lt;br /&gt;
RawTherapee uses the [https://lensfun.github.io Lensfun] library for lens-specific corrections. Run the following command to update the database:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ lensfun-update-data&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The updater returns the path where the updated database is located. '''Copy this path for later use!'''&lt;br /&gt;
&lt;br /&gt;
=== Download and build libiptcdata ===&lt;br /&gt;
&lt;br /&gt;
The required &amp;lt;code&amp;gt;libiptcdata&amp;lt;/code&amp;gt; library is not provided by MSYS2 and should be built manually. Follow the following steps:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cd ~&lt;br /&gt;
$ curl -LO http://downloads.sourceforge.net/project/libiptcdata/libiptcdata/1.0.4/libiptcdata-1.0.4.tar.gz&lt;br /&gt;
$ tar xzf libiptcdata-1.0.4.tar.gz&lt;br /&gt;
$ cd libiptcdata-1.0.4&lt;br /&gt;
$ ./configure --prefix=/mingw64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some modifications to the resulting &amp;lt;code&amp;gt;Makefile&amp;lt;/code&amp;gt; are needed. You can edit the file with any text editor (either through your OS or from within the shell). We use the &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; editor from within the shell:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ nano Makefile&lt;br /&gt;
&lt;br /&gt;
# search (command Ctrl+W)&lt;br /&gt;
DIST_SUBDIRS = m4 libiptcdata po iptc docs win python&lt;br /&gt;
# and replace with&lt;br /&gt;
DIST_SUBDIRS = m4 libiptcdata po win python&lt;br /&gt;
&lt;br /&gt;
# search&lt;br /&gt;
SUBDIRS = m4 libiptcdata po iptc docs win $(MAYBE_PYTHONLIB)&lt;br /&gt;
# and replace with&lt;br /&gt;
SUBDIRS = m4 libiptcdata po win $(MAYBE_PYTHONLIB)&lt;br /&gt;
&lt;br /&gt;
# save and quit&lt;br /&gt;
Ctrl+X, Y&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally build and install the library:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Clone and build RawTherapee ==&lt;br /&gt;
&lt;br /&gt;
=== Clone RawTherapee's git repository. ===&lt;br /&gt;
RawTherapee's source code can be cloned from [https://github.com/Beep6581/RawTherapee the official GitHub repository]:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cd ~&lt;br /&gt;
$ git clone git://github.com/Beep6581/RawTherapee.git&lt;br /&gt;
$ cd RawTherapee&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Switching branches ===&lt;br /&gt;
After cloning you will automatically have checked out the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch. This is the main development branch of RawTherapee and probably what you want to use. To switch to a [https://github.com/Beep6581/RawTherapee/branches different branch], do the following:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ git checkout branchname # replace with another available branch name&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create a separate directory for the build ===&lt;br /&gt;
It is essential to create a new directory to build the application. The directory can have any name, for example:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ mkdir build&lt;br /&gt;
$ cd build&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: if you switch branches, ''always build in an empty directory'' to prevent issues. From within a build directory, you can run &amp;lt;code&amp;gt;rm -rf *&amp;lt;/code&amp;gt; to remove all files.&lt;br /&gt;
&lt;br /&gt;
=== Configuration and compilation ===&lt;br /&gt;
To create an optimized build for your machine architecture, use the following commands:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cmake -G &amp;quot;Ninja&amp;quot; -DLENSFUNDBDIR=put/your/lensfun/directory/here -DCMAKE_BUILD_TYPE=&amp;quot;release&amp;quot; -DPROC_TARGET_NUMBER=&amp;quot;2&amp;quot; -DCACHE_NAME_SUFFIX=&amp;quot;5-dev&amp;quot; ..&lt;br /&gt;
$ cmake --build . --target install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Make sure to replace the path to the Lensfun database with the actual path obtained a few steps before. See the [[Linux#CMake|Linux article]] for more details on the various options. Depending on your system, the build process may take anywhere between 5 and 25 minutes.&lt;br /&gt;
&lt;br /&gt;
There may be warnings during the build process which you can safely ignore. Errors that are not traceable to a mistake when following this guide should be reported [https://github.com/Beep6581/RawTherapee/issues/new?assignees=&amp;amp;labels=&amp;amp;template=bug_report.md&amp;amp;title= here]. &lt;br /&gt;
&lt;br /&gt;
=== Starting RawTherapee ===&lt;br /&gt;
RawTherapee can now be run:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ ./release/rawtherapee.exe # replace release with debug or relwithdebinfo if you built another target&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional: preloaded CMake cache ===&lt;br /&gt;
As described in the [https://cmake.org/cmake/help/latest/manual/cmake.1.html CMake manual]&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
-C &amp;lt;initial-cache&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    Pre-load a script to populate the cache.&lt;br /&gt;
&lt;br /&gt;
    When cmake is first run in an empty build tree, it creates a CMakeCache.txt file and populates it with customizable settings for the project. This option may be used to specify a file from which to load cache entries before the first pass through the project’s cmake listfiles. The loaded entries take priority over the project’s default values. The given file should be a CMake script containing SET commands that use the CACHE option, not a cache-format file.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To simplify the invocation of CMake and be able to easily define Windows specific options, a &amp;lt;code&amp;gt;win.cmake&amp;lt;/code&amp;gt; template script is provided with the sources. Copy it out of RawTherapee's source to avoid overwriting by update for instance in &amp;lt;code&amp;gt;mywin.cmake&amp;lt;/code&amp;gt;.&lt;br /&gt;
Edit it to define or modify options. To preload the cache, in the CMake command line:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cmake -G &amp;quot;Ninja&amp;quot; -DLENSFUNDBDIR=share/lensfun -DCMAKE_BUILD_TYPE=&amp;quot;release&amp;quot; -DPROC_TARGET_NUMBER=&amp;quot;2&amp;quot; -DCACHE_NAME_SUFFIX=&amp;quot;5-dev&amp;quot; -C &amp;lt;path/to/mywin.cmake&amp;gt; ..&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Making a bundled build ==&lt;br /&gt;
&lt;br /&gt;
This section only applies if you want to run RawTherapee outside the MinGW shell or distribute it.&lt;br /&gt;
&lt;br /&gt;
Note: You can copy either with the Windows file manager or, recommended, with [https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy robocopy] inside the &amp;lt;code&amp;gt;mingw64&amp;lt;/code&amp;gt; shell script using &amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt; instead of &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt; for the options.&lt;br /&gt;
&lt;br /&gt;
=== Definition of folders ===&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;prefix&amp;gt;&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;&amp;lt;MSYS2&amp;gt;\mingw64&amp;lt;/code&amp;gt;,&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;MSYS2&amp;gt;&amp;lt;/code&amp;gt; is the MSYS2 installation folder,&lt;br /&gt;
*and &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt; is the RawTherapee installation folder.&lt;br /&gt;
&lt;br /&gt;
=== Copy RawTherapee executable and generated files ===&lt;br /&gt;
Copy the content of &amp;lt;code&amp;gt;c:\code\repo-rt\build\&amp;lt;debug|release|relwithdebinfo&amp;gt;&amp;lt;/code&amp;gt; into &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Copy the  dependencies ===&lt;br /&gt;
Copy the necessary DLLs and exe from &amp;lt;code&amp;gt;&amp;lt;prefix&amp;gt;\bin&amp;lt;/code&amp;gt; into &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt;.&lt;br /&gt;
The current list of required DLLs and EXE is:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
gspawn-win64-helper.exe&lt;br /&gt;
gspawn-win64-helper-console.exe&lt;br /&gt;
gdbus.exe&lt;br /&gt;
libatk-1.0-0.dll&lt;br /&gt;
libatkmm-1.6-1.dll&lt;br /&gt;
libbz2-1.dll&lt;br /&gt;
libcairo-2.dll&lt;br /&gt;
libcairo-gobject-2.dll&lt;br /&gt;
libcairomm-1.0-1.dll&lt;br /&gt;
libcroco-0.6-3.dll&lt;br /&gt;
libdatrie-1.dll&lt;br /&gt;
libepoxy-0.dll&lt;br /&gt;
libexpat-1.dll&lt;br /&gt;
libffi-6.dll&lt;br /&gt;
libfftw3f-3.dll&lt;br /&gt;
libfontconfig-1.dll&lt;br /&gt;
libfreetype-6.dll&lt;br /&gt;
libfribidi-0.dll&lt;br /&gt;
libgcc_s_seh-1.dll&lt;br /&gt;
libgdk_pixbuf-2.0-0.dll&lt;br /&gt;
libgdk-3-0.dll&lt;br /&gt;
libgdkmm-3.0-1.dll&lt;br /&gt;
libgio-2.0-0.dll&lt;br /&gt;
libgiomm-2.4-1.dll&lt;br /&gt;
libglib-2.0-0.dll&lt;br /&gt;
libglibmm-2.4-1.dll&lt;br /&gt;
libgmodule-2.0-0.dll&lt;br /&gt;
libgobject-2.0-0.dll&lt;br /&gt;
libgomp-1.dll&lt;br /&gt;
libgraphite2.dll&lt;br /&gt;
libgtk-3-0.dll&lt;br /&gt;
libgtkmm-3.0-1.dll&lt;br /&gt;
libharfbuzz-0.dll&lt;br /&gt;
libiconv-2.dll&lt;br /&gt;
libintl-8.dll&lt;br /&gt;
libjpeg-8.dll&lt;br /&gt;
liblcms2-2.dll&lt;br /&gt;
liblensfun.dll&lt;br /&gt;
liblzma-5.dll&lt;br /&gt;
libpango-1.0-0.dll&lt;br /&gt;
libpangocairo-1.0-0.dll&lt;br /&gt;
libpangoft2-1.0-0.dll&lt;br /&gt;
libpangomm-1.4-1.dll&lt;br /&gt;
libpangowin32-1.0-0.dll&lt;br /&gt;
libpcre-1.dll&lt;br /&gt;
libpixman-1-0.dll&lt;br /&gt;
libpng16-16.dll&lt;br /&gt;
librsvg-2-2.dll&lt;br /&gt;
libsigc-2.0-0.dll&lt;br /&gt;
libstdc++-6.dll&lt;br /&gt;
libsystre-0.dll&lt;br /&gt;
libthai-0.dll&lt;br /&gt;
libtiff-5.dll&lt;br /&gt;
libtre-5.dll&lt;br /&gt;
libwinpthread-1.dll&lt;br /&gt;
libxml2-2.dll&lt;br /&gt;
libzstd.dll&lt;br /&gt;
zlib1.dll&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the following list of Adwaita theme files and directories  from &amp;lt;code&amp;gt;&amp;lt;prefix&amp;gt;\share\icons\Adwaita\&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;.\share\icons\Adwaita\&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
scalable\actions&lt;br /&gt;
scalable\devices&lt;br /&gt;
scalable\mimetypes&lt;br /&gt;
scalable\places&lt;br /&gt;
scalable\status&lt;br /&gt;
scalable\ui&lt;br /&gt;
index.theme&lt;br /&gt;
cursors\plus.cur&lt;br /&gt;
cursors\sb_h_double_arrow.cur&lt;br /&gt;
cursors\sb_left_arrow.cur&lt;br /&gt;
cursors\sb_right_arrow.cur&lt;br /&gt;
cursors\sb_v_double_arrow.cur&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy following files :&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;prefix&amp;gt;\lib\gdk-pixbuf-2.0 -&amp;gt; .\lib\gdk-pixbuf-2.0&lt;br /&gt;
&amp;lt;prefix&amp;gt;\share\glib-2.0\schemas\gschemas.compiled -&amp;gt; .\share\glib-2.0\schemas&lt;br /&gt;
&amp;lt;prefix&amp;gt;\share\lensfun\version_1\* -&amp;gt; .\share\lensfun&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create in .\share\gtk-3.0 a file &amp;lt;code&amp;gt;settings.ini&amp;lt;/code&amp;gt; containing :&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
[Settings] gtk-button-images=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Creating a distributable package ==&lt;br /&gt;
&lt;br /&gt;
If you plan to distribute RawTherapee packages for the Windows platform, as a first step you need to make sure that RawTherapee will be built for the &amp;quot;generic&amp;quot; processor target. To do so, use &amp;lt;code&amp;gt;-DPROC_TARGET_NUMBER=&amp;quot;1&amp;quot;&amp;lt;/code&amp;gt; in the CMake command.&lt;br /&gt;
&lt;br /&gt;
During compilation, a script named &amp;lt;code&amp;gt;WindowsInnoSetup.iss&amp;lt;/code&amp;gt; is created in the RawTherapee installation folder. This script is used by Inno Setup [http://www.jrsoftware.org/isinfo.php], a program which is used to generate installers for Windows programs. It is advised to download the Unicode version [http://www.jrsoftware.org/download.php/is-unicode.exe] to avoid problems with some languages.&lt;br /&gt;
&lt;br /&gt;
To help users [[How_to_write_useful_bug_reports|write useful bug reports]], package maintainers are encouraged to produce builds which include both a &amp;quot;release&amp;quot; and a &amp;quot;debug&amp;quot; executable, and to bundle them together with the GDB debugger executable.&lt;br /&gt;
&lt;br /&gt;
In other words, put the &amp;lt;code&amp;gt;rawtherapee.exe&amp;lt;/code&amp;gt; (release) file together with the &amp;lt;code&amp;gt;rawtherapee-debug.exe&amp;lt;/code&amp;gt; (debug) file and the &amp;lt;code&amp;gt;gdb.exe&amp;lt;/code&amp;gt; file together into the same installer or the same archive. An alternative is to produce &amp;quot;relwithdebinfo&amp;quot; builds - these are much faster than &amp;quot;debug&amp;quot; but not as optimized as &amp;quot;release&amp;quot; builds, yet they provide just about as much useful information as &amp;quot;debug&amp;quot; builds. &lt;br /&gt;
&lt;br /&gt;
When making &amp;quot;relwithdebinfo&amp;quot; or &amp;quot;debug&amp;quot; builds you must provide the GDB debugger executable. Windows binaries of the debugger &amp;lt;code&amp;gt;gdb.exe&amp;lt;/code&amp;gt; can be downloaded from [http://www.equation.com/servlet/equation.cmd?fa=gdb here] in 32- and 64-bit versions and will be copied into Rawtherapee installation folder.&lt;br /&gt;
&lt;br /&gt;
Now that everything is set up, to create the package right-click on the &amp;lt;code&amp;gt;WindowsInnoSetup.iss&amp;lt;/code&amp;gt; script and choose ''Compile'' from the context menu. It will automatically generate the installer and place it in the parent folder.&lt;br /&gt;
&lt;br /&gt;
To make your new package compatible with the RawTherapee website's upload panel, create a zip archive in which you will place both the newly created installer and the corresponding ''AboutThisBuild.txt'' file which can be found at the same place. Name the resulting zip archive following this template:&lt;br /&gt;
&amp;lt;code&amp;gt;RawTherapee_&amp;lt;version&amp;gt;_WinVista_64_&amp;lt;buildtype&amp;gt;.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are building and distributing nightly builds, follow this template:&lt;br /&gt;
&amp;lt;code&amp;gt;RawTherapee_&amp;lt;branch&amp;gt;_&amp;lt;version&amp;gt;_WinVista_64_&amp;lt;buildtype&amp;gt;.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;WinVista&amp;quot;  means it can run on any version of Windows from Vista upwards, including 10.&lt;br /&gt;
* The &amp;quot;version&amp;quot; will either look like &amp;lt;code&amp;gt;5.8&amp;lt;/code&amp;gt; if you checkout the &amp;lt;code&amp;gt;5.8&amp;lt;/code&amp;gt; tag, or &amp;lt;code&amp;gt;5.8-g35abd92&lt;br /&gt;
&amp;lt;/code&amp;gt; if you checkout the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch after 5.8 was tagged.&lt;br /&gt;
* If you are shipping more than one build type in an installer, don't include &amp;lt;buildtype&amp;gt; in the name.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Windows&amp;diff=8553</id>
		<title>Windows</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Windows&amp;diff=8553"/>
		<updated>2021-06-17T06:20:42Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: libiptcdata is now provided by msys2&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Windows&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Follow the instructions on this page to compile RawTherapee on Windows using the [https://www.msys2.org MSYS2] build environment. For more details on customizing and understanding the build process, see the [[Linux]] article.&lt;br /&gt;
&lt;br /&gt;
Note: this guide applies to compiling the '''64-bit''' version of RawTherapee under '''Windows 7 and newer'''. Compiling the 32-bit version is no longer supported, nor is compilation on older operating systems. The latest version of RawTherapee to work under 32-bit Windows XP is 5.0-rc1, and can be downloaded [http://www.rawtherapee.com/downloads/5.0-r1/ here] (dated 2017-02-02).&lt;br /&gt;
&lt;br /&gt;
Note that RawTherapee also requires the availability of GTK+ 3.22.24 or newer to have [https://gitlab.gnome.org/GNOME/gtk/issues/760#note_110809 native window support]. Without it RawTherapee may exhibit [https://github.com/Beep6581/RawTherapee/issues/4125 strange behavior], such as maximizing underneath the taskbar in Windows 10. When using an up to date build environment, you should not encounter this problem.&lt;br /&gt;
&lt;br /&gt;
== MSYS2 Installation ==&lt;br /&gt;
&lt;br /&gt;
=== Install MSYS2 base system ===&lt;br /&gt;
&lt;br /&gt;
Install the build environment MSYS2 carefully by following the instructions from the [https://www.msys2.org MSYS2 website]. Make sure to update the system fully until no further updates are available, using the command:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ pacman -Syu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
MSYS2 provides [https://www.msys2.org/wiki/MSYS2-introduction/ three 'shells'] (command-line interfaces) for different purposes: '''MSYS''', '''MinGW 32-bit''' and '''MinGW 64-bit'''. They can be launched through shortcuts in your Start menu. Most commonly you will be running a 64-bit operating system and will want to create applications that are optimized for that. Therefore, start the '''MSYS2 MinGW 64-bit''' shell and continue below.&lt;br /&gt;
&lt;br /&gt;
[[File:MSYS2 Shell.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note: in following text, &amp;lt;code&amp;gt;&amp;lt;MSYS2&amp;gt;&amp;lt;/code&amp;gt; refers to the MSYS2 installation folder, typically &amp;lt;code&amp;gt;C:\msys64&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install tools and libraries ===&lt;br /&gt;
&lt;br /&gt;
MSYS2 uses the package manager &amp;lt;code&amp;gt;pacman&amp;lt;/code&amp;gt; to install software and components. Please refer to the [https://wiki.archlinux.org/index.php/pacman pacman manual] for details.&lt;br /&gt;
 &lt;br /&gt;
First, install a few miscellaneous tools:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ pacman -S tar gzip nano make diffutils intltool git&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the necessary development tools and the required libraries:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-gdb mingw-w64-x86_64-make mingw-w64-x86_64-pkg-config mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-gtkmm3 mingw-w64-x86_64-lcms2 mingw-w64-x86_64-fftw mingw-w64-x86_64-lensfun mingw-w64-x86_64-libiptcdata&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Updating Lensfun database ===&lt;br /&gt;
&lt;br /&gt;
RawTherapee uses the [https://lensfun.github.io Lensfun] library for lens-specific corrections. Run the following command to update the database:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ lensfun-update-data&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The updater returns the path where the updated database is located. '''Copy this path for later use!'''&lt;br /&gt;
&lt;br /&gt;
=== Download and build libiptcdata ===&lt;br /&gt;
&lt;br /&gt;
The required &amp;lt;code&amp;gt;libiptcdata&amp;lt;/code&amp;gt; library is not provided by MSYS2 and should be built manually. Follow the following steps:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cd ~&lt;br /&gt;
$ curl -LO http://downloads.sourceforge.net/project/libiptcdata/libiptcdata/1.0.4/libiptcdata-1.0.4.tar.gz&lt;br /&gt;
$ tar xzf libiptcdata-1.0.4.tar.gz&lt;br /&gt;
$ cd libiptcdata-1.0.4&lt;br /&gt;
$ ./configure --prefix=/mingw64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some modifications to the resulting &amp;lt;code&amp;gt;Makefile&amp;lt;/code&amp;gt; are needed. You can edit the file with any text editor (either through your OS or from within the shell). We use the &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; editor from within the shell:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ nano Makefile&lt;br /&gt;
&lt;br /&gt;
# search (command Ctrl+W)&lt;br /&gt;
DIST_SUBDIRS = m4 libiptcdata po iptc docs win python&lt;br /&gt;
# and replace with&lt;br /&gt;
DIST_SUBDIRS = m4 libiptcdata po win python&lt;br /&gt;
&lt;br /&gt;
# search&lt;br /&gt;
SUBDIRS = m4 libiptcdata po iptc docs win $(MAYBE_PYTHONLIB)&lt;br /&gt;
# and replace with&lt;br /&gt;
SUBDIRS = m4 libiptcdata po win $(MAYBE_PYTHONLIB)&lt;br /&gt;
&lt;br /&gt;
# save and quit&lt;br /&gt;
Ctrl+X, Y&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally build and install the library:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Clone and build RawTherapee ==&lt;br /&gt;
&lt;br /&gt;
=== Clone RawTherapee's git repository. ===&lt;br /&gt;
RawTherapee's source code can be cloned from [https://github.com/Beep6581/RawTherapee the official GitHub repository]:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cd ~&lt;br /&gt;
$ git clone git://github.com/Beep6581/RawTherapee.git&lt;br /&gt;
$ cd RawTherapee&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Switching branches ===&lt;br /&gt;
After cloning you will automatically have checked out the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch. This is the main development branch of RawTherapee and probably what you want to use. To switch to a [https://github.com/Beep6581/RawTherapee/branches different branch], do the following:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ git checkout branchname # replace with another available branch name&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create a separate directory for the build ===&lt;br /&gt;
It is essential to create a new directory to build the application. The directory can have any name, for example:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ mkdir build&lt;br /&gt;
$ cd build&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: if you switch branches, ''always build in an empty directory'' to prevent issues. From within a build directory, you can run &amp;lt;code&amp;gt;rm -rf *&amp;lt;/code&amp;gt; to remove all files.&lt;br /&gt;
&lt;br /&gt;
=== Configuration and compilation ===&lt;br /&gt;
To create an optimized build for your machine architecture, use the following commands:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cmake -G &amp;quot;Ninja&amp;quot; -DLENSFUNDBDIR=put/your/lensfun/directory/here -DCMAKE_BUILD_TYPE=&amp;quot;release&amp;quot; -DPROC_TARGET_NUMBER=&amp;quot;2&amp;quot; -DCACHE_NAME_SUFFIX=&amp;quot;5-dev&amp;quot; ..&lt;br /&gt;
$ cmake --build . --target install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Make sure to replace the path to the Lensfun database with the actual path obtained a few steps before. See the [[Linux#CMake|Linux article]] for more details on the various options. Depending on your system, the build process may take anywhere between 5 and 25 minutes.&lt;br /&gt;
&lt;br /&gt;
There may be warnings during the build process which you can safely ignore. Errors that are not traceable to a mistake when following this guide should be reported [https://github.com/Beep6581/RawTherapee/issues/new?assignees=&amp;amp;labels=&amp;amp;template=bug_report.md&amp;amp;title= here]. &lt;br /&gt;
&lt;br /&gt;
=== Starting RawTherapee ===&lt;br /&gt;
RawTherapee can now be run:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ ./release/rawtherapee.exe # replace release with debug or relwithdebinfo if you built another target&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional: preloaded CMake cache ===&lt;br /&gt;
As described in the [https://cmake.org/cmake/help/latest/manual/cmake.1.html CMake manual]&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
-C &amp;lt;initial-cache&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    Pre-load a script to populate the cache.&lt;br /&gt;
&lt;br /&gt;
    When cmake is first run in an empty build tree, it creates a CMakeCache.txt file and populates it with customizable settings for the project. This option may be used to specify a file from which to load cache entries before the first pass through the project’s cmake listfiles. The loaded entries take priority over the project’s default values. The given file should be a CMake script containing SET commands that use the CACHE option, not a cache-format file.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To simplify the invocation of CMake and be able to easily define Windows specific options, a &amp;lt;code&amp;gt;win.cmake&amp;lt;/code&amp;gt; template script is provided with the sources. Copy it out of RawTherapee's source to avoid overwriting by update for instance in &amp;lt;code&amp;gt;mywin.cmake&amp;lt;/code&amp;gt;.&lt;br /&gt;
Edit it to define or modify options. To preload the cache, in the CMake command line:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cmake -G &amp;quot;Ninja&amp;quot; -DLENSFUNDBDIR=share/lensfun -DCMAKE_BUILD_TYPE=&amp;quot;release&amp;quot; -DPROC_TARGET_NUMBER=&amp;quot;2&amp;quot; -DCACHE_NAME_SUFFIX=&amp;quot;5-dev&amp;quot; -C &amp;lt;path/to/mywin.cmake&amp;gt; ..&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Making a bundled build ==&lt;br /&gt;
&lt;br /&gt;
This section only applies if you want to run RawTherapee outside the MinGW shell or distribute it.&lt;br /&gt;
&lt;br /&gt;
Note: You can copy either with the Windows file manager or, recommended, with [https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy robocopy] inside the &amp;lt;code&amp;gt;mingw64&amp;lt;/code&amp;gt; shell script using &amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt; instead of &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt; for the options.&lt;br /&gt;
&lt;br /&gt;
=== Definition of folders ===&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;prefix&amp;gt;&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;&amp;lt;MSYS2&amp;gt;\mingw64&amp;lt;/code&amp;gt;,&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;MSYS2&amp;gt;&amp;lt;/code&amp;gt; is the MSYS2 installation folder,&lt;br /&gt;
*and &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt; is the RawTherapee installation folder.&lt;br /&gt;
&lt;br /&gt;
=== Copy RawTherapee executable and generated files ===&lt;br /&gt;
Copy the content of &amp;lt;code&amp;gt;c:\code\repo-rt\build\&amp;lt;debug|release|relwithdebinfo&amp;gt;&amp;lt;/code&amp;gt; into &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Copy the  dependencies ===&lt;br /&gt;
Copy the necessary DLLs and exe from &amp;lt;code&amp;gt;&amp;lt;prefix&amp;gt;\bin&amp;lt;/code&amp;gt; into &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt;.&lt;br /&gt;
The current list of required DLLs and EXE is:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
gspawn-win64-helper.exe&lt;br /&gt;
gspawn-win64-helper-console.exe&lt;br /&gt;
gdbus.exe&lt;br /&gt;
libatk-1.0-0.dll&lt;br /&gt;
libatkmm-1.6-1.dll&lt;br /&gt;
libbz2-1.dll&lt;br /&gt;
libcairo-2.dll&lt;br /&gt;
libcairo-gobject-2.dll&lt;br /&gt;
libcairomm-1.0-1.dll&lt;br /&gt;
libcroco-0.6-3.dll&lt;br /&gt;
libdatrie-1.dll&lt;br /&gt;
libepoxy-0.dll&lt;br /&gt;
libexpat-1.dll&lt;br /&gt;
libffi-6.dll&lt;br /&gt;
libfftw3f-3.dll&lt;br /&gt;
libfontconfig-1.dll&lt;br /&gt;
libfreetype-6.dll&lt;br /&gt;
libfribidi-0.dll&lt;br /&gt;
libgcc_s_seh-1.dll&lt;br /&gt;
libgdk_pixbuf-2.0-0.dll&lt;br /&gt;
libgdk-3-0.dll&lt;br /&gt;
libgdkmm-3.0-1.dll&lt;br /&gt;
libgio-2.0-0.dll&lt;br /&gt;
libgiomm-2.4-1.dll&lt;br /&gt;
libglib-2.0-0.dll&lt;br /&gt;
libglibmm-2.4-1.dll&lt;br /&gt;
libgmodule-2.0-0.dll&lt;br /&gt;
libgobject-2.0-0.dll&lt;br /&gt;
libgomp-1.dll&lt;br /&gt;
libgraphite2.dll&lt;br /&gt;
libgtk-3-0.dll&lt;br /&gt;
libgtkmm-3.0-1.dll&lt;br /&gt;
libharfbuzz-0.dll&lt;br /&gt;
libiconv-2.dll&lt;br /&gt;
libintl-8.dll&lt;br /&gt;
libjpeg-8.dll&lt;br /&gt;
liblcms2-2.dll&lt;br /&gt;
liblensfun.dll&lt;br /&gt;
liblzma-5.dll&lt;br /&gt;
libpango-1.0-0.dll&lt;br /&gt;
libpangocairo-1.0-0.dll&lt;br /&gt;
libpangoft2-1.0-0.dll&lt;br /&gt;
libpangomm-1.4-1.dll&lt;br /&gt;
libpangowin32-1.0-0.dll&lt;br /&gt;
libpcre-1.dll&lt;br /&gt;
libpixman-1-0.dll&lt;br /&gt;
libpng16-16.dll&lt;br /&gt;
librsvg-2-2.dll&lt;br /&gt;
libsigc-2.0-0.dll&lt;br /&gt;
libstdc++-6.dll&lt;br /&gt;
libsystre-0.dll&lt;br /&gt;
libthai-0.dll&lt;br /&gt;
libtiff-5.dll&lt;br /&gt;
libtre-5.dll&lt;br /&gt;
libwinpthread-1.dll&lt;br /&gt;
libxml2-2.dll&lt;br /&gt;
libzstd.dll&lt;br /&gt;
zlib1.dll&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the following list of Adwaita theme files and directories  from &amp;lt;code&amp;gt;&amp;lt;prefix&amp;gt;\share\icons\Adwaita\&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;.\share\icons\Adwaita\&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
scalable\actions&lt;br /&gt;
scalable\devices&lt;br /&gt;
scalable\mimetypes&lt;br /&gt;
scalable\places&lt;br /&gt;
scalable\status&lt;br /&gt;
scalable\ui&lt;br /&gt;
index.theme&lt;br /&gt;
cursors\plus.cur&lt;br /&gt;
cursors\sb_h_double_arrow.cur&lt;br /&gt;
cursors\sb_left_arrow.cur&lt;br /&gt;
cursors\sb_right_arrow.cur&lt;br /&gt;
cursors\sb_v_double_arrow.cur&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy following files :&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;prefix&amp;gt;\lib\gdk-pixbuf-2.0 -&amp;gt; .\lib\gdk-pixbuf-2.0&lt;br /&gt;
&amp;lt;prefix&amp;gt;\share\glib-2.0\schemas\gschemas.compiled -&amp;gt; .\share\glib-2.0\schemas&lt;br /&gt;
&amp;lt;prefix&amp;gt;\share\lensfun\version_1\* -&amp;gt; .\share\lensfun&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create in .\share\gtk-3.0 a file &amp;lt;code&amp;gt;settings.ini&amp;lt;/code&amp;gt; containing :&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
[Settings] gtk-button-images=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Creating a distributable package ==&lt;br /&gt;
&lt;br /&gt;
If you plan to distribute RawTherapee packages for the Windows platform, as a first step you need to make sure that RawTherapee will be built for the &amp;quot;generic&amp;quot; processor target. To do so, use &amp;lt;code&amp;gt;-DPROC_TARGET_NUMBER=&amp;quot;1&amp;quot;&amp;lt;/code&amp;gt; in the CMake command.&lt;br /&gt;
&lt;br /&gt;
During compilation, a script named &amp;lt;code&amp;gt;WindowsInnoSetup.iss&amp;lt;/code&amp;gt; is created in the RawTherapee installation folder. This script is used by Inno Setup [http://www.jrsoftware.org/isinfo.php], a program which is used to generate installers for Windows programs. It is advised to download the Unicode version [http://www.jrsoftware.org/download.php/is-unicode.exe] to avoid problems with some languages.&lt;br /&gt;
&lt;br /&gt;
To help users [[How_to_write_useful_bug_reports|write useful bug reports]], package maintainers are encouraged to produce builds which include both a &amp;quot;release&amp;quot; and a &amp;quot;debug&amp;quot; executable, and to bundle them together with the GDB debugger executable.&lt;br /&gt;
&lt;br /&gt;
In other words, put the &amp;lt;code&amp;gt;rawtherapee.exe&amp;lt;/code&amp;gt; (release) file together with the &amp;lt;code&amp;gt;rawtherapee-debug.exe&amp;lt;/code&amp;gt; (debug) file and the &amp;lt;code&amp;gt;gdb.exe&amp;lt;/code&amp;gt; file together into the same installer or the same archive. An alternative is to produce &amp;quot;relwithdebinfo&amp;quot; builds - these are much faster than &amp;quot;debug&amp;quot; but not as optimized as &amp;quot;release&amp;quot; builds, yet they provide just about as much useful information as &amp;quot;debug&amp;quot; builds. &lt;br /&gt;
&lt;br /&gt;
When making &amp;quot;relwithdebinfo&amp;quot; or &amp;quot;debug&amp;quot; builds you must provide the GDB debugger executable. Windows binaries of the debugger &amp;lt;code&amp;gt;gdb.exe&amp;lt;/code&amp;gt; can be downloaded from [http://www.equation.com/servlet/equation.cmd?fa=gdb here] in 32- and 64-bit versions and will be copied into Rawtherapee installation folder.&lt;br /&gt;
&lt;br /&gt;
Now that everything is set up, to create the package right-click on the &amp;lt;code&amp;gt;WindowsInnoSetup.iss&amp;lt;/code&amp;gt; script and choose ''Compile'' from the context menu. It will automatically generate the installer and place it in the parent folder.&lt;br /&gt;
&lt;br /&gt;
To make your new package compatible with the RawTherapee website's upload panel, create a zip archive in which you will place both the newly created installer and the corresponding ''AboutThisBuild.txt'' file which can be found at the same place. Name the resulting zip archive following this template:&lt;br /&gt;
&amp;lt;code&amp;gt;RawTherapee_&amp;lt;version&amp;gt;_WinVista_64_&amp;lt;buildtype&amp;gt;.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are building and distributing nightly builds, follow this template:&lt;br /&gt;
&amp;lt;code&amp;gt;RawTherapee_&amp;lt;branch&amp;gt;_&amp;lt;version&amp;gt;_WinVista_64_&amp;lt;buildtype&amp;gt;.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;WinVista&amp;quot;  means it can run on any version of Windows from Vista upwards, including 10.&lt;br /&gt;
* The &amp;quot;version&amp;quot; will either look like &amp;lt;code&amp;gt;5.8&amp;lt;/code&amp;gt; if you checkout the &amp;lt;code&amp;gt;5.8&amp;lt;/code&amp;gt; tag, or &amp;lt;code&amp;gt;5.8-g35abd92&lt;br /&gt;
&amp;lt;/code&amp;gt; if you checkout the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch after 5.8 was tagged.&lt;br /&gt;
* If you are shipping more than one build type in an installer, don't include &amp;lt;buildtype&amp;gt; in the name.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Resize&amp;diff=8460</id>
		<title>Resize</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Resize&amp;diff=8460"/>
		<updated>2021-06-05T06:30:22Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Reordered sections to match the order in the tool&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Resize&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Resize tool 5.4-dev.png|frame|right|Screenshot of the whole Resize tool in RawTherapee 5.4-789-ga7b7f20b8.]]&lt;br /&gt;
&lt;br /&gt;
== Resize ==&lt;br /&gt;
&lt;br /&gt;
Resizing is one of the last things to happen when saving an image - this tool runs after most other tools and transformations. As downscaling an image involves a certain loss of detail, this tool includes a &amp;quot;Post-Resize Sharpening&amp;quot; component which you can use to make the downscaled image crisp.&lt;br /&gt;
&lt;br /&gt;
The effects of the Resize tool will not be shown in the preview. The saved image will of course be resized.&lt;br /&gt;
&lt;br /&gt;
Size limits:&lt;br /&gt;
* The downscaling limit is 32x32px.&lt;br /&gt;
* The upscaling limit is 16-times the image's size as of RawTherapee version 5.5. In versions prior to and including 5.4, it was 4-times the image's size.&lt;br /&gt;
&lt;br /&gt;
=== Applies To ===&lt;br /&gt;
&lt;br /&gt;
You will typically want the width and height to apply to the cropped area, however you can also have it apply to the full image. The crop will be scaled accordingly.&lt;br /&gt;
&lt;br /&gt;
[[File:Resize-interpolation.png|thumb|500px|right|Demonstration of the effects of the resizing methods &amp;quot;nearest neighbor&amp;quot; vs &amp;quot;Lanczos&amp;quot;.]]&lt;br /&gt;
&lt;br /&gt;
=== Method ===&lt;br /&gt;
&lt;br /&gt;
Resizing can be performed using various algorithms, each with its own strengths and weaknesses. We narrowed the choice down to the two most significant:&lt;br /&gt;
* Nearest&lt;br /&gt;
: The &amp;quot;nearest neighbor&amp;quot; method of interpolation is meant to be used when you want to upscale an image in order to make some detail larger without introducing smooth blending between pixels. It preserves the pixels as they are. It is usually used when upscaling by squares of 2: 2x, 4x, 8x, 16x, etc.. The result will be very sharp, but also very blocky. This method is not meant to be used for everyday photography.&lt;br /&gt;
* Lanczos&lt;br /&gt;
: Lanczos is the default method. It is meant to be used for everyday photography and in all cases except for the one described above. It results in a smooth yet sharp and high quality image. Use it to resize by any amount.&lt;br /&gt;
&lt;br /&gt;
=== Specify ===&lt;br /&gt;
&lt;br /&gt;
You can specify what dimensions to scale to or by:&lt;br /&gt;
* Scale &lt;br /&gt;
: Uniformly scale the image by a factor. Ranges from 0.01 (100 times smaller) to 16 (16 times bigger).&lt;br /&gt;
* Width / Height&lt;br /&gt;
: Set the desired absolute width or height in pixels, regardless of the image orientation. The other dimension is updated according to the aspect ratio.&lt;br /&gt;
* Bounding Box&lt;br /&gt;
: Resize to fit the image within a box of certain width and height in pixels, regardless of the image orientation. The image aspect ratio is kept. E.g. for a bounding box of 1920×1080&amp;amp;nbsp;px and a landscape image of 3000×2000&amp;amp;nbsp;px the resulting image will be 1620×1080&amp;amp;nbsp;px. For the same bounding box and a portrait image of 2000×3000&amp;amp;nbsp;px the resulting image will be 720×1080&amp;amp;nbsp;px.&lt;br /&gt;
* Long Edge / Short Edge (Since RawTherapee 5.9)&lt;br /&gt;
: Set the desired size of either the long or short edge of the image in pixels. The other dimension is updated according to the aspect ratio. E.g. setting the long edge to 1500 px for a landscape image of 3000×2000&amp;amp;nbsp;px gives a resulting image of 1500×1000&amp;amp;nbsp;px. Setting the short edge to 1500&amp;amp;nbsp;px for the same image gives a resulting image of 2250×1500&amp;amp;nbsp;px. Setting the long edge to 1500&amp;amp;nbsp;px for a portrait image of 2000×3000&amp;amp;nbsp;px gives a resulting image of 1000×1500&amp;amp;nbsp;px.&lt;br /&gt;
&lt;br /&gt;
=== Allow Upscaling ===&lt;br /&gt;
&lt;br /&gt;
This setting controls whether the resize tool will also upscale your images, or only downscale. If it is disabled and the combination of image dimensions, crop dimensions and resize dimensions is such that the image would need to be upscaled to meet your target, this setting will prevent it from being upscaled - it will remain at its current size.&lt;br /&gt;
&lt;br /&gt;
This setting was introduced in RawTherapee 5.5. If in RawTherapee 5.5 you use a sidecar file from an older version of RawTherapee, this setting will automatically be disabled.&lt;br /&gt;
&lt;br /&gt;
== Post-Resize Sharpening ==&lt;br /&gt;
&lt;br /&gt;
Resizing an image often leads to a loss of sharpness, so it is common practice to sharpen the image again after having resized it. With the Post-Resize Sharpening tool you can save crystal-clear images straight away with no further hassle. Because this tool works on the image after it is resized, you cannot use the preview to see what it will do, though this is not a problem because the procedure for finding the right values is straightforward.&lt;br /&gt;
&lt;br /&gt;
The default values work great, but if you want to change them, here's how to preview what the image will look like:&lt;br /&gt;
# Tweak your image as you usually would and enable the Resize tool, e.g. downscale using the Lanczos method to a 900x900px bounding box.&lt;br /&gt;
# Save the image to a lossless format such as TIFF.&lt;br /&gt;
# Open that saved TIFF in RawTherapee, apply the Neutral processing profile if that wasn't done automatically, and enable the [[Sharpening]] tool in the Detail tab.&lt;br /&gt;
# Zoom to 100% (1:1) and tweak the Sharpening tool's parameters until you get a result that satisfies you. These are the values you should use in the Post-Resize Sharpening tool.&lt;br /&gt;
# Go back to the raw image, enable the Post-Resize Sharpening tool and set it up with the values from the previous step.&lt;br /&gt;
&lt;br /&gt;
The Post-Resize Sharpening tool is only available when you use the &amp;quot;Lanczos&amp;quot; resizing method.&lt;br /&gt;
&lt;br /&gt;
As the Post-Resize Sharpening tool works identically to the standard Sharpening tool (except that it takes place right at the end of processing), refer to the [[Sharpening]] article to learn more about how the sharpening tools work.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Resize&amp;diff=8459</id>
		<title>Resize</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Resize&amp;diff=8459"/>
		<updated>2021-06-05T06:26:27Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Rewritten and included new long / short edge option&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Resize&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Resize tool 5.4-dev.png|frame|right|Screenshot of the whole Resize tool in RawTherapee 5.4-789-ga7b7f20b8.]]&lt;br /&gt;
[[File:Resize-interpolation.png|thumb|500px|right|Demonstration of the effects of the resizing methods &amp;quot;nearest neighbor&amp;quot; vs &amp;quot;Lanczos&amp;quot;.]]&lt;br /&gt;
&lt;br /&gt;
== Resize ==&lt;br /&gt;
&lt;br /&gt;
Resizing is one of the last things to happen when saving an image - this tool runs after most other tools and transformations. As downscaling an image involves a certain loss of detail, this tool includes a &amp;quot;Post-Resize Sharpening&amp;quot; component which you can use to make the downscaled image crisp.&lt;br /&gt;
&lt;br /&gt;
The effects of the Resize tool will not be shown in the preview. The saved image will of course be resized.&lt;br /&gt;
&lt;br /&gt;
Size limits:&lt;br /&gt;
* The downscaling limit is 32x32px.&lt;br /&gt;
* The upscaling limit is 16-times the image's size as of RawTherapee version 5.5. In versions prior to and including 5.4, it was 4-times the image's size.&lt;br /&gt;
&lt;br /&gt;
=== Method ===&lt;br /&gt;
&lt;br /&gt;
Resizing can be performed using various algorithms, each with its own strengths and weaknesses. We narrowed the choice down to the two most significant:&lt;br /&gt;
* Nearest&lt;br /&gt;
: The &amp;quot;nearest neighbor&amp;quot; method of interpolation is meant to be used when you want to upscale an image in order to make some detail larger without introducing smooth blending between pixels. It preserves the pixels as they are. It is usually used when upscaling by squares of 2: 2x, 4x, 8x, 16x, etc.. The result will be very sharp, but also very blocky. This method is not meant to be used for everyday photography.&lt;br /&gt;
* Lanczos&lt;br /&gt;
: Lanczos is the default method. It is meant to be used for everyday photography and in all cases except for the one described above. It results in a smooth yet sharp and high quality image. Use it to resize by any amount.&lt;br /&gt;
&lt;br /&gt;
=== Specify, Width and Height ===&lt;br /&gt;
&lt;br /&gt;
You can specify what dimensions to scale to or by:&lt;br /&gt;
* Scale &lt;br /&gt;
: Uniformly scale the image by a factor. Ranges from 0.01 (100 times smaller) to 16 (16 times bigger).&lt;br /&gt;
* Width / Height&lt;br /&gt;
: Set the desired absolute width or height in pixels, regardless of the image orientation. The other dimension is updated according to the aspect ratio.&lt;br /&gt;
* Bounding Box&lt;br /&gt;
: Resize to fit the image within a box of certain width and height in pixels, regardless of the image orientation. The image aspect ratio is kept. E.g. for a bounding box of 1920×1080&amp;amp;nbsp;px and a landscape image of 3000×2000&amp;amp;nbsp;px the resulting image will be 1620×1080&amp;amp;nbsp;px. For the same bounding box and a portrait image of 2000×3000&amp;amp;nbsp;px the resulting image will be 720×1080&amp;amp;nbsp;px.&lt;br /&gt;
* Long Edge / Short Edge (Since RawTherapee 5.9)&lt;br /&gt;
: Set the desired size of either the long or short edge of the image in pixels. The other dimension is updated according to the aspect ratio. E.g. setting the long edge to 1500 px for a landscape image of 3000×2000&amp;amp;nbsp;px gives a resulting image of 1500×1000&amp;amp;nbsp;px. Setting the short edge to 1500&amp;amp;nbsp;px for the same image gives a resulting image of 2250×1500&amp;amp;nbsp;px. Setting the long edge to 1500&amp;amp;nbsp;px for a portrait image of 2000×3000&amp;amp;nbsp;px gives a resulting image of 1000×1500&amp;amp;nbsp;px.&lt;br /&gt;
&lt;br /&gt;
=== Applies To ===&lt;br /&gt;
&lt;br /&gt;
You will typically want the width and height to apply to the cropped area, however you can also have it apply to the full image, though even then of course only the cropped area gets saved.&lt;br /&gt;
&lt;br /&gt;
=== Allow Upscaling ===&lt;br /&gt;
&lt;br /&gt;
This setting controls whether the resize tool will also upscale your images, or only downscale. If it is disabled and the combination of image dimensions, crop dimensions and resize dimensions is such that the image would need to be upscaled to meet your target, this setting will prevent it from being upscaled - it will remain at its current size.&lt;br /&gt;
&lt;br /&gt;
This setting was introduced in RawTherapee 5.5. If in RawTherapee 5.5 you use a sidecar file from an older version of RawTherapee, this setting will automatically be disabled.&lt;br /&gt;
&lt;br /&gt;
== Post-Resize Sharpening ==&lt;br /&gt;
&lt;br /&gt;
Resizing an image often leads to a loss of sharpness, so it is common practice to sharpen the image again after having resized it. With the Post-Resize Sharpening tool you can save crystal-clear images straight away with no further hassle. Because this tool works on the image after it is resized, you cannot use the preview to see what it will do, though this is not a problem because the procedure for finding the right values is straightforward.&lt;br /&gt;
&lt;br /&gt;
The default values work great, but if you want to change them, here's how to preview what the image will look like:&lt;br /&gt;
# Tweak your image as you usually would and enable the Resize tool, e.g. downscale using the Lanczos method to a 900x900px bounding box.&lt;br /&gt;
# Save the image to a lossless format such as TIFF.&lt;br /&gt;
# Open that saved TIFF in RawTherapee, apply the Neutral processing profile if that wasn't done automatically, and enable the [[Sharpening]] tool in the Detail tab.&lt;br /&gt;
# Zoom to 100% (1:1) and tweak the Sharpening tool's parameters until you get a result that satisfies you. These are the values you should use in the Post-Resize Sharpening tool.&lt;br /&gt;
# Go back to the raw image, enable the Post-Resize Sharpening tool and set it up with the values from the previous step.&lt;br /&gt;
&lt;br /&gt;
The Post-Resize Sharpening tool is only available when you use the &amp;quot;Lanczos&amp;quot; resizing method.&lt;br /&gt;
&lt;br /&gt;
As the Post-Resize Sharpening tool works identically to the standard Sharpening tool (except that it takes place right at the end of processing), refer to the [[Sharpening]] article to learn more about how the sharpening tools work.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Windows&amp;diff=8251</id>
		<title>Windows</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Windows&amp;diff=8251"/>
		<updated>2021-05-18T07:49:04Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: /* Install tools and libraries */ added ninja package&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Windows&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Follow the instructions on this page to compile RawTherapee on Windows using the [https://www.msys2.org MSYS2] build environment. For more details on customizing and understanding the build process, see the [[Linux]] article.&lt;br /&gt;
&lt;br /&gt;
Note: this guide applies to compiling the '''64-bit''' version of RawTherapee under '''Windows 7 and newer'''. Compiling the 32-bit version is no longer supported, nor is compilation on older operating systems. The latest version of RawTherapee to work under 32-bit Windows XP is 5.0-rc1, and can be downloaded [http://www.rawtherapee.com/downloads/5.0-r1/ here] (dated 2017-02-02).&lt;br /&gt;
&lt;br /&gt;
Note that RawTherapee also requires the availability of GTK+ 3.22.24 or newer to have [https://gitlab.gnome.org/GNOME/gtk/issues/760#note_110809 native window support]. Without it RawTherapee may exhibit [https://github.com/Beep6581/RawTherapee/issues/4125 strange behavior], such as maximizing underneath the taskbar in Windows 10. When using an up to date build environment, you should not encounter this problem.&lt;br /&gt;
&lt;br /&gt;
== MSYS2 Installation ==&lt;br /&gt;
&lt;br /&gt;
=== Install MSYS2 base system ===&lt;br /&gt;
&lt;br /&gt;
Install the build environment MSYS2 carefully by following the instructions from the [https://www.msys2.org MSYS2 website]. Make sure to update the system fully until no further updates are available, using the command:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ pacman -Syu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
MSYS2 provides [https://www.msys2.org/wiki/MSYS2-introduction/ three 'shells'] (command-line interfaces) for different purposes: '''MSYS''', '''MinGW 32-bit''' and '''MinGW 64-bit'''. They can be launched through shortcuts in your Start menu. Most commonly you will be running a 64-bit operating system and will want to create applications that are optimized for that. Therefore, start the '''MSYS2 MinGW 64-bit''' shell and continue below.&lt;br /&gt;
&lt;br /&gt;
[[File:MSYS2 Shell.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note: in following text, &amp;lt;code&amp;gt;&amp;lt;MSYS2&amp;gt;&amp;lt;/code&amp;gt; refers to the MSYS2 installation folder, typically &amp;lt;code&amp;gt;C:\msys64&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install tools and libraries ===&lt;br /&gt;
&lt;br /&gt;
MSYS2 uses the package manager &amp;lt;code&amp;gt;pacman&amp;lt;/code&amp;gt; to install software and components. Please refer to the [https://wiki.archlinux.org/index.php/pacman pacman manual] for details.&lt;br /&gt;
 &lt;br /&gt;
First, install a few miscellaneous tools:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ pacman -S tar gzip nano make diffutils intltool git&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the necessary development tools and the required libraries:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-gdb mingw-w64-x86_64-make mingw-w64-x86_64-pkg-config mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-gtkmm3 mingw-w64-x86_64-lcms2 mingw-w64-x86_64-fftw mingw-w64-x86_64-lensfun&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Updating Lensfun database ===&lt;br /&gt;
&lt;br /&gt;
RawTherapee uses the [https://lensfun.github.io Lensfun] library for lens-specific corrections. Run the following command to update the database:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ lensfun-update-data&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The updater returns the path where the updated database is located. '''Copy this path for later use!'''&lt;br /&gt;
&lt;br /&gt;
=== Download and build libiptcdata ===&lt;br /&gt;
&lt;br /&gt;
The required &amp;lt;code&amp;gt;libiptcdata&amp;lt;/code&amp;gt; library is not provided by MSYS2 and should be built manually. Follow the following steps:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cd ~&lt;br /&gt;
$ curl -LO http://downloads.sourceforge.net/project/libiptcdata/libiptcdata/1.0.4/libiptcdata-1.0.4.tar.gz&lt;br /&gt;
$ tar xzf libiptcdata-1.0.4.tar.gz&lt;br /&gt;
$ cd libiptcdata-1.0.4&lt;br /&gt;
$ ./configure --prefix=/mingw64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some modifications to the resulting &amp;lt;code&amp;gt;Makefile&amp;lt;/code&amp;gt; are needed. You can edit the file with any text editor (either through your OS or from within the shell). We use the &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; editor from within the shell:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ nano Makefile&lt;br /&gt;
&lt;br /&gt;
# search (command Ctrl+W)&lt;br /&gt;
DIST_SUBDIRS = m4 libiptcdata po iptc docs win python&lt;br /&gt;
# and replace with&lt;br /&gt;
DIST_SUBDIRS = m4 libiptcdata po win python&lt;br /&gt;
&lt;br /&gt;
# search&lt;br /&gt;
SUBDIRS = m4 libiptcdata po iptc docs win $(MAYBE_PYTHONLIB)&lt;br /&gt;
# and replace with&lt;br /&gt;
SUBDIRS = m4 libiptcdata po win $(MAYBE_PYTHONLIB)&lt;br /&gt;
&lt;br /&gt;
# save and quit&lt;br /&gt;
Ctrl+X, Y&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally build and install the library:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Clone and build RawTherapee ==&lt;br /&gt;
&lt;br /&gt;
=== Clone RawTherapee's git repository. ===&lt;br /&gt;
RawTherapee's source code can be cloned from [https://github.com/Beep6581/RawTherapee the official GitHub repository]:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cd ~&lt;br /&gt;
$ git clone git://github.com/Beep6581/RawTherapee.git&lt;br /&gt;
$ cd RawTherapee&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Switching branches ===&lt;br /&gt;
After cloning you will automatically have checked out the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch. This is the main development branch of RawTherapee and probably what you want to use. To switch to a [https://github.com/Beep6581/RawTherapee/branches different branch], do the following:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ git checkout branchname # replace with another available branch name&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create a separate directory for the build ===&lt;br /&gt;
It is essential to create a new directory to build the application. The directory can have any name, for example:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ mkdir build&lt;br /&gt;
$ cd build&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: if you switch branches, ''always build in an empty directory'' to prevent issues. From within a build directory, you can run &amp;lt;code&amp;gt;rm -rf *&amp;lt;/code&amp;gt; to remove all files.&lt;br /&gt;
&lt;br /&gt;
=== Configuration and compilation ===&lt;br /&gt;
To create an optimized build for your machine architecture, use the following commands:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cmake -G &amp;quot;Ninja&amp;quot; -DLENSFUNDBDIR=put/your/lensfun/directory/here -DCMAKE_BUILD_TYPE=&amp;quot;release&amp;quot; -DPROC_TARGET_NUMBER=&amp;quot;2&amp;quot; -DCACHE_NAME_SUFFIX=&amp;quot;5-dev&amp;quot; ..&lt;br /&gt;
$ cmake --build . --target install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Make sure to replace the path to the Lensfun database with the actual path obtained a few steps before. See the [[Linux#CMake|Linux article]] for more details on the various options. Depending on your system, the build process may take anywhere between 5 and 25 minutes.&lt;br /&gt;
&lt;br /&gt;
There may be warnings during the build process which you can safely ignore. Errors that are not traceable to a mistake when following this guide should be reported [https://github.com/Beep6581/RawTherapee/issues/new?assignees=&amp;amp;labels=&amp;amp;template=bug_report.md&amp;amp;title= here]. &lt;br /&gt;
&lt;br /&gt;
=== Starting RawTherapee ===&lt;br /&gt;
RawTherapee can now be run:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ ./release/rawtherapee.exe # replace release with debug or relwithdebinfo if you built another target&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional: preloaded CMake cache ===&lt;br /&gt;
As described in the [https://cmake.org/cmake/help/latest/manual/cmake.1.html CMake manual]&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
-C &amp;lt;initial-cache&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    Pre-load a script to populate the cache.&lt;br /&gt;
&lt;br /&gt;
    When cmake is first run in an empty build tree, it creates a CMakeCache.txt file and populates it with customizable settings for the project. This option may be used to specify a file from which to load cache entries before the first pass through the project’s cmake listfiles. The loaded entries take priority over the project’s default values. The given file should be a CMake script containing SET commands that use the CACHE option, not a cache-format file.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To simplify the invocation of CMake and be able to easily define Windows specific options, a &amp;lt;code&amp;gt;win.cmake&amp;lt;/code&amp;gt; template script is provided with the sources. Copy it out of RawTherapee's source to avoid overwriting by update for instance in &amp;lt;code&amp;gt;mywin.cmake&amp;lt;/code&amp;gt;.&lt;br /&gt;
Edit it to define or modify options. To preload the cache, in the CMake command line:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cmake -G &amp;quot;Ninja&amp;quot; -DLENSFUNDBDIR=share/lensfun -DCMAKE_BUILD_TYPE=&amp;quot;release&amp;quot; -DPROC_TARGET_NUMBER=&amp;quot;2&amp;quot; -DCACHE_NAME_SUFFIX=&amp;quot;5-dev&amp;quot; -C &amp;lt;path/to/mywin.cmake&amp;gt; ..&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Making a bundled build ==&lt;br /&gt;
&lt;br /&gt;
This section only applies if you want to run RawTherapee outside the MinGW shell or distribute it.&lt;br /&gt;
&lt;br /&gt;
Note: You can copy either with the Windows file manager or, recommended, with [https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy robocopy] inside the &amp;lt;code&amp;gt;mingw64&amp;lt;/code&amp;gt; shell script using &amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt; instead of &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt; for the options.&lt;br /&gt;
&lt;br /&gt;
=== Definition of folders ===&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;prefix&amp;gt;&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;&amp;lt;MSYS2&amp;gt;\mingw64&amp;lt;/code&amp;gt;,&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;MSYS2&amp;gt;&amp;lt;/code&amp;gt; is the MSYS2 installation folder,&lt;br /&gt;
*and &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt; is the RawTherapee installation folder.&lt;br /&gt;
&lt;br /&gt;
=== Copy RawTherapee executable and generated files ===&lt;br /&gt;
Copy the content of &amp;lt;code&amp;gt;c:\code\repo-rt\build\&amp;lt;debug|release|relwithdebinfo&amp;gt;&amp;lt;/code&amp;gt; into &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Copy the  dependencies ===&lt;br /&gt;
Copy the necessary DLLs and exe from &amp;lt;code&amp;gt;&amp;lt;prefix&amp;gt;\bin&amp;lt;/code&amp;gt; into &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt;.&lt;br /&gt;
The current list of required DLLs and EXE is:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
gspawn-win64-helper.exe&lt;br /&gt;
gspawn-win64-helper-console.exe&lt;br /&gt;
gdbus.exe&lt;br /&gt;
libatk-1.0-0.dll&lt;br /&gt;
libatkmm-1.6-1.dll&lt;br /&gt;
libbz2-1.dll&lt;br /&gt;
libcairo-2.dll&lt;br /&gt;
libcairo-gobject-2.dll&lt;br /&gt;
libcairomm-1.0-1.dll&lt;br /&gt;
libcroco-0.6-3.dll&lt;br /&gt;
libdatrie-1.dll&lt;br /&gt;
libepoxy-0.dll&lt;br /&gt;
libexpat-1.dll&lt;br /&gt;
libffi-6.dll&lt;br /&gt;
libfftw3f-3.dll&lt;br /&gt;
libfontconfig-1.dll&lt;br /&gt;
libfreetype-6.dll&lt;br /&gt;
libfribidi-0.dll&lt;br /&gt;
libgcc_s_seh-1.dll&lt;br /&gt;
libgdk_pixbuf-2.0-0.dll&lt;br /&gt;
libgdk-3-0.dll&lt;br /&gt;
libgdkmm-3.0-1.dll&lt;br /&gt;
libgio-2.0-0.dll&lt;br /&gt;
libgiomm-2.4-1.dll&lt;br /&gt;
libglib-2.0-0.dll&lt;br /&gt;
libglibmm-2.4-1.dll&lt;br /&gt;
libgmodule-2.0-0.dll&lt;br /&gt;
libgobject-2.0-0.dll&lt;br /&gt;
libgomp-1.dll&lt;br /&gt;
libgraphite2.dll&lt;br /&gt;
libgtk-3-0.dll&lt;br /&gt;
libgtkmm-3.0-1.dll&lt;br /&gt;
libharfbuzz-0.dll&lt;br /&gt;
libiconv-2.dll&lt;br /&gt;
libintl-8.dll&lt;br /&gt;
libjpeg-8.dll&lt;br /&gt;
liblcms2-2.dll&lt;br /&gt;
liblensfun.dll&lt;br /&gt;
liblzma-5.dll&lt;br /&gt;
libpango-1.0-0.dll&lt;br /&gt;
libpangocairo-1.0-0.dll&lt;br /&gt;
libpangoft2-1.0-0.dll&lt;br /&gt;
libpangomm-1.4-1.dll&lt;br /&gt;
libpangowin32-1.0-0.dll&lt;br /&gt;
libpcre-1.dll&lt;br /&gt;
libpixman-1-0.dll&lt;br /&gt;
libpng16-16.dll&lt;br /&gt;
librsvg-2-2.dll&lt;br /&gt;
libsigc-2.0-0.dll&lt;br /&gt;
libstdc++-6.dll&lt;br /&gt;
libsystre-0.dll&lt;br /&gt;
libthai-0.dll&lt;br /&gt;
libtiff-5.dll&lt;br /&gt;
libtre-5.dll&lt;br /&gt;
libwinpthread-1.dll&lt;br /&gt;
libxml2-2.dll&lt;br /&gt;
libzstd.dll&lt;br /&gt;
zlib1.dll&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the following list of Adwaita theme files and directories  from &amp;lt;code&amp;gt;&amp;lt;prefix&amp;gt;\share\icons\Adwaita\&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;.\share\icons\Adwaita\&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
scalable\actions&lt;br /&gt;
scalable\devices&lt;br /&gt;
scalable\mimetypes&lt;br /&gt;
scalable\places&lt;br /&gt;
scalable\status&lt;br /&gt;
scalable\ui&lt;br /&gt;
index.theme&lt;br /&gt;
cursors\plus.cur&lt;br /&gt;
cursors\sb_h_double_arrow.cur&lt;br /&gt;
cursors\sb_left_arrow.cur&lt;br /&gt;
cursors\sb_right_arrow.cur&lt;br /&gt;
cursors\sb_v_double_arrow.cur&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy following files :&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;prefix&amp;gt;\lib\gdk-pixbuf-2.0 -&amp;gt; .\lib\gdk-pixbuf-2.0&lt;br /&gt;
&amp;lt;prefix&amp;gt;\share\glib-2.0\schemas\gschemas.compiled -&amp;gt; .\share\glib-2.0\schemas&lt;br /&gt;
&amp;lt;prefix&amp;gt;\share\lensfun\version_1\* -&amp;gt; .\share\lensfun&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create in .\share\gtk-3.0 a file &amp;lt;code&amp;gt;settings.ini&amp;lt;/code&amp;gt; containing :&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
[Settings] gtk-button-images=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Creating a distributable package ==&lt;br /&gt;
&lt;br /&gt;
If you plan to distribute RawTherapee packages for the Windows platform, as a first step you need to make sure that RawTherapee will be built for the &amp;quot;generic&amp;quot; processor target. To do so, use &amp;lt;code&amp;gt;-DPROC_TARGET_NUMBER=&amp;quot;1&amp;quot;&amp;lt;/code&amp;gt; in the CMake command.&lt;br /&gt;
&lt;br /&gt;
During compilation, a script named &amp;lt;code&amp;gt;WindowsInnoSetup.iss&amp;lt;/code&amp;gt; is created in the RawTherapee installation folder. This script is used by Inno Setup [http://www.jrsoftware.org/isinfo.php], a program which is used to generate installers for Windows programs. It is advised to download the Unicode version [http://www.jrsoftware.org/download.php/is-unicode.exe] to avoid problems with some languages.&lt;br /&gt;
&lt;br /&gt;
To help users [[How_to_write_useful_bug_reports|write useful bug reports]], package maintainers are encouraged to produce builds which include both a &amp;quot;release&amp;quot; and a &amp;quot;debug&amp;quot; executable, and to bundle them together with the GDB debugger executable.&lt;br /&gt;
&lt;br /&gt;
In other words, put the &amp;lt;code&amp;gt;rawtherapee.exe&amp;lt;/code&amp;gt; (release) file together with the &amp;lt;code&amp;gt;rawtherapee-debug.exe&amp;lt;/code&amp;gt; (debug) file and the &amp;lt;code&amp;gt;gdb.exe&amp;lt;/code&amp;gt; file together into the same installer or the same archive. An alternative is to produce &amp;quot;relwithdebinfo&amp;quot; builds - these are much faster than &amp;quot;debug&amp;quot; but not as optimized as &amp;quot;release&amp;quot; builds, yet they provide just about as much useful information as &amp;quot;debug&amp;quot; builds. &lt;br /&gt;
&lt;br /&gt;
When making &amp;quot;relwithdebinfo&amp;quot; or &amp;quot;debug&amp;quot; builds you must provide the GDB debugger executable. Windows binaries of the debugger &amp;lt;code&amp;gt;gdb.exe&amp;lt;/code&amp;gt; can be downloaded from [http://www.equation.com/servlet/equation.cmd?fa=gdb here] in 32- and 64-bit versions and will be copied into Rawtherapee installation folder.&lt;br /&gt;
&lt;br /&gt;
Now that everything is set up, to create the package right-click on the &amp;lt;code&amp;gt;WindowsInnoSetup.iss&amp;lt;/code&amp;gt; script and choose ''Compile'' from the context menu. It will automatically generate the installer and place it in the parent folder.&lt;br /&gt;
&lt;br /&gt;
To make your new package compatible with the RawTherapee website's upload panel, create a zip archive in which you will place both the newly created installer and the corresponding ''AboutThisBuild.txt'' file which can be found at the same place. Name the resulting zip archive following this template:&lt;br /&gt;
&amp;lt;code&amp;gt;RawTherapee_&amp;lt;version&amp;gt;_WinVista_64_&amp;lt;buildtype&amp;gt;.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are building and distributing nightly builds, follow this template:&lt;br /&gt;
&amp;lt;code&amp;gt;RawTherapee_&amp;lt;branch&amp;gt;_&amp;lt;version&amp;gt;_WinVista_64_&amp;lt;buildtype&amp;gt;.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;WinVista&amp;quot;  means it can run on any version of Windows from Vista upwards, including 10.&lt;br /&gt;
* The &amp;quot;version&amp;quot; will either look like &amp;lt;code&amp;gt;5.8&amp;lt;/code&amp;gt; if you checkout the &amp;lt;code&amp;gt;5.8&amp;lt;/code&amp;gt; tag, or &amp;lt;code&amp;gt;5.8-g35abd92&lt;br /&gt;
&amp;lt;/code&amp;gt; if you checkout the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch after 5.8 was tagged.&lt;br /&gt;
* If you are shipping more than one build type in an installer, don't include &amp;lt;buildtype&amp;gt; in the name.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Getting_Started&amp;diff=8247</id>
		<title>Getting Started</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Getting_Started&amp;diff=8247"/>
		<updated>2021-05-17T06:05:09Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Removed unnecessary sentence&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Getting Started&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Welcome ==&lt;br /&gt;
&lt;br /&gt;
RawTherapee is a cross-platform raw image processing program, released under the GNU General Public License Version&amp;amp;nbsp;3. It was originally written by Gábor Horváth of Budapest, and development was taken over in 2010 by a team of people from around the world. Rather than being a raster graphics editor such as Photoshop or GIMP or a digital asset management program like digiKam, it is specifically aimed at raw photo post-production. And it does it very well - at a minimum, RawTherapee is one of the most powerful raw processing programs available.&lt;br /&gt;
&lt;br /&gt;
== Get RawTherapee ==&lt;br /&gt;
&lt;br /&gt;
{{Template:Download_stable}}&lt;br /&gt;
&lt;br /&gt;
== Start RawTherapee==&lt;br /&gt;
 &lt;br /&gt;
[[File:Rt setm fb.png|thumb|RawTherapee in Single Editor Tab Mode - Vertical Tabs, showing: 1- Main sections: [[File Browser]] (currently opened), Queue, Editor and Preferences. 2- Panels used for navigating to files and folders. 3- Thumbnails of the currently opened folder. 4- Filters to limit the thumbnails shown to only those which match some metadata or state. 5- Thumbnail zooming and info. 6- Quick image operations. 7- Sub-tabs of the File Browser: Filter (currently opened), Inspect (to see a full-sized embedded JPEG preview), Batch Edit (to apply some setting to all selected images) and Fast Export (low quality and bypasses some tools but fast saving - don't use this for typical saving!). 8- Right-click context menu (you will typically use this to apply some processing profile to all selected files).]]&lt;br /&gt;
&lt;br /&gt;
When you start RawTherapee you will land in the [[File Browser]] tab, and it might be empty. You need to point RawTherapee to where your raw photos are stored. Use the folder tree browser on the left of the ''File Browser'' tab to navigate to your raw photo repository and double-click on the folder to open it. Then double-click on a raw photo to start editing it.&lt;br /&gt;
&lt;br /&gt;
== Edit your first image ==&lt;br /&gt;
&lt;br /&gt;
First, a little background. A raw photo contains a dump of sensor data, which makes up the bulk of the raw file. This sensor data does not look like a pretty image, in fact it does not look like anything - it is &amp;quot;raw&amp;quot; data, ergo the name. It must be &amp;quot;cooked&amp;quot; to look like the image you saw through the viewfinder. Your camera cooks the raw data into a pretty image, which it stores as a JPEG file inside the raw file (yes, even when you're shooting in only &amp;quot;RAW&amp;quot; mode as opposed to &amp;quot;RAW+JPEG&amp;quot; mode). Due to this fundamental fact of the data being &amp;quot;raw&amp;quot;, there is no one correct way for a raw photo to look - the way your camera makes it look is not &amp;quot;the right way&amp;quot;, nor is it the only way. However, many photographers would like to use the &amp;quot;camera look&amp;quot; as a starting point for further adjustments, and RawTherapee makes this possible.&lt;br /&gt;
&lt;br /&gt;
When displaying a raw photo in the [[File Browser]] which has never been edited in RawTherapee before, the photo's thumbnail is based on the JPEG image embedded inside that raw file -- the exact same image you see when viewing that photo on your camera or in most other software. Once you open that photo in the [[Editor]], RawTherapee creates a new thumbnail based on the actual raw data. Since creating an image from raw data requires &amp;quot;cooking&amp;quot; it, and since you have not manually edited that image yet, RawTherapee uses parameters from the [[Preferences#Default_Processing_Profile|default processing profile for raw photos]] to process it. From that moment on, the photo's thumbnail is no longer based on the embedded JPEG but on the actual raw data. When you make adjustments to the image in the Editor, the thumbnail is updated to reflect your changes.&lt;br /&gt;
&lt;br /&gt;
Editing is done in the [[Editor]]. This is where you work with RawTherapee to create stunning works of art - or perhaps just apply first aid to your snapshots. When you open a raw photo in the Editor for the first time, the [[Preferences#Default_Processing_Profile|default processing profile for raw photos]] is applied, which as of RawTherapee 5.4 is set to &amp;quot;Auto-Matched Curve - ISO Low&amp;quot; (unless you changed it in Preferences), and it automatically adjusts your raw photo to look like the out-of-camera JPEG. It does so by analyzing the JPEG image which was created by your camera and is stored within the raw file, and adjusting the tone curve so as to match it. In most cases this match is very close to the &amp;quot;camera look&amp;quot;. In rare cases it may fail. See the [[Auto-Matched Curve]] article for more information.&lt;br /&gt;
&lt;br /&gt;
[[File:Rt setm editor.png|thumb|The Editor.]]&lt;br /&gt;
&lt;br /&gt;
Take a moment to look around this Editor tab.&lt;br /&gt;
Notice that there are tabs within this tab - on the right of screen towards the top. These tabs and the controls under them are the Toolbox. You probably have the first tab open and, if you hover your mouse over it, you'll find that it's called the Exposure tab. Below the choice of tabs are the tools the chosen tab contains – Exposure, Shadows/Highlights, Tone Mapping etc. If you click on one of them it will expand so that you can see its contents. Click again and it will collapse. Right-click on one and that one will expand while all others will collapse - a time-saving shortcut. To the left of each tool's label is a power button ([[File:Power-on-small.png]] on / [[File:Power-off-small.png]] off) which lets you turn it on or off, or in some cases instead of a power button there is a triangular expander [[File:Expander-closed-small.png]]. Read the [[General_Comments_About_Some_Toolbox_Widgets#Tools|Tools section of the General Comments About Some Toolbox Widgets]] article for a detailed explanation.&lt;br /&gt;
Browse through the tabs and panels until you feel totally overwhelmed by all that's available.&lt;br /&gt;
&lt;br /&gt;
Before you start working on an image, here is some important advice – '''Don't Panic!''' You are in no danger of destroying any of your prized images if you make a mistake. RawTherapee has some features which help you protect your images:&lt;br /&gt;
* RawTherapee does non-destructive editing of your raw files. This means that RawTherapee will never, ever change the raw file itself. All changes are stored in sidecar files. You can find out more about them in the [[Sidecar Files - Processing Profiles]] article.&lt;br /&gt;
* When using the Editor, you'll see the [[Editor#History|History]] panel on the left. This panel shows a history stack of every change you have made to your image. To go back to any step (including when the image was first loaded), just click on the relevant line in the History panel.&lt;br /&gt;
* Under the History panel you'll see a [[Editor#Snapshots|Snapshots]] panel. You can skip it for now, but you'll find it handy when you gain experience with RawTherapee. This panel stores the state of all the tools as a &amp;quot;snapshot&amp;quot;. This allows you to easily, for example, tweak your photo to a nice and colorful look and take a snapshot, then tweak it again to a lovely black-and-white look and take a snapshot, and then compare the two just by clicking on either snapshot. (Note: RawTherapee does not save snapshots to the PP3 file yet, it will do so in the future. If you have three snapshots which you want to retain, you will need to click through them and save a PP3 file each time under a unique name).&lt;br /&gt;
* As you might expect, Control-z will undo the previous change.&lt;br /&gt;
&lt;br /&gt;
=== Basics ===&lt;br /&gt;
&lt;br /&gt;
# Open the raw photo. RawTherapee automatically makes it look like your camera's output. If you're happy with the result, you're done. Else read on.&lt;br /&gt;
# Click on the [[File:Color-circles.png]] Color tab and expanding the [[White Balance]] tool by right-clicking on it (or use the {{k|w}} [[Keyboard Shortcuts|keyboard shortcut]]). RawTherapee will start with the white balance used by your camera. Most white balance adjustments involve moving the Temperature and Tint sliders, or using the [[File:Color-picker.png]] Spot White-Balance Picker on a colorless (neutral gray) patch. Adjust to taste.&lt;br /&gt;
# Next, fix the exposure by going to the [[File:Exposure.png]] Exposure tab, expanding the [[Exposure]] tool and adjusting it to taste. For now, just use the Exposure Compensation and Saturation sliders.&lt;br /&gt;
# If your image is noisy, switch to the [[File:Detail.png]] Detail tab, zoom to 100% either using the [[File:Magnifier-1to1.png]] button or using the {{k|z}} keyboard shortcut, because the effects of the tools in this tab are only visible in the zoomed-to-100% preview (and of course in the saved image), and enable the [[Noise Reduction]] tool by clicking on the power button [[File:Power-on-small.png]] leaving the settings at their default values for now. RawTherapee has automatically removed color (chrominance) noise. Luminance noise is removed [[Noise_Reduction#Usage|manually]], though leave it for now as luminance noise generally lends a pleasing, grainy, film-like look. As a general rule, when using noise reduction don't use sharpening. Zoom back out to see the whole image either using the [[File:Magnifier-fit.png]] button or using the {{k|f}} keyboard shortcut key.&lt;br /&gt;
# Now you decided you want to fix the [[Lens/Geometry|geometry]] and composition of your photo.&lt;br /&gt;
#* First make the horizon level, or correct the things which should be vertical such as street lamps or building edges. To easily do this, press the &amp;quot;s&amp;quot; key on your keyboard (the same as clicking the [[File:Rotate-straighten.png]] button), and click-and-drag a line along the horizon or along the edge of a building over the preview. Your image will rotate accordingly and you will automatically be taken into the [[File:Transform.png]] Transform tab.&lt;br /&gt;
#* To crop the photo, press the {{k|c}} shortcut key on your keyboard (or use the [[File:Crop.png]] button) and click-and-drag a crop over the preview; you will notice that the [[Crop]] tool becomes automatically enabled. There is no need to &amp;quot;apply&amp;quot; a crop - it takes effect the moment you draw it. You can zoom to fit the crop area by using the {{k|f}} keyboard shortcut, or {{k|alt}}+{{k|f}} if you want to fit the whole image. You may want to set the Crop &amp;quot;Guide type&amp;quot; to &amp;quot;none&amp;quot; if it's a problem.&lt;br /&gt;
#* Finally, you want to downscale the photo, because who wants to upload a 10MB JPEG to your social network. Enable the [[Resize]] tool and the [[Resize#Post-Resize_Sharpening|Post-Resize Sharpening]] sub-tool, and leave them at the default settings. The resizing effect is only applied to the saved image, not to the preview, so you won't see any change in the preview as you enable these tools.&lt;br /&gt;
# You're all set, let's [[Saving|save]] it straight away. Click the [[File:save.png]] Save Current Image button (located below the lower left corner of the preview area), or use the {{k|Ctrl}}+{{k|s}} keyboard shortcut. Save it as a JPG file using default settings (quality at &amp;quot;92&amp;quot;, subsampling at &amp;quot;balanced&amp;quot;). These are good all-round settings. Choose a folder where you want it saved to, and after a few seconds your file will be ready in the folder you selected. If you close RawTherapee, the settings you used will be stored in a [[Sidecar_Files_-_Processing_Profiles|PP3 sidecar file]] next to the raw file, so that you can re-open the raw photo in the future and retain the tool settings you used.&lt;br /&gt;
&lt;br /&gt;
Now that you went through basic photo adjustment and are familiar with the steps, let's recap the steps but with more advanced details.&lt;br /&gt;
&lt;br /&gt;
=== Advanced ===&lt;br /&gt;
&lt;br /&gt;
Always read each tool's article here on RawPedia before using it, to get a firm understanding of what it does. The articles explain how the tools work in RawTherapee, while the general concepts unspecific to RawTherapee are left to the user to find on Wikipedia or elsewhere.&lt;br /&gt;
&lt;br /&gt;
Be sure to see the [[Keyboard Shortcuts]].&lt;br /&gt;
&lt;br /&gt;
The order of the tools inside RawTherapee's engine pipeline is hard-coded, so from that point of view it does not matter when you enable or disable a tool. However some tools can make a large impact on other tools, e.g. changing exposure may require you to re-adjust color toning, and some tools may require plenty of CPU power to calculate the preview making updates of the preview from then on slow, so it is for this reason we suggest you stick to this general order of operations:&lt;br /&gt;
# Start off by making sure that RawTherapee's environment is set up correctly, meaning:&lt;br /&gt;
#* Make sure that RawTherapee is using your monitor's color profile if you use a color-managed workflow. Check Preferences &amp;gt; Color Management. You may also need to load the appropriate calibration curves into your graphics card if you built your monitor color profile on top of them, though how you do that is outside the scope of RawTherapee.&lt;br /&gt;
#* Make sure that the Color Management tool is configured correctly. Usually the defaults are best. Read the [[Color Management]] and [[Color Management addon]] articles. If instead of using the color matrix or DCP or ICC profiles shipped with RawTherapee you decide to use an external one, for example a self-made DCP or one from Adobe, load it as the first thing you do, otherwise you may need to re-adjust some of the color tools. Always use an output profile - in most cases the default one, RT_sRGB. If you think you're being smart by selecting &amp;quot;No ICM: sRGB Output&amp;quot;, you're mistaken.&lt;br /&gt;
# If you want to use a [[Flat Field|Flat-Field]] and/or [[Dark Frame|Dark-Frame]] image, do so now, to avoid re-adjustment.&lt;br /&gt;
# Now set the correct [[White Balance]]. You may fix the exposure first if the image is too dark (or too bright) to see white balance changes.&lt;br /&gt;
# Next, adjust the [[Exposure]], using the Exposure Compensation and Black sliders to get the image into the right ballpark. Once in the right ballpark, continue with using both tone curves. Be sure to read the [[Exposure#Tone_Curves|Tone Curve section]] in the Exposure article to learn why there are two of them and how best to use them - they are a very powerful tool!&lt;br /&gt;
# In the Basics section above we suggested that you use the [[Exposure#Saturation|Saturation]] slider (in the Exposure tool). Now that you've learned the basics and are exploring more advanced techniques, we suggest you not use the Saturation slider anymore, and instead use the more powerful [[Lab_Adjustments#CC_Curve|CC curve]] in the [[Lab Adjustments]] tool, as it gives you finer control.&lt;br /&gt;
# The order of the rest gets fuzzy. Some tools will unavoidably influence others. Carry on with the [[Lab Adjustments]] tool and then the rest of the tools in the Exposure tab. &lt;br /&gt;
# Then use the tools in the [[File:Color-circles.png]] Color tab.&lt;br /&gt;
# Then zoom to 100% and use the tools in the [[File:Detail.png]] Detail tab. Generally, don't sharpen if you're using noise reduction.&lt;br /&gt;
# Finally, zoom out again and use the tools in the [[File:Transform.png]] Transform tab. The reason you left these for last is that they may make the preview image appear a bit blurry, because in order for the preview to be responsive, RawTherapee uses that very preview image you see at the very resolution you see - small - to show what the tools do, and when you rotate or otherwise change the geometry of a small image, there is a clear softening. This is not a problem when saving as by that point RawTherapee does its processing on the full-sized image, which is slow but of high quality.&lt;br /&gt;
# You can edit metadata in the [[File:Metadata.png]] [[Metadata_Copy_Mode|Meta]] tab at any time before saving.&lt;br /&gt;
# Save, either directly [[file:save.png]] when you want to save a single photo, or via the [[file:gears.png]] [[The_Batch_Queue|Batch Queue]] when you want to process many photos. See the [[Saving Images]] article.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Download&amp;diff=8245</id>
		<title>Download</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Download&amp;diff=8245"/>
		<updated>2021-05-17T05:11:27Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Rewritten development build section, including more links to nightly builds&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Download&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Stable Releases ==&lt;br /&gt;
&lt;br /&gt;
{{Template:Download_stable}}&lt;br /&gt;
&lt;br /&gt;
== Development Builds ==&lt;br /&gt;
&lt;br /&gt;
If you wish to make use of the very latest features and updates, you can use a development build. These can be downloaded from several locations:&lt;br /&gt;
&lt;br /&gt;
* The [https://github.com/Beep6581/RawTherapee/releases/tag/nightly official RawTherapee] GitHub repository. ''Note: currently, the Windows builds are not being generated.''&lt;br /&gt;
* The [https://keybase.pub/gaaned92/RTW64NightlyBuilds/ unofficial builds] by André Gauthier.&lt;br /&gt;
* The [https://keybase.pub/kd6kxr/ unofficial macOS builds] by Richard Barber.&lt;br /&gt;
&lt;br /&gt;
While the development builds can be safely run alongside an installed version of RawTherapee, be aware that edits in a newer version do not generally carry over to older versions. In other words: there is no guaranteed [https://en.wikipedia.org/wiki/Forward_compatibility forward compatibility], but we aim for complete backward compatibility.&lt;br /&gt;
&lt;br /&gt;
There are several benefits from using a development build. It contains all the latest bug fixes and usually has better support for the latest camera's. You can also test out newly introduced features before they are officially released. Feel free to comment on these and suggest changes on our [https://github.com/Beep6581/RawTherapee GitHub issue tracker] or [https://discuss.pixls.us support forum]. Be aware that backward compatibility between subsequent development builds is not guaranteed and the look and function of tools may change before a next release. If stability is key for you, we recommend that you use the [http://www.rawtherapee.com/downloads/ latest release].&lt;br /&gt;
&lt;br /&gt;
The filenames for the development builds roughly follow this structure:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;RawTherapee_branch_tag_commit_date.extension&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Code changes happen several times a day, and each code change is referenced by a unique hash number in the commit - it looks like this: &amp;lt;code&amp;gt;d9ad93c15&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Each commit happens on a &amp;quot;branch&amp;quot;. The main branch is called &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt;. New features are developed on their own branches, and then merged into &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; when ready.&lt;br /&gt;
* The &amp;quot;tag&amp;quot; is the human-friendly version of the latest release, e.g. &amp;lt;code&amp;gt;5.8&amp;lt;/code&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Windows&amp;diff=8244</id>
		<title>Windows</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Windows&amp;diff=8244"/>
		<updated>2021-05-16T17:00:40Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Major rewrite: remove 32-bit instructions (deprecated), use Ninja for building, remove other unnecessary information, and various other changes&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Windows&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Follow the instructions on this page to compile RawTherapee on Windows using the [https://www.msys2.org MSYS2] build environment. For more details on customizing and understanding the build process, see the [[Linux]] article.&lt;br /&gt;
&lt;br /&gt;
Note: this guide applies to compiling the '''64-bit''' version of RawTherapee under '''Windows 7 and newer'''. Compiling the 32-bit version is no longer supported, nor is compilation on older operating systems. The latest version of RawTherapee to work under 32-bit Windows XP is 5.0-rc1, and can be downloaded [http://www.rawtherapee.com/downloads/5.0-r1/ here] (dated 2017-02-02).&lt;br /&gt;
&lt;br /&gt;
Note that RawTherapee also requires the availability of GTK+ 3.22.24 or newer to have [https://gitlab.gnome.org/GNOME/gtk/issues/760#note_110809 native window support]. Without it RawTherapee may exhibit [https://github.com/Beep6581/RawTherapee/issues/4125 strange behavior], such as maximizing underneath the taskbar in Windows 10. When using an up to date build environment, you should not encounter this problem.&lt;br /&gt;
&lt;br /&gt;
== MSYS2 Installation ==&lt;br /&gt;
&lt;br /&gt;
=== Install MSYS2 base system ===&lt;br /&gt;
&lt;br /&gt;
Install the build environment MSYS2 carefully by following the instructions from the [https://www.msys2.org MSYS2 website]. Make sure to update the system fully until no further updates are available, using the command:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ pacman -Syu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
MSYS2 provides [https://www.msys2.org/wiki/MSYS2-introduction/ three 'shells'] (command-line interfaces) for different purposes: '''MSYS''', '''MinGW 32-bit''' and '''MinGW 64-bit'''. They can be launched through shortcuts in your Start menu. Most commonly you will be running a 64-bit operating system and will want to create applications that are optimized for that. Therefore, start the '''MSYS2 MinGW 64-bit''' shell and continue below.&lt;br /&gt;
&lt;br /&gt;
[[File:MSYS2 Shell.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note: in following text, &amp;lt;code&amp;gt;&amp;lt;MSYS2&amp;gt;&amp;lt;/code&amp;gt; refers to the MSYS2 installation folder, typically &amp;lt;code&amp;gt;C:\msys64&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install tools and libraries ===&lt;br /&gt;
&lt;br /&gt;
MSYS2 uses the package manager &amp;lt;code&amp;gt;pacman&amp;lt;/code&amp;gt; to install software and components. Please refer to the [https://wiki.archlinux.org/index.php/pacman pacman manual] for details.&lt;br /&gt;
 &lt;br /&gt;
First, install a few miscellaneous tools:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ pacman -S tar gzip nano make diffutils intltool git&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the necessary development tools and the required libraries:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-gdb mingw-w64-x86_64-make mingw-w64-x86_64-pkg-config mingw-w64-x86_64-cmake mingw-w64-x86_64-gtkmm3 mingw-w64-x86_64-lcms2 mingw-w64-x86_64-fftw mingw-w64-x86_64-lensfun&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Updating Lensfun database ===&lt;br /&gt;
&lt;br /&gt;
RawTherapee uses the [https://lensfun.github.io Lensfun] library for lens-specific corrections. Run the following command to update the database:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ lensfun-update-data&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The updater returns the path where the updated database is located. '''Copy this path for later use!'''&lt;br /&gt;
&lt;br /&gt;
=== Download and build libiptcdata ===&lt;br /&gt;
&lt;br /&gt;
The required &amp;lt;code&amp;gt;libiptcdata&amp;lt;/code&amp;gt; library is not provided by MSYS2 and should be built manually. Follow the following steps:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cd ~&lt;br /&gt;
$ curl -LO http://downloads.sourceforge.net/project/libiptcdata/libiptcdata/1.0.4/libiptcdata-1.0.4.tar.gz&lt;br /&gt;
$ tar xzf libiptcdata-1.0.4.tar.gz&lt;br /&gt;
$ cd libiptcdata-1.0.4&lt;br /&gt;
$ ./configure --prefix=/mingw64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some modifications to the resulting &amp;lt;code&amp;gt;Makefile&amp;lt;/code&amp;gt; are needed. You can edit the file with any text editor (either through your OS or from within the shell). We use the &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; editor from within the shell:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ nano Makefile&lt;br /&gt;
&lt;br /&gt;
# search (command Ctrl+W)&lt;br /&gt;
DIST_SUBDIRS = m4 libiptcdata po iptc docs win python&lt;br /&gt;
# and replace with&lt;br /&gt;
DIST_SUBDIRS = m4 libiptcdata po win python&lt;br /&gt;
&lt;br /&gt;
# search&lt;br /&gt;
SUBDIRS = m4 libiptcdata po iptc docs win $(MAYBE_PYTHONLIB)&lt;br /&gt;
# and replace with&lt;br /&gt;
SUBDIRS = m4 libiptcdata po win $(MAYBE_PYTHONLIB)&lt;br /&gt;
&lt;br /&gt;
# save and quit&lt;br /&gt;
Ctrl+X, Y&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally build and install the library:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Clone and build RawTherapee ==&lt;br /&gt;
&lt;br /&gt;
=== Clone RawTherapee's git repository. ===&lt;br /&gt;
RawTherapee's source code can be cloned from [https://github.com/Beep6581/RawTherapee the official GitHub repository]:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cd ~&lt;br /&gt;
$ git clone git://github.com/Beep6581/RawTherapee.git&lt;br /&gt;
$ cd RawTherapee&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Switching branches ===&lt;br /&gt;
After cloning you will automatically have checked out the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch. This is the main development branch of RawTherapee and probably what you want to use. To switch to a [https://github.com/Beep6581/RawTherapee/branches different branch], do the following:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ git checkout branchname # replace with another available branch name&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create a separate directory for the build ===&lt;br /&gt;
It is essential to create a new directory to build the application. The directory can have any name, for example:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ mkdir build&lt;br /&gt;
$ cd build&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: if you switch branches, ''always build in an empty directory'' to prevent issues. From within a build directory, you can run &amp;lt;code&amp;gt;rm -rf *&amp;lt;/code&amp;gt; to remove all files.&lt;br /&gt;
&lt;br /&gt;
=== Configuration and compilation ===&lt;br /&gt;
To create an optimized build for your machine architecture, use the following commands:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cmake -G &amp;quot;Ninja&amp;quot; -DLENSFUNDBDIR=put/your/lensfun/directory/here -DCMAKE_BUILD_TYPE=&amp;quot;release&amp;quot; -DPROC_TARGET_NUMBER=&amp;quot;2&amp;quot; -DCACHE_NAME_SUFFIX=&amp;quot;5-dev&amp;quot; ..&lt;br /&gt;
$ cmake --build . --target install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Make sure to replace the path to the Lensfun database with the actual path obtained a few steps before. See the [[Linux#CMake|Linux article]] for more details on the various options. Depending on your system, the build process may take anywhere between 5 and 25 minutes.&lt;br /&gt;
&lt;br /&gt;
There may be warnings during the build process which you can safely ignore. Errors that are not traceable to a mistake when following this guide should be reported [https://github.com/Beep6581/RawTherapee/issues/new?assignees=&amp;amp;labels=&amp;amp;template=bug_report.md&amp;amp;title= here]. &lt;br /&gt;
&lt;br /&gt;
=== Starting RawTherapee ===&lt;br /&gt;
RawTherapee can now be run:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ ./release/rawtherapee.exe # replace release with debug or relwithdebinfo if you built another target&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional: preloaded CMake cache ===&lt;br /&gt;
As described in the [https://cmake.org/cmake/help/latest/manual/cmake.1.html CMake manual]&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
-C &amp;lt;initial-cache&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    Pre-load a script to populate the cache.&lt;br /&gt;
&lt;br /&gt;
    When cmake is first run in an empty build tree, it creates a CMakeCache.txt file and populates it with customizable settings for the project. This option may be used to specify a file from which to load cache entries before the first pass through the project’s cmake listfiles. The loaded entries take priority over the project’s default values. The given file should be a CMake script containing SET commands that use the CACHE option, not a cache-format file.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To simplify the invocation of CMake and be able to easily define Windows specific options, a &amp;lt;code&amp;gt;win.cmake&amp;lt;/code&amp;gt; template script is provided with the sources. Copy it out of RawTherapee's source to avoid overwriting by update for instance in &amp;lt;code&amp;gt;mywin.cmake&amp;lt;/code&amp;gt;.&lt;br /&gt;
Edit it to define or modify options. To preload the cache, in the CMake command line:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
$ cmake -G &amp;quot;Ninja&amp;quot; -DLENSFUNDBDIR=share/lensfun -DCMAKE_BUILD_TYPE=&amp;quot;release&amp;quot; -DPROC_TARGET_NUMBER=&amp;quot;2&amp;quot; -DCACHE_NAME_SUFFIX=&amp;quot;5-dev&amp;quot; -C &amp;lt;path/to/mywin.cmake&amp;gt; ..&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Making a bundled build ==&lt;br /&gt;
&lt;br /&gt;
This section only applies if you want to run RawTherapee outside the MinGW shell or distribute it.&lt;br /&gt;
&lt;br /&gt;
Note: You can copy either with the Windows file manager or, recommended, with [https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy robocopy] inside the &amp;lt;code&amp;gt;mingw64&amp;lt;/code&amp;gt; shell script using &amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt; instead of &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt; for the options.&lt;br /&gt;
&lt;br /&gt;
=== Definition of folders ===&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;prefix&amp;gt;&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;&amp;lt;MSYS2&amp;gt;\mingw64&amp;lt;/code&amp;gt;,&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;MSYS2&amp;gt;&amp;lt;/code&amp;gt; is the MSYS2 installation folder,&lt;br /&gt;
*and &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt; is the RawTherapee installation folder.&lt;br /&gt;
&lt;br /&gt;
=== Copy RawTherapee executable and generated files ===&lt;br /&gt;
Copy the content of &amp;lt;code&amp;gt;c:\code\repo-rt\build\&amp;lt;debug|release|relwithdebinfo&amp;gt;&amp;lt;/code&amp;gt; into &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Copy the  dependencies ===&lt;br /&gt;
Copy the necessary DLLs and exe from &amp;lt;code&amp;gt;&amp;lt;prefix&amp;gt;\bin&amp;lt;/code&amp;gt; into &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt;.&lt;br /&gt;
The current list of required DLLs and EXE is:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
gspawn-win64-helper.exe&lt;br /&gt;
gspawn-win64-helper-console.exe&lt;br /&gt;
gdbus.exe&lt;br /&gt;
libatk-1.0-0.dll&lt;br /&gt;
libatkmm-1.6-1.dll&lt;br /&gt;
libbz2-1.dll&lt;br /&gt;
libcairo-2.dll&lt;br /&gt;
libcairo-gobject-2.dll&lt;br /&gt;
libcairomm-1.0-1.dll&lt;br /&gt;
libcroco-0.6-3.dll&lt;br /&gt;
libdatrie-1.dll&lt;br /&gt;
libepoxy-0.dll&lt;br /&gt;
libexpat-1.dll&lt;br /&gt;
libffi-6.dll&lt;br /&gt;
libfftw3f-3.dll&lt;br /&gt;
libfontconfig-1.dll&lt;br /&gt;
libfreetype-6.dll&lt;br /&gt;
libfribidi-0.dll&lt;br /&gt;
libgcc_s_seh-1.dll&lt;br /&gt;
libgdk_pixbuf-2.0-0.dll&lt;br /&gt;
libgdk-3-0.dll&lt;br /&gt;
libgdkmm-3.0-1.dll&lt;br /&gt;
libgio-2.0-0.dll&lt;br /&gt;
libgiomm-2.4-1.dll&lt;br /&gt;
libglib-2.0-0.dll&lt;br /&gt;
libglibmm-2.4-1.dll&lt;br /&gt;
libgmodule-2.0-0.dll&lt;br /&gt;
libgobject-2.0-0.dll&lt;br /&gt;
libgomp-1.dll&lt;br /&gt;
libgraphite2.dll&lt;br /&gt;
libgtk-3-0.dll&lt;br /&gt;
libgtkmm-3.0-1.dll&lt;br /&gt;
libharfbuzz-0.dll&lt;br /&gt;
libiconv-2.dll&lt;br /&gt;
libintl-8.dll&lt;br /&gt;
libjpeg-8.dll&lt;br /&gt;
liblcms2-2.dll&lt;br /&gt;
liblensfun.dll&lt;br /&gt;
liblzma-5.dll&lt;br /&gt;
libpango-1.0-0.dll&lt;br /&gt;
libpangocairo-1.0-0.dll&lt;br /&gt;
libpangoft2-1.0-0.dll&lt;br /&gt;
libpangomm-1.4-1.dll&lt;br /&gt;
libpangowin32-1.0-0.dll&lt;br /&gt;
libpcre-1.dll&lt;br /&gt;
libpixman-1-0.dll&lt;br /&gt;
libpng16-16.dll&lt;br /&gt;
librsvg-2-2.dll&lt;br /&gt;
libsigc-2.0-0.dll&lt;br /&gt;
libstdc++-6.dll&lt;br /&gt;
libsystre-0.dll&lt;br /&gt;
libthai-0.dll&lt;br /&gt;
libtiff-5.dll&lt;br /&gt;
libtre-5.dll&lt;br /&gt;
libwinpthread-1.dll&lt;br /&gt;
libxml2-2.dll&lt;br /&gt;
libzstd.dll&lt;br /&gt;
zlib1.dll&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the following list of Adwaita theme files and directories  from &amp;lt;code&amp;gt;&amp;lt;prefix&amp;gt;\share\icons\Adwaita\&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;.\share\icons\Adwaita\&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
scalable\actions&lt;br /&gt;
scalable\devices&lt;br /&gt;
scalable\mimetypes&lt;br /&gt;
scalable\places&lt;br /&gt;
scalable\status&lt;br /&gt;
scalable\ui&lt;br /&gt;
index.theme&lt;br /&gt;
cursors\plus.cur&lt;br /&gt;
cursors\sb_h_double_arrow.cur&lt;br /&gt;
cursors\sb_left_arrow.cur&lt;br /&gt;
cursors\sb_right_arrow.cur&lt;br /&gt;
cursors\sb_v_double_arrow.cur&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy following files :&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;prefix&amp;gt;\lib\gdk-pixbuf-2.0 -&amp;gt; .\lib\gdk-pixbuf-2.0&lt;br /&gt;
&amp;lt;prefix&amp;gt;\share\glib-2.0\schemas\gschemas.compiled -&amp;gt; .\share\glib-2.0\schemas&lt;br /&gt;
&amp;lt;prefix&amp;gt;\share\lensfun\version_1\* -&amp;gt; .\share\lensfun&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create in .\share\gtk-3.0 a file &amp;lt;code&amp;gt;settings.ini&amp;lt;/code&amp;gt; containing :&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
[Settings] gtk-button-images=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Creating a distributable package ==&lt;br /&gt;
&lt;br /&gt;
If you plan to distribute RawTherapee packages for the Windows platform, as a first step you need to make sure that RawTherapee will be built for the &amp;quot;generic&amp;quot; processor target. To do so, use &amp;lt;code&amp;gt;-DPROC_TARGET_NUMBER=&amp;quot;1&amp;quot;&amp;lt;/code&amp;gt; in the CMake command.&lt;br /&gt;
&lt;br /&gt;
During compilation, a script named &amp;lt;code&amp;gt;WindowsInnoSetup.iss&amp;lt;/code&amp;gt; is created in the RawTherapee installation folder. This script is used by Inno Setup [http://www.jrsoftware.org/isinfo.php], a program which is used to generate installers for Windows programs. It is advised to download the Unicode version [http://www.jrsoftware.org/download.php/is-unicode.exe] to avoid problems with some languages.&lt;br /&gt;
&lt;br /&gt;
To help users [[How_to_write_useful_bug_reports|write useful bug reports]], package maintainers are encouraged to produce builds which include both a &amp;quot;release&amp;quot; and a &amp;quot;debug&amp;quot; executable, and to bundle them together with the GDB debugger executable.&lt;br /&gt;
&lt;br /&gt;
In other words, put the &amp;lt;code&amp;gt;rawtherapee.exe&amp;lt;/code&amp;gt; (release) file together with the &amp;lt;code&amp;gt;rawtherapee-debug.exe&amp;lt;/code&amp;gt; (debug) file and the &amp;lt;code&amp;gt;gdb.exe&amp;lt;/code&amp;gt; file together into the same installer or the same archive. An alternative is to produce &amp;quot;relwithdebinfo&amp;quot; builds - these are much faster than &amp;quot;debug&amp;quot; but not as optimized as &amp;quot;release&amp;quot; builds, yet they provide just about as much useful information as &amp;quot;debug&amp;quot; builds. &lt;br /&gt;
&lt;br /&gt;
When making &amp;quot;relwithdebinfo&amp;quot; or &amp;quot;debug&amp;quot; builds you must provide the GDB debugger executable. Windows binaries of the debugger &amp;lt;code&amp;gt;gdb.exe&amp;lt;/code&amp;gt; can be downloaded from [http://www.equation.com/servlet/equation.cmd?fa=gdb here] in 32- and 64-bit versions and will be copied into Rawtherapee installation folder.&lt;br /&gt;
&lt;br /&gt;
Now that everything is set up, to create the package right-click on the &amp;lt;code&amp;gt;WindowsInnoSetup.iss&amp;lt;/code&amp;gt; script and choose ''Compile'' from the context menu. It will automatically generate the installer and place it in the parent folder.&lt;br /&gt;
&lt;br /&gt;
To make your new package compatible with the RawTherapee website's upload panel, create a zip archive in which you will place both the newly created installer and the corresponding ''AboutThisBuild.txt'' file which can be found at the same place. Name the resulting zip archive following this template:&lt;br /&gt;
&amp;lt;code&amp;gt;RawTherapee_&amp;lt;version&amp;gt;_WinVista_64_&amp;lt;buildtype&amp;gt;.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are building and distributing nightly builds, follow this template:&lt;br /&gt;
&amp;lt;code&amp;gt;RawTherapee_&amp;lt;branch&amp;gt;_&amp;lt;version&amp;gt;_WinVista_64_&amp;lt;buildtype&amp;gt;.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;WinVista&amp;quot;  means it can run on any version of Windows from Vista upwards, including 10.&lt;br /&gt;
* The &amp;quot;version&amp;quot; will either look like &amp;lt;code&amp;gt;5.8&amp;lt;/code&amp;gt; if you checkout the &amp;lt;code&amp;gt;5.8&amp;lt;/code&amp;gt; tag, or &amp;lt;code&amp;gt;5.8-g35abd92&lt;br /&gt;
&amp;lt;/code&amp;gt; if you checkout the &amp;lt;code&amp;gt;dev&amp;lt;/code&amp;gt; branch after 5.8 was tagged.&lt;br /&gt;
* If you are shipping more than one build type in an installer, don't include &amp;lt;buildtype&amp;gt; in the name.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Sidecar_Files_-_Processing_Profiles&amp;diff=8041</id>
		<title>Sidecar Files - Processing Profiles</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Sidecar_Files_-_Processing_Profiles&amp;diff=8041"/>
		<updated>2021-03-22T06:00:06Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Extended description on profile toolbar, including image and clarification of operation order (first file selection, then parameter selection)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;Sidecar Files / Processing Profiles&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Processing profiles (with a PP3 extension for version 3 or PP2 for the older version 2) are text files which contain all of the tool settings which RawTherapee applies to the associated photo. If you are familiar with other raw processors, you may know their equivalent as &amp;quot;presets&amp;quot;. They are stored alongside their associated photos, which is why they are also called [https://en.wikipedia.org/wiki/Sidecar_file sidecar files].&lt;br /&gt;
&lt;br /&gt;
When you open a folder with photos in RawTherapee's File Browser for the first time, none of the images will have PP3 sidecar files. The thumbnails shown for images which have no processing profile assigned (images which have never been opened or edited) are created from the JPEG image embedded in each raw file. A processing profile is assigned to the image the moment one of these actions are taken:&lt;br /&gt;
* You open the photo for [[The Image Editor Tab|editing]].&lt;br /&gt;
* You apply a processing profile manually, by using the right-click context menu in the [[The File Browser Tab|File Browser]] or [[The_Image_Editor_Tab#The_Filmstrip|Filmstrip]].&lt;br /&gt;
* You apply a [[Dynamic processing profiles|dynamic processing profile]].&lt;br /&gt;
&lt;br /&gt;
When you open an image for editing, or when a processing profile is assigned, RawTherapee will convert the real raw data into a viewable image. In order to do this, there are many settings which need to be set to ''something'', and what these specific values are depends on:&lt;br /&gt;
* Your [[Preferences#Default_Processing_Profile|default processing profile]].&lt;br /&gt;
* Your [[Dynamic processing profiles|dynamic processing profile rules]], if any.&lt;br /&gt;
* Or on the processing profile you selected from the right-click context menu if you right-clicked on a thumbnail.&lt;br /&gt;
&lt;br /&gt;
== Sources ==&lt;br /&gt;
Processing profiles come from three quite different sources, though they work in exactly the same way:&lt;br /&gt;
* &amp;quot;Bundled profiles&amp;quot;.&lt;br /&gt;
*: RawTherapee comes with a bundle of profiles. Their purpose is to give you a good starting point, to demonstrate how the tools can be used together. They are the ones you see in the [[The Image Editor Tab#Processing Profile Selector|Processing Profile Selector]] drop-down list's &amp;quot;Bundled profiles&amp;quot; section, in the [[The_Image_Editor_Tab|Image Editor]].&lt;br /&gt;
* &amp;quot;My profiles&amp;quot;.&lt;br /&gt;
*: When you make a processing profile which you want to re-use, for example one which works well with your camera and your style, you can save it so that it also appears in the Processing Profile Selector drop-down list, in the &amp;quot;My profiles&amp;quot; section. To have it appear there, save it to the &amp;quot;profiles&amp;quot; folder within the &amp;quot;config&amp;quot; folder - see the [[File Paths]] article to find it.&lt;br /&gt;
* Automatically generated profiles.&lt;br /&gt;
*: Whenever you edit an image, the tool settings you want applied to that image are stored in a processing profile that is particular to that image (ranking information, the history panel contents and snapshots are not stored in these files yet, see [https://code.google.com/p/rawtherapee/issues/detail?id=473 issue #473]).&lt;br /&gt;
&lt;br /&gt;
== Saving ==&lt;br /&gt;
As simply viewing the image requires processing, RawTherapee stores the settings it used to show you the image in a sidecar processing profile. That processing profile also stores all the tool tweaks you made in the Editor tab.&lt;br /&gt;
&lt;br /&gt;
The processing profile is written to disk:&lt;br /&gt;
* When you apply a processing profile manually or using a dynamic profile.&lt;br /&gt;
* When you close the current image (the Editor tab) if using [[The_Image_Editor_Tab#Editor_Tab_Modes|Multiple Editor Tabs Mode]] (METM).&lt;br /&gt;
* When you close the current image by opening a different image if using [[The_Image_Editor_Tab#Editor_Tab_Modes|Single Editor Tab Mode]] (SETM).&lt;br /&gt;
* When you close the current image by closing RawTherapee.&lt;br /&gt;
* When you manually save the processing profile using the [[The_Image_Editor_Tab#Processing_Profile_Selector|Processing Profile Selector]] panel in the Editor tab.&lt;br /&gt;
* When you use the &amp;quot;force saving current settings to the processing profile&amp;quot; [[Keyboard_Shortcuts|keyboard shortcut]] from the Editor tab.&lt;br /&gt;
&lt;br /&gt;
If a photo has an associated processing profile, a green check mark will appear over its thumbnail.&lt;br /&gt;
&lt;br /&gt;
If you have a photo opened in an Editor tab and you make changes to it from the File Browser, the changes are reflected immediately in the Editor tab.&lt;br /&gt;
&lt;br /&gt;
== Storage ==&lt;br /&gt;
Where the processing profile is stored can be configured in [[Preferences#Processing_Profile_Handling|Preferences &amp;gt; Processing Profile Handling]].&lt;br /&gt;
&lt;br /&gt;
By default, the processing profile for an image is stored alongside the input image (if you open &amp;lt;code&amp;gt;kitty.raw&amp;lt;/code&amp;gt;, a new file &amp;lt;code&amp;gt;kitty.raw.pp3&amp;lt;/code&amp;gt; will be created next to it), but they can also be stored in a [[File_Paths|central cache]]. You can choose whether RawTherapee should use the cache, write the processing profile alongside the image, or both, from &amp;quot;''Preferences &amp;gt; Image Processing''&amp;quot;. We suggest you store these files alongside your input image files so that if you decide to move the images you can move the processing profiles easily along with them.&lt;br /&gt;
&lt;br /&gt;
When saving an image you have the option of ticking the &amp;quot;Save processing parameters with image&amp;quot; checkbox. If it is ticked, and if you are working on &amp;lt;code&amp;gt;kitty.raw&amp;lt;/code&amp;gt; and saving to a JPG file, then the processing profile used to develop that image will be stored in a file called &amp;lt;code&amp;gt;kitty.jpg.out.pp3&amp;lt;/code&amp;gt;. The &amp;quot;.out&amp;quot; part if there so that conflicts do not occur if you are working on a non-raw file.&lt;br /&gt;
&lt;br /&gt;
== Defaults ==&lt;br /&gt;
The default processing profile used when opening '''non-raw''' images is called &amp;quot;[[Neutral]]&amp;quot;. This profile has all tool settings at their neutral values, so they have no effect. Since non-raw images usually have already been processed and are ready for viewing, having RawTherapee not introduce any tweaks by default is the desirable behavior.&lt;br /&gt;
&lt;br /&gt;
The default profile for '''raw''' photos is called &amp;quot;[[Auto-Matched Curve]]&amp;quot; (from RawTherapee 5.4 onward). This profile makes your raw image look like the out-of-camera JPEG, which is usually a desirable starting point.&lt;br /&gt;
&lt;br /&gt;
Furthermore, most tools in the Editor tab have a reset button.&lt;br /&gt;
* Clicking the reset button resets the tool to its hard-coded neutral value, usually zero.&lt;br /&gt;
* Ctrl+clicking the reset button resets the tool to whatever value it had when you opened the image, i.e. the way it was if you rewind the history stack to the top.&lt;br /&gt;
&lt;br /&gt;
== Partial Processing Profiles and Fill Modes ==&lt;br /&gt;
Application and storage of processing profiles is controlled by the buttons in the top right corner of the editor.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;image-sample&amp;quot;&amp;gt;[[File:Processing-profiles-selector.png|left|frame]]Clicking the four right-hand buttons handles opening, saving, copying and pasting the profiles in full, while Ctrl+clicking handles them in partially. When using the latter, a window pops up to let you choose which parameters to include. This allows you to, for example, copy only the noise reduction parameters from one image to another, or only the white balance, or any other selection of parameters. Note that when loading or saving a profile, the parameter window appears after the file selection dialog.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The processing profile fill mode lets you decide what happens when you use the drop-down list to apply a processing profile to an image when that profile does not contain information about all of the tool settings.&lt;br /&gt;
* &amp;quot;Fill&amp;quot; mode [[image:Profile-filled.png]] takes any missing values from RawTherapee's hard-coded defaults. For instance if you apply a partial profile containing only sharpening settings, all of the remaining tools will pop into their default positions overwriting any edit you have made up to that point.&lt;br /&gt;
* &amp;quot;Preserve&amp;quot; mode [[image:Profile-partial.png]] applies only those values that are available in the profile and leave missing values unchanged.&lt;br /&gt;
&lt;br /&gt;
Most of the profiles that come bundled with RawTherapee are partial profiles. The article on [[File Paths]] explains where on your system you can find the available processing profiles shown in the drop-down list.&lt;br /&gt;
&lt;br /&gt;
== Creating Your Own Processing Profiles ==&lt;br /&gt;
Using certain tools in certain ways may make your processing profile only usable with that specific image. For example if you set a white balance, cropping and rotation, you won't get good results if you apply that profile to an image taken under different lighting with the camera rotated any other way. See the article [[Creating processing profiles for general use]] for advice on how to make processing profiles which can be used on many images.&lt;br /&gt;
&lt;br /&gt;
== Compatibility ==&lt;br /&gt;
Processing profiles evolve from one version of RawTherapee to the next. We strive to ensure backward compatibility (e.g. a profile created in 5.3 and opened in 5.4 should look the same), but this is not always possible.&lt;br /&gt;
&lt;br /&gt;
Processing profiles can gain new parameters or lose ones which became obsolete. Tool behavior can also evolve, wherein default values change or in extreme cases the meaning of a value is interpreted differently; an example of this is the noise reduction tool, where a luminance noise reduction value of 10 in RawTherapee-3.0 would lead to a different result in RawTherapee-4.0.10 as the whole noise reduction engine has been greatly improved.&lt;br /&gt;
&lt;br /&gt;
Consolidating processing profiles into a cache allows one to store isolated copies of the processing profiles per specific version of RawTherapee. In such a case, the cache can be used to re-process photos in order to get the same output as originally intended (but e.g. with a new size or output color space) using the same version of RawTherapee in which the image was originally edited. Whether this is desirable is debatable. Consider that you want to squeeze as much out of your raw files as possible. If two years later you want to go back to an old raw file, perhaps getting the same result as you did two years ago is not the best idea, because RawTherapee's capabilities would have greatly improved in that time, you may have acquired a better monitor, and your taste and skill would also have evolved. Nevertheless, by backing up the whole cache folder, when installing a new version of RawTherapee you retain the option of going back to an older version of RawTherapee in order to get the exact same result.&lt;br /&gt;
&lt;br /&gt;
The [[File Paths]] article describes where you can find the &amp;quot;''cache''&amp;quot; and &amp;quot;''config''&amp;quot; folders on your system.&lt;br /&gt;
&lt;br /&gt;
When releasing a major new version of RawTherapee, it may happen that we use a new suffix for the &amp;quot;''cache''&amp;quot; and &amp;quot;''config''&amp;quot; folders. This means that the new version of RawTherapee will not see your old configuration or processing profiles. Though this sounds undesirable, there are good reasons we may (rarely) choose to do that.&lt;br /&gt;
* Backward compatibility. There may be changes in behavior between old and new versions of a specific tool. For instance, the effects of the Auto Levels tool have changed (for the better) between versions 4.0.11 and 4.0.12, so if your old processing profiles had it enabled, the results in 4.0.12 will be a little different and may require tuning your old profiles.&lt;br /&gt;
* Some users have not checked &amp;quot;[[Preferences]]&amp;quot; in a long time, and their program is tuned for what worked best long ago, not for what works best now. Our defaults are good defaults, we keep them up to date to make RawTherapee look and function well out-of-the-box, so sometimes having RawTherapee start with fresh defaults is a good thing, and it will motivate users to look into &amp;quot;[[Preferences]]&amp;quot; again.&lt;br /&gt;
* Some users have never looked inside &amp;quot;[[Preferences]]&amp;quot; in the first place, and are unaware of some of the features that can be unlocked there. As above, fresh defaults will activate these things.&lt;br /&gt;
* Some old cache and config files can cause RawTherapee to crash. While we patch the specific cases made known to us, it is safe to assume there will always be cases unknown to us which will still cause instability. Starting with clean cache and config folders mitigates this problem.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
	<entry>
		<id>http://rawpedia.rawtherapee.com/index.php?title=Editor&amp;diff=8040</id>
		<title>Editor</title>
		<link rel="alternate" type="text/html" href="http://rawpedia.rawtherapee.com/index.php?title=Editor&amp;diff=8040"/>
		<updated>2021-03-22T05:55:22Z</updated>

		<summary type="html">&lt;p&gt;Thanatomanic: Added image of buttons, removed duplicate explanation, now refer to detailed article on processing profiles.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;pagetitle&amp;quot;&amp;gt;The Editor&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Rt 55 trains.png|none|frame|link=|class=heroed|The Image Editor tab in RawTherapee 5.5.]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
The Image Editor tab is where you tweak your photos. By default RawTherapee is in &amp;quot;''Single Editor Tab Mode, Vertical Tabs''&amp;quot;  (SETM) which is more memory-efficient and lets you use the ''Filmstrip'' (described below). You can switch to &amp;quot;''Multiple Editor Tabs Mode''&amp;quot; (METM) by going to &amp;quot;''Preferences &amp;gt; General &amp;gt; Layout''&amp;quot;, however each Editor tab will require a specific amount of RAM relative to the image size and the tools you use, and also the ''Filmstrip'' is hidden in this mode, so we recommend you first give SETM a try.&lt;br /&gt;
&lt;br /&gt;
== The Preview Panel ==&lt;br /&gt;
&lt;br /&gt;
The central panel holds a preview of your photo. This preview is generated from the actual raw data by processing it according to the settings either you manually set, or those that are stored in the [[Sidecar_Files_-_Processing_Profiles | processing profile]] used when opening that photo, as specified in &amp;quot;''Preferences &amp;gt; Image Processing &amp;gt; Default Processing Profile''&amp;quot;. The preview will show you the effect of all the adjustments you make. Note that the effects of some tools are only accurately visible when you are zoomed in to 1:1 (100%) or more. These tools are marked in the interface with a &amp;quot;1:1&amp;quot; icon [[File:One-to-one-small.png|Zoom 1:1]] next to the tool's name.&lt;br /&gt;
&lt;br /&gt;
The image you see in the preview is taken from the working profile's color space and converted into the monitor profile's color space, if a monitor profile is loaded, or into sRGB if one is not. It does not take into account the &amp;quot;[[Color_Management#Output_Profile|Output Profile]]&amp;quot; section of the &amp;quot;[[Color_Management|Color Management]]&amp;quot; tool.&lt;br /&gt;
&lt;br /&gt;
=== Eek! My Raw Photo Looks Different than the Camera JPEG ===&lt;br /&gt;
&lt;br /&gt;
After opening a raw photo you will notice that it looks different, often worse - darker, less sharp, more dull, lacking contrast, more noisy - than your camera's JPEG, or than the same raw photo when viewed in other software. What gives? Witches, aliens, possums, or by design?&lt;br /&gt;
&lt;br /&gt;
There are three things you must know first to understand what is happening here:&lt;br /&gt;
# Your camera does not show you the real raw data when you shoot raw photos. It processes the raw image in many ways before presenting you with the histogram and the preview on your camera's digital display. Even if you set all the processing features your camera's firmware allows you to tweak to their neutral, &amp;quot;0&amp;quot; positions, what you see is still not an unprocessed image. Exactly what gets applied depends on the choices your camera's engineers and management made, but usually this includes a custom tone curve, saturation boost, sharpening and noise reduction. Some cameras, particularly low-end ones and [http://en.wikipedia.org/wiki/Micro_Four_Thirds_system Micro Four-Thirds system], may also apply lens distortion correction to not only fix [http://en.wikipedia.org/wiki/Distortion_(optics)#Radial_distortion barrel and pincushion distortion] but also to hide severe [http://en.wikipedia.org/wiki/Vignetting vignetting] problems. Most cameras also underexpose every photo you take by anywhere from -0.3EV to even -1.3EV or more, in order to gain headroom in the highlights. When your camera (or other software) processes the raw file it increases exposure compensation by the same amount, making the brightness appear correct and hoping to recover some highlights in the process. RawTherapee shows you the real raw data which may mean your photos appear dark, so it is up to you whether you apply the required exposure increase and how you go about doing so, whether by using the Exposure Compensation slider or one of the various tone curves. Increasing exposure compensation makes noise more apparent regardless whether it is your camera or RawTherapee which does it, but other than this [b]RawTherapee does not &amp;quot;add noise&amp;quot;![/b] Many cameras apply noise reduction to the JPEGs (behind your back) to lower the noise level after increasing the exposure compensation, so you should expect there to be a difference between your out-of-camera JPEG and RawTherapee's image if noise reduction in RawTherapee is not enabled.&lt;br /&gt;
# Every DSLR raw file contains a processed JPEG image. Most raw files contain a JPEG image of the same full resolution as your camera can shoot, and some raw files contain as many as three JPEG images differing only in resolution. When you open raw files in other software, what you are usually seeing is '''not''' the raw data, but the embedded, processed JPEG image. Examples of software which are either incapable of or which in their default settings do not show you the real raw data: [http://en.wikipedia.org/wiki/IrfanView IrfanView], [http://en.wikipedia.org/wiki/XnView XnView], [http://en.wikipedia.org/wiki/Gwenview Gwenview], [http://en.wikipedia.org/wiki/Geeqie Geeqie], [http://en.wikipedia.org/wiki/Eye_of_GNOME Eye of GNOME], [http://en.wikipedia.org/wiki/F-Spot F-Spot], [http://en.wikipedia.org/wiki/Shotwell_(software) Shotwell], [http://en.wikipedia.org/wiki/GThumb gThumb], etc. It is worth mentioning at this point that if you shoot in &amp;quot;RAW+JPEG&amp;quot; mode, you are in fact wasting disk space and gaining nothing for it, as your raw files already contain the embedded JPEG files which you can view using the listed programs. The embedded JPEG may differ from an 'external' one as saved using &amp;quot;RAW+JPEG&amp;quot; mode in compression.&lt;br /&gt;
# Most raw development programs (programs which do read the real raw data instead of just reading the embedded JPEG) apply some processing to it, such as a base tone curve, even at their most neutral settings, thereby making it impossible for users to see the real, untouched contents of their raw photos. Adobe Lightroom is an example. Comparing RawTherapee's real neutral image to a quasi-neutral one from these other programs will expose the differences.&lt;br /&gt;
&lt;br /&gt;
RawTherapee, on the other hand, is designed to show you the real raw image in the main preview, leaving the way you want this data processed up to you. When you use the &amp;quot;Neutral&amp;quot; processing profile you will see the demosaiced image with camera white balance in your working color space with no other modifications. You can even see the non-demosaiced image by setting the [[demosaicing]] option to &amp;quot;None&amp;quot;. To provide you with a more aesthetically pleasing starting point, we do ship a collection of processing profiles with RawTherapee. After installing RawTherapee, the default profile for processing raw photos is eponymously called &amp;quot;Default&amp;quot;. We also ship the &amp;quot;Default ISO Medium&amp;quot; and &amp;quot;Default ISO High&amp;quot; profiles which are designed to give a good starting point to moderately noisy and very noisy images, respectively.&lt;br /&gt;
&lt;br /&gt;
None of the shipped profiles (at least none of the ones shipped in RawTherapee 5.0) are designed to imitate your camera's look. Why not? Every camera is different. My camera's image quality at ISO1600 could be far noisier than your camera's. My camera's response to colors differs from yours. Even the same camera can behave differently at various settings. To provide such profiles, we would need access to raw files for every supported camera model, often multiple raw files in various shooting modes for a single camera, and countless [http://en.wikipedia.org/wiki/Man-hour person-hours]. This may be possible as a community effort, but it is not a job for a small team. Even then, of what purpose would RawTherapee be if you ended up with a camera JPEG look?&lt;br /&gt;
&lt;br /&gt;
It is far more reasonable that you learn how to use the powerful tools that RawTherapee provides to get the most out of your raws, to surpass the camera look.&lt;br /&gt;
&lt;br /&gt;
As of September 2015 we are starting to ship DCP input profiles made using [http://www.ludd.ltu.se/~torger/dcamprof.html DCamProf] which include an [http://www.ludd.ltu.se/~torger/dcamprof.html#dcp_tone optional tone curve]. This curve is modeled after Adobe Camera Raw's default film curve and renders a result similar to your &amp;quot;camera look&amp;quot;. The reason we include the curve in new DCP profiles is because it makes for a good vibrant starting point (as opposed to the flat look of using the &amp;quot;Neutral&amp;quot; processing profile) without having to use [[Exposure#Auto_Levels|Auto Levels]] and without having to touch any of the other tools, and it is entirely optional. Do read the article on [[Color_Management#Input_Profile|input profiles]]. If we ship a DCP for your camera model which includes the tone curve, the &amp;quot;Tone curve&amp;quot; checkbox in Color Management &amp;gt; Input Profile &amp;gt; DCP will be clickable. Applying the (Neutral) processing profile will disable the tone curve.&lt;br /&gt;
While the input color profile is applied at the first stages of the [[Toolchain_Pipeline|toolchain pipeline]], the DCP tone curve is applied later in the pipeline at some point after the Exposure tool.&lt;br /&gt;
&lt;br /&gt;
You can create a processing profile ideally tailored to your camera and lens combination, and set RawTherapee to use it by default on your raw photos. See the [[Creating processing profiles for general use]] article to learn how.&lt;br /&gt;
&lt;br /&gt;
=== Scrollable Toolbars ===&lt;br /&gt;
&lt;br /&gt;
The toolbars above and below the main preview hold a certain number of buttons and other widgets which might not fit on lower resolution screens. {{:Scrollable Toolbar}}&lt;br /&gt;
&lt;br /&gt;
=== Preview Modes ===&lt;br /&gt;
&lt;br /&gt;
In addition to the normal preview, RawTherapee supports a number of other preview modes to help you tweak your photos. Preview modes are controlled via buttons in the ''Editor'' toolbar or via [[Keyboard_Shortcuts | keyboard shortcuts]]. Only one preview mode can be engaged at a time.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left: 16px; margin-top: -1em;&amp;quot;&amp;gt;&lt;br /&gt;
{| class=&amp;quot;RPwt-table&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;bottom&amp;quot; | &amp;lt;nowiki&amp;gt;*&amp;lt;/nowiki&amp;gt; The preview is returned to normal by deselecting any other mode.&lt;br /&gt;
!  Preview Mode&lt;br /&gt;
!  Shortcut&lt;br /&gt;
!  Button&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;padding:10px;&amp;quot; |  Regular*          ||                          || [[Image:preview mode 1 regular.png]]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;padding:10px;&amp;quot; |  Red channel       || align=&amp;quot;center&amp;quot; | r       || [[Image:preview mode 2 red.png]]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;padding:10px;&amp;quot; |  Green channel     || align=&amp;quot;center&amp;quot; | g       || [[Image:preview mode 3 green.png]]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;padding:10px;&amp;quot; |  Blue channel      || align=&amp;quot;center&amp;quot; | b       || [[Image:preview mode 4 blue.png]]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;padding:10px;&amp;quot; |  Luminance channel || align=&amp;quot;center&amp;quot; | v       || [[Image:preview mode 5 luminance.png]]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;padding:10px;&amp;quot; |  Focus Mask        || align=&amp;quot;center&amp;quot; | Shift+f || [[Image:preview mode 6 focus.png]]&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
The following preview modes are currently supported:&lt;br /&gt;
* Red channel,&lt;br /&gt;
* Green channel,&lt;br /&gt;
* Blue channel,&lt;br /&gt;
* Luminosity, which is calculated as 0.299*R + 0.587*G + 0.114*B,&lt;br /&gt;
* Focus mask, to see which areas are in focus&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; caption=&amp;quot;Preview modes&amp;quot; style=&amp;quot;clear: both&amp;quot;&amp;gt;&lt;br /&gt;
Image:Preview_1_regular.jpg|Regular&lt;br /&gt;
Image:Preview_2_red.jpg|Red&lt;br /&gt;
Image:Preview_3_green.jpg|Green&lt;br /&gt;
Image:Preview_4_blue.jpg|Blue&lt;br /&gt;
Image:Preview_5_luminosity.jpg|Luminosity&lt;br /&gt;
Image:Preview_6_focus.jpg|Focus Mask&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Red, Green, Blue and Luminosity Preview Modes ====&lt;br /&gt;
&lt;br /&gt;
{{:Clipping_Indication}}&lt;br /&gt;
&lt;br /&gt;
Preview of individual channels may be helpful when editing RGB curves, planning black/white conversion using the channel mixer, evaluating image noise, etc. Luminosity preview is helpful to instantly view the image in black and white without altering development parameters, to see which channel might be clipping or for aesthetic reasons.&lt;br /&gt;
&lt;br /&gt;
==== Focus Mask ====&lt;br /&gt;
&lt;br /&gt;
[[Image:Preview_6_focus_2.jpg|Focus mask indicating the focusing plane|thumb]]&lt;br /&gt;
The focus mask is designed to highlight areas of the image which are in focus. Naturally, focused areas are sharper, so the sharp areas are being highlighted. The focus mask is more accurate on images with a shallow depth of field, low noise and at higher zoom levels.To improve detection accuracy for noisy images evaluate at smaller zoom, around the 10-30% range. Note that the preview is rendered more slowly when the focus mask is enabled.&lt;br /&gt;
&lt;br /&gt;
The current implementation analyzes the preview image which is rescaled from the original captured size. This process of rescaling reduces the noise and is helpful to identify truly sharper details rather than noise itself which may also contain micro texture. At the same time, rescaling of the original image to the preview size compresses larger scale details into a smaller size, and it may introduce aliasing artifacts, both of which could lead to false positives. You can increase your confidence by viewing the mask at various zoom levels. It is not always fault proof, but can be helpful in many cases.&lt;br /&gt;
&lt;br /&gt;
'''Warning''': Be sure to double-check your images if you decide to delete them based on the focus mask.&lt;br /&gt;
&lt;br /&gt;
=== Background color of the preview ===&lt;br /&gt;
&lt;br /&gt;
The background color of the preview panel surrounding the image area may be changed to ease image preview during editing and to better visualize image cropping. A vertical stack of three thin buttons in the preview modes toolbar above the image preview panel allows to set the background color of the area around the photo preview.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left: 16px; margin-top: -1em;&amp;quot;&amp;gt;&lt;br /&gt;
{| class=&amp;quot;RPwt-table&amp;quot;&lt;br /&gt;
!  Preview&amp;lt;br /&amp;gt;Background&lt;br /&gt;
!  Shortcut&lt;br /&gt;
!  Button&lt;br /&gt;
!  Preview Background&amp;lt;br /&amp;gt;and Crop Visualization&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| Theme-based || align=&amp;quot;center&amp;quot; | 8 || [[Image:Previewback_7_theme.png]] || [[Image:Previewback_flower_theme.png|180px]] || The cropped area of the image is masked with a theme-based color. The cropped area visibility is based on the crop mask color and transparency as set in &amp;quot;''Preferences &amp;gt; Default Theme &amp;gt; Crop mask color/transparency''&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
| Black       || align=&amp;quot;center&amp;quot; | 9 || [[Image:Previewback_8_black.png]] || [[Image:Previewback_flower_white.png|frameless]] || The cropped area of the image is masked with black.&lt;br /&gt;
|-&lt;br /&gt;
| White       || align=&amp;quot;center&amp;quot; | 0 || [[Image:Previewback_9_white.png]] || [[Image:Previewback_flower_black.png|frameless]] || The cropped area of the image is masked with white.&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Detail Window ===&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New detail window&amp;quot; button [[File:Window-add.png]], situated below the main preview next to the zoom buttons, opens a new viewport over the main preview of an adjustable size and of adjustable zoom. This lets you work on the photo zoomed-to-fit while examining several areas of interest at a 100% zoom (or even more). The benefit of using this feature is particularly important to users with slower machines, though not only them, as the zoomed-out main preview takes a shorter amount of time to update than if you were to zoom it to 100% because working at a zoom level less than 100% excludes certain slow tools, such as Noise Reduction, while the little detail windows zoomed to 100% do include all tools and are fast to update because of their small size. This allows you can use the main preview for your general exposure tweaks where it is necessary to see the whole image, and one or more detail windows to get sharpening and/or noise reduction just right.&lt;br /&gt;
&lt;br /&gt;
=== Preview refresh delay ===&lt;br /&gt;
&lt;br /&gt;
Changing any tool's parameters sends a signal for the preview image to be updated accordingly. Imagine what would happen if there was no &amp;quot;delay period&amp;quot;, and you dragged, for example, the exposure compensation slider from 0.00 to +0.60. A signal would be sent to update the preview for every single change of that value - for +0.01, +0.02, ... +0.59, +0.60. Updating the preview 60 times would be completely unnecessary and actually take longer than it takes you to move the slider. This is especially true for more complicated tools, such as noise reduction, where a preview update can take even a second (depending on your CPU and preview size). The solution is for RawTherapee to wait for a very short period from the moment you stop moving a slider (you don't have to let go of it, pausing movement is enough) until the moment it sends a signal for the preview to be refreshed.&lt;br /&gt;
&lt;br /&gt;
We have introduced two parameters which control the length of this waiting period:&lt;br /&gt;
; AdjusterMinDelay&lt;br /&gt;
: Default value = 100ms.&lt;br /&gt;
: This is used for tools with a very fast response time, for example the exposure compensation slider.&lt;br /&gt;
; AdjusterMaxDelay&lt;br /&gt;
: Default value = 200ms.&lt;br /&gt;
: This is used for tools with a slow response time, for example the CIECAM02 sliders.&lt;br /&gt;
&lt;br /&gt;
You can adjust both of these values in the options file in the [[File_Paths|config folder]].&lt;br /&gt;
&lt;br /&gt;
== The Left Panel ==&lt;br /&gt;
&lt;br /&gt;
To the left is a panel which optionally shows the main histogram (&amp;quot;''Preferences &amp;gt; General &amp;gt; Layout &amp;gt; Histogram in left panel''&amp;quot;), and always shows the ''Navigator'', ''History'' and ''Snapshots''.&lt;br /&gt;
You can hide this panel using the [[Image:panel-to-left.png|Hide left panel icon]] hide icon, or its [[Keyboard Shortcuts|keyboard shortcut]].&lt;br /&gt;
&lt;br /&gt;
=== Main Histogram ===&lt;br /&gt;
&lt;br /&gt;
[[File:Rt57 histogram wide labeled.png|none|frame|class=heroed|Histogram showing all 3 channels and luminosity.]]&lt;br /&gt;
&lt;br /&gt;
[[File:RT57 histogram ani.gif|frame|The histogram in RawTherapee 5.7, showing a histogram of the raw data in all three modes - linear-linear, linear-log and log-log. We can see that the raw file is not clipped.]]&lt;br /&gt;
&lt;br /&gt;
[[File:Rt histogram rgbindicator.png|frame|The RGB indicator shows the position in the histogram of the R, G, B and L values of the pixel your cursor is hovering over.]]&lt;br /&gt;
&lt;br /&gt;
A histogram in photography is a graphical representation of the number of pixels of a given value. Typically the  horizontal axis represents the range of possible values while the vertical axis represents the count of pixels with that value. The axes need not be linear - RawTherapee can also scale the histogram logarithmically.&lt;br /&gt;
&lt;br /&gt;
Regardless of the photo's bit depth, the histogram itself has a precision of 256 sampling bins. To understand this, let us look at the example of a 16-bit image using integer precision. Its range of possible values spans from 0 to 65535 (2^16 = 65536 possible values, and since 0 is a possible minimum value then the maximum value is 65535). Drawing a histogram using 16-bit precision would mean that it would need to be 65535 pixels wide to faithfully represent the data, and no screen today is anywhere near that wide. Instead, all pixels with values from 0 to 255 (65535/256*1) are grouped into the first &amp;quot;bin&amp;quot;. The second bin consists of a count of all pixels with values from 256 to 511 (65535/256*2). The third bin represents values 512 to 767 (65535/256*3). And so on until bin 256. This happens regardless of the input image's bit depth - and RawTherapee's engine uses 32-bit floating-point precision anyway.&lt;br /&gt;
&lt;br /&gt;
The main histogram can simultaneously show one or more of the following:&lt;br /&gt;
* [[File:Histogram-red-on-small.svg]] the red channel,&lt;br /&gt;
* [[File:Histogram-green-on-small.svg]] the green channel,&lt;br /&gt;
* [[File:Histogram-blue-on-small.svg]] the blue channel,&lt;br /&gt;
* [[File:Histogram-silver-on-small.svg]] CIELab luminance,&lt;br /&gt;
* [[File:Histogram-gold-on-small.svg]] [http://en.wikipedia.org/wiki/Chromaticity chromaticity].&lt;br /&gt;
* [[File:Histogram-bayer-on-small.svg]] red, green and blue channels of the source raw image before demosaicing.&lt;br /&gt;
&lt;br /&gt;
The histogram shows the channels listed above using the gamma-corrected output profile when the gamut button [[File:Gamut-hist.png]] is disabled (default), or using the working profile when the button is enabled. The status of this button also affects the values shown in the Navigator panel, as well as the clipped shadow [[File:Warning-shadows.png]] and [[File:Warning-highlights.png]] highlight indicators. It does not affect the raw histogram.&lt;br /&gt;
&lt;br /&gt;
Like water in a pipeline, image data flows through RawTherapee from the input file through various stages, most of which the user can control, to the output. The output could be the image saved in a file, or the image displayed on your screen. Each stage affects the color data. The histogram allows you to visualize this data at several stages. By default, the histogram shows color data as it will appear if you save the output image, including processing done at all intermediate stages. By enabling the gamut button [[File:Gamut-hist.png]] you can peak at the data at the early stage where it gets converted into the working space. You can even look at the raw data before any transformations or demosaicing are applied.&lt;br /&gt;
&lt;br /&gt;
Let's examine the large histogram example above. Though it actually shows four histograms (red, green, blue and luminance), focus on one histogram at a time. The horizontal axis represents the possible values of the histogram, where &amp;quot;A&amp;quot; are the darkest values possible, &amp;quot;C&amp;quot; the mid-tones, and &amp;quot;E&amp;quot; the brightest possible values. The position of the histogram line on the vertical axis represents how many pixels have that value. We can see that there are zero pixels in the red channel with values around &amp;quot;A&amp;quot; (from zero to very dark), because the histogram line lies right along the bottom. There is a significant number of pixels where the red channel is dark (between A and B), and a significant number where it is light (around D). Then, importantly, there is a spike at the right end of the histogram, at E - it tells us that a large number of pixels have maximal red values - they are clipped.&lt;br /&gt;
&lt;br /&gt;
Generally speaking, you should care when clipping occurs on skin, and not care when it's due to [https://en.wikipedia.org/wiki/Specular_highlight specular highlights]. If a histogram shows clipping, and if you care about the clipped regions, you should start by establishing where the clipping occurs. Check the raw histogram - are any channels clipped? If yes, then maybe [[Exposure#Highlight_Reconstruction|highlight reconstruction]] can help. If the raw histograms are not clipped, then all the required information is intact, and it is some stage downstream in the pipeline which causes clipping. Ensure your working profile's gamut is large enough by enabling the gamut button [[File:Gamut-hist.png]] to see histograms at the working profile stage of the pipeline. You might want to temporarily apply the [[Neutral]] profile to disable all the tools while checking, then revert. If your working space is not causing clipping (the default working space is ProPhoto and it's huge), then it's likely your adjustments which are causing clipping. Reduce exposure, go easy on the curves, use dynamic range compression if necessary.&lt;br /&gt;
&lt;br /&gt;
Knowing how to read a histogram is a basic and very useful skill, as it can point out issues with your image regardless of how dim or miscalibrated your monitor may be.&lt;br /&gt;
&lt;br /&gt;
To help you visualize the data, the histogram (as of RawTherapee 5.5) has three modes which scale the data in the x and y axes differently:&lt;br /&gt;
* [[File:Histogram-mode-linear-small.png]] Linear-linear mode. You find gridlines at halves, quarters, eighths and sixteenths, depending on the size of the histogram.&lt;br /&gt;
* [[File:Histogram-mode-logx-small.png]] Linear-log mode. The x-axis is linear, the y-axis and the horizontal gridlines are scaled logarithmically. The position of the gridlines still corresponds to the halves, quarters, etc.&lt;br /&gt;
* [[File:Histogram-mode-logxy-small.png]] Log-log mode. Both the x- and y-axes are scaled logarithmically. The gridlines are not scaled logarithmically, but correspond to [https://en.wikipedia.org/wiki/Exposure_value stops] - with every gridline the value doubles, so there are lines for the values 1, 3, 7, 15, 31, 63, and 127 (&amp;lt;code&amp;gt;pow(2.0,i) - 1)&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
When there is a disproportionately bright area relative to the rest of the image, it will show up as a spike in the histogram. If you want to show this on a histogram with a linear y axis, the spike may push the lesser values down the y-axis, making them difficult to see. Switch to one of the log modes to scale the data and help you get a better overview of all values.&lt;br /&gt;
&lt;br /&gt;
The histogram can be moved to the left/right panel from &amp;quot;''Preferences &amp;gt; General &amp;gt; Layout &amp;gt; Histogram in left panel''&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== Raw Histograms ====&lt;br /&gt;
&lt;br /&gt;
Raw files contain a dump of data captured by the sensor and quantified by the analog-to-digital converter. The raw file as a container has a bit depth of its own, typically 16-bit, while the data it contains could have a lower bit depth - typically it is 12-bit (0-4096) or 14-bit (0-16384). To display the data from a raw file as an image, one of the several key bits of information required to process the data correctly are the black and white levels. The black level is not necessarily 0, as the sensor and camera electronics produce digital noise, so the noise floor may lie for instance at 512. The white level is also not necessarily 16384; it depends on various things, and may lie for instance at 16300. For more information, see the articles [[Demosaicing]] and [[Adding Support for New Raw Formats]] (especially the header of the &amp;lt;code&amp;gt;camconst.json&amp;lt;/code&amp;gt; file). The black and white level values used by RawTherapee are hierarchically set by looking in several places: in &amp;lt;code&amp;gt;dcraw.c&amp;lt;/code&amp;gt;, inside the raw file's metadata, and in &amp;lt;code&amp;gt;camconst.json&amp;lt;/code&amp;gt; (latter takes precedence). Furthermore, the user can tweak the raw [[Raw Black Points|black]] and [[Raw White Points|white]] levels from within RawTherapee.&lt;br /&gt;
&lt;br /&gt;
The raw histograms show data after black level subtraction. The right end of the histogram is anchored on the white level. The raw histograms are affected by the detected black and white levels as well as by the black and white level adjustments made by the user in RawTherapee.&lt;br /&gt;
&lt;br /&gt;
When examining the raw histogram, you may also want to set the demosaicing method to &amp;quot;none&amp;quot;. This will reveal the sensor pattern in the preview, and also cause the [[Editor#Navigator|Navigator]] panel to show the raw RGB values of the pixel currently being hovered over. These values are affected by the detected black and white levels as well as by the black level adjustments made by the user in RawTherapee, but they are not affected by the white level adjustments (&amp;quot;white-point correction&amp;quot;) made by the user in RawTherapee.&lt;br /&gt;
&lt;br /&gt;
=== Navigator ===&lt;br /&gt;
&lt;br /&gt;
The ''Navigator'' panel shows a thumbnail of the currently opened image, and RGB, HSV and Lab values of the pixel your cursor is currently hovering over.&lt;br /&gt;
&lt;br /&gt;
The values shown in the main histogram and Navigator panel are either those of the working profile or of the gamma-corrected output profile, depending on the state of the gamut button [[File:Gamut-hist.png]] located in the toolbar above the main preview. When the gamut button is enabled the working profile is used, otherwise the gamma-corrected output profile is used.&lt;br /&gt;
&lt;br /&gt;
By clicking on the values in the Navigator you can cycle between these three formats:&lt;br /&gt;
* [0-255]&lt;br /&gt;
* [0-1]&lt;br /&gt;
* [%]&lt;br /&gt;
&lt;br /&gt;
RawTherapee 5.1 onward can show the real raw photosite values. To see them, set the Navigator to use the [0-255] range, apply the [[Neutral]] [[Sidecar_Files_-_Processing_Profiles|processing profile]], then set the [[Demosaicing]] method to &amp;quot;None&amp;quot;. The Navigator will show the real raw photosite values after black level subtraction within the range of the original raw data.&lt;br /&gt;
&lt;br /&gt;
=== History ===&lt;br /&gt;
&lt;br /&gt;
The History panel contains a stack of entries which reflect each of your image editing actions. By clicking on the entries you can step back and forth through the different stages of your work.&lt;br /&gt;
&lt;br /&gt;
An entry is added each time you adjust a ''different'' widget - multiple edits to the same widget are stored as one entry. For example, adjusting the exposure compensation slider from &amp;quot;0&amp;quot; to &amp;quot;0.3&amp;quot; and then to &amp;quot;0.6&amp;quot; will result in one entry being stored with a final value of &amp;quot;0.6&amp;quot;. Likewise, when adjusting a curve, all individual control point adjustments are grouped into one history entry. Should you wish to store the adjustments as two (or more) history entries, you will have to split them by adjusting some other widget. For example, assuming a curve is in &amp;quot;Film-like&amp;quot; mode and you want to keep to that way: adjust several control points on the curve, then toggle the curve mode from &amp;quot;Film-like&amp;quot; to &amp;quot;Standard&amp;quot; and then back to &amp;quot;Film-like&amp;quot; to create a new history entry, and then continue adjusting the curve.&lt;br /&gt;
&lt;br /&gt;
The history stack is not saved - it is lost as soon as you close the Editor tab. None of your adjustments are lost though, as the final state of all tools is saved in the [[Sidecar Files - Processing Profiles|sidecar file]], ready to be used the next time you open that image.&lt;br /&gt;
&lt;br /&gt;
=== Snapshots ===&lt;br /&gt;
&lt;br /&gt;
Under the ''History'' panel is a panel called ''Snapshots''. Its use is in that you can save a snapshot of the photo with all the adjustments up to that point in time, and then proceed to further modify your photo to give it a different appearance, saving new snapshots at every moment you feel you might have reached a version of your photo worth saving. Once you have two or more snapshots, you can just click on them to flip through the different versions and stick with whichever one you like best. In the future, the snapshots will be saved to the PP3 sidecar file. For now, the history and snapshots are lost when you load a new photo in the ''Image Editor'' or close RawTherapee.&lt;br /&gt;
&lt;br /&gt;
== The Right Panel ==&lt;br /&gt;
&lt;br /&gt;
To the right is a panel which optionally shows the main histogram and ''Processing Profiles'' selector (&amp;quot;''Preferences &amp;gt; General &amp;gt; Layout &amp;gt; Histogram in left panel''&amp;quot;), and always shows the [[Toolbox]].&lt;br /&gt;
You can hide this panel using the [[Image:panel-to-right.png|Hide right panel icon]] hide icon, or its [[Keyboard Shortcuts|keyboard shortcut]].&lt;br /&gt;
&lt;br /&gt;
=== Processing Profile Selector ===&lt;br /&gt;
&lt;br /&gt;
In the top right corner you find options to apply and store specific processing profiles:&lt;br /&gt;
&lt;br /&gt;
[[File:Processing-profiles-selector.png|center|frame]]&lt;br /&gt;
&lt;br /&gt;
Read the page on [[Sidecar_Files_-_Processing_Profiles | processing profiles]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Toolbox ===&lt;br /&gt;
&lt;br /&gt;
The ''Toolbox'', in the right panel, contains all the tools you use to tweak your photos. Each tool has its own RawPedia article.&lt;br /&gt;
&lt;br /&gt;
== Editor Tab Modes ==&lt;br /&gt;
&lt;br /&gt;
RawTherapee allows you to work on photos in two modes:&lt;br /&gt;
* ''Single Editor Tab Mode'' (SETM), where you work only on one photo at a time, and each photo is opened in the same ''Editor'' tab. There is a horizontal panel called the ''[[The_Image_Editor_Tab#The_Filmstrip | Filmstrip]]'' at the top of the ''[[The_Image_Editor_Tab#The_Filmstrip | Editor]]'' tab showing the rest of the photos in that folder for easy access. There are ''Previous Image'' and ''Next Image'' [[File:Nav-prev.png]] [[File:Nav-next.png]] buttons in the bottom toolbar (and [[Keyboard Shortcuts | keyboard shortcuts]] for them) to switch to the previous/next image.&lt;br /&gt;
* ''Multiple Editor Tabs Mode'' (METM), where each photo is opened in its own ''[[The_Image_Editor_Tab#The_Filmstrip | Editor]]'' tab. The ''[[The_Image_Editor_Tab#The_Filmstrip | Filmstrip]]'' is hidden in this mode and there are no previous/next buttons. Having multiple photos opened at the same time requires more RAM.&lt;br /&gt;
&lt;br /&gt;
Try both modes and see which one suits you best. To do that, click on the ''Preferences'' icon [[image:preferences.png|Preferences icon]] in the bottom-left or top-right corner of the RT window, choose &amp;quot;''General &amp;gt; Layout''&amp;quot; and set ''Editor Layout'' to your preferred choice.&lt;br /&gt;
&lt;br /&gt;
Use this ''Preferences'' window to select a different language for the user interface, to choose a different color theme, change the font size, etc.&lt;br /&gt;
&lt;br /&gt;
It is also possible to start RawTherapee in no-File-Browser-mode (without the ''File Browser'' tab) by specifying RawTherapee to open an image from your operating system's file browser (in other words, right-click on a photo and select &amp;quot;''Open With &amp;gt; RawTherapee''&amp;quot;), or by using the image filename as an argument when starting RawTherapee from the command line (&amp;lt;code&amp;gt;rawtherapee /path/to/some/photo.raw&amp;lt;/code&amp;gt;). This mode was introduced for people with little RAM as not having a ''File Browser'' tab means RawTherapee uses a little less memory, however in practice the amount of memory saved is little and the usability cost outweighs the little benefit, so it is likely to be removed in the future (see [https://code.google.com/p/rawtherapee/issues/detail?id=2254 issue 2254]).&lt;br /&gt;
&lt;br /&gt;
== The Filmstrip ==&lt;br /&gt;
&lt;br /&gt;
[[File:Rt filmstrip 21 toolbar-visible.jpg|none|frame|class=heroed|RawTherapee-4.2 showing the Filmstrip with the toolbar visible, which takes up more screen space but lets you easily label, rate and filter the visible thumbnails.]]&lt;br /&gt;
[[File:Rt filmstrip 21 toolbar-hidden.jpg|none|frame|class=heroed|RawTherapee-4.2 showing the Filmstrip with the toolbar hidden, which makes it less high and provides more screen space for the main preview (partially visible at the bottom).]]&lt;br /&gt;
&lt;br /&gt;
If you use ''Single Editor Tab Mode'' (&amp;quot;''Preferences &amp;gt; General &amp;gt; Layout''&amp;quot;) you can display a horizontal panel above the preview, this is called the ''Filmstrip''. It contains thumbnails of all images in the currently opened album, and is synchronized with the currently opened image so that you can use [[Keyboard Shortcuts|keyboard shortcuts]] or the previous [[Image:nav-prev.png|Open previous image icon]] and next [[Image:nav-next.png|Open next image icon]] image buttons to open the previous/next image without needing to go back to the ''[[The File Browser Tab|File Browser]]'' tab.&lt;br /&gt;
&lt;br /&gt;
As of RawTherapee version 4.2.10, you can hide the Filmstrip's toolbar to save screen space. There are two ways of doing this: one way just toggles the toolbar on/off without resizing the filmstrip to the new height, and the other way does the same but also automatically resizes the filmstrip's height. Both are invoked via [[Keyboard Shortcuts|keyboard shortcuts]] only. As resizing the filmstrip's height will trigger a refresh of the image preview and this might take a while if using CPU-hungry tools like noise reduction while zoomed in at 100%, the mode that doesn't resize has been implemented for users with slow machines. Users with fast machines will find the auto-resizing mode more helpful.&lt;br /&gt;
&lt;br /&gt;
== Monitor Profile and Soft-Proofing ==&lt;br /&gt;
&lt;br /&gt;
The widgets under the main preview in RawTherapee 5 allow you to apply a monitor color profile to the preview image. This enables users who have calibrated and profiled their monitors to get an instant and accurate preview of their work, whether you're staying in sRGB or working in a wide gamut. Note: OS X users are limited to sRGB and will not get an accurate preview otherwise ([https://discuss.pixls.us/t/wide-gamut-preview-in-os-x/2481 see discussion]), while users of Linux and Windows will get a correct wide-gamut preview.&lt;br /&gt;
&lt;br /&gt;
Go to Preferences &amp;gt; [[Preferences#Color_Management_Tab|Color Management]] and point the &amp;quot;Directory containing color profiles&amp;quot; to the folder into which you saved your monitor and printer ICC profile. Restart RawTherapee for the changes to take effect. Now you will be able to select your monitor's color profile in the combo-box under the preview. Use the &amp;quot;Relative Colorimetric&amp;quot; rendering intent unless you have a good reason otherwise.&lt;br /&gt;
&lt;br /&gt;
One can also enable soft-proofing of the preview. This will show you what your image will look like once it gets transformed by the printer profile set in Preferences &amp;gt; [[Preferences#Color_Management_Tab|Color Management]]. If you want to adjust an image for printing and you have an ICC profile for your printer-paper combination you could set that as your output profile, enable &amp;quot;Black point compensation&amp;quot; in Preferences so that the blackest black in your image will match the blackest black your printer-paper combination is capable of reproducing, then enable soft-proofing. You will see what your image will look like if you print it. This allows you to make adjustments and get an instant preview of the result, saving you time and ink on test prints.&lt;br /&gt;
&lt;br /&gt;
The icon with exclamation mark next to the soft-proofing button will gray out areas that cannot be reproduced by your printer, i.e. areas where you will loose details.&lt;br /&gt;
&lt;br /&gt;
You should have a calibrated and profiled monitor in order for the soft-proofing preview to be accurate.&lt;br /&gt;
&lt;br /&gt;
The items you see in the monitor profile combo-box (under the main preview) and in the printer profile combobox (in Preferences &amp;gt; [[Preferences#Color_Management_Tab|Color Management]]) are ICC files located in a folder which you can point RawTherapee to by going to &amp;quot;[[Preferences]] &amp;gt; [[Preferences#Color_Management_Tab|Color Management]] &amp;gt; Directory containing color profiles&amp;quot;.&lt;/div&gt;</summary>
		<author><name>Thanatomanic</name></author>
	</entry>
</feed>