Never rewrite code before understanding architecture.
Never replace GTK with Qt blindly.
First identify reusable components.
Separate:
a. Darktable backend
b. Darktable desktop UI
Create diagrams where useful.
Produce reports in markdown.
If assumptions are made, clearly mark them.
For every dependency, classify:
Required
Optional
Desktop-only
Mobile-friendly
Sailfish availability unknown
Suggest alternatives where Darktable components are unsuitable.
At the end provide:
feasibility report
estimated project size
recommended architecture
recommended technology stack
Final deliverables:
Bootstrap repository layout
Architecture analysis
Development environment setup
Testing strategy
CI strategy
Backend extraction feasibility study
Roadmap for building a Sailfish-native RAW editor
Here is some recent information from a web search. Use it to answer the user's question if it's relevant:
Source: darktable-org/darktable | DeepWiki (https://deepwiki.com/darktable-org/darktable)
The darktable_t structure is defined at src/common/darktable.h352-418 and instantiated as a global variable at src/common/darktable.c126 This singleton pattern provides centralized access to all major subsystems.
It serves as an entry point for developers who want to understand how darktable's components fit together. For detailed information about specific subsystems: Core initialization and module loading: see Core Architecture
darktable employs a plugin architecture with three primary module types:
The application targets professional and enthusiast photographers working with RAW image files from digital cameras. As of version 5.6.0, darktable supports hundreds of camera models with specific noise profiles, white balance presets, and color matrices.
The darktable_t structure is defined at src/common/darktable.h352-418 and instantiated as a global variable at src/common/darktable.c126 This singleton pattern provides centralized access to all major subsystems.
Source: Darktable vs. Imagen: Open-Source vs. AI Editing (https://imagen-ai.com/valuable-tips/darktable-vs-imagen/)
Every edit in Darktable happens ... The architecture is built around modules, letting you reach for something as simple as crop, exposure, or spot removal, or stack up more advanced tools for the look you want...
Every edit in Darktable happens non-destructively, all the way through the processing pipeline, so your original RAW file is never modified. The architecture is built around modules, letting you reach for something as simple as crop, exposure, or spot removal, or stack up more advanced tools for the look you want.
If you are weighing how to spend your post-production hours, you have probably come across both Darktable and Imagen, even though the two tools sit in very different parts of a photographer’s kit. Darktable is free, open-source software that photographers and developers build together for processing RAW files on your own computer.
Inside one non-linear project you cull, edit, review, and export in whatever order suits the job, then come back to it later if you need to. Darktable, meanwhile, keeps its longstanding structure: a lighttable for organizing and rating your images, and a darkroom view where you build up an edit module by module.
This guide walks through what each tool actually offers today, checked directly against Darktable’s own site and documentation rather than old marketing claims, so you can see where the two genuinely differ and where they simply solve different problems.
Source: The future of darktable · aurelienpierreeng/ansel Wiki (https://github.com/aurelienpierreeng/ansel/wiki/The-future-of-darktable)
If we summarize, darktable has a major performance bottleneck through OpenCL and Gtk. Yes, OpenCL allows to unleash the power of the GPU, but it has an incompressible overhead of memory buffers copies.
A Darktable fork minus the bloat plus some design vision. - aurelienpierreeng/ansel
If we summarize, darktable has a major performance bottleneck through OpenCL and Gtk. Yes, OpenCL allows to unleash the power of the GPU, but it has an incompressible overhead of memory buffers copies. This is grounded in its architecture and will not be solved by another hack-in-place.
Something has to give, all these constraints together are simply too much. darktable has been pushed already farther than what its initial design allowed, in ways that have introduced architectural brittleness and a patchwork of ugly fixes.
In the early 2010's, raw photographs had 12-16 Mpx and a crappy dynamic range that happened to be on-par with the one of the typical desktop display. darktable was designed for this : to work on CPU, with Gtk, on 10-12 MB files having a reduced dynamic range.
Source: Darktable: Features, Alternatives & Analysis (2026) (https://appmus.com/software/darktable)
For users processing large volumes of images, Darktable offers strong batch editing capabilities, streamlining repetitive tasks. Non-destructive Editing: All edits are stored in a separate file, leaving the original raw file untouched. Modular Architecture: Editing tools are organized as modules, which can be applied in any order within the processing pipeline.
For users processing large volumes of images, Darktable offers strong batch editing capabilities, streamlining repetitive tasks. Non-destructive Editing: All edits are stored in a separate file, leaving the original raw file untouched. Modular Architecture: Editing tools are organized as modules, which can be applied in any order within the processing pipeline.
Comprehensive guide to Darktable. Darktable is a powerful, open-source and free photography workflow application and raw developer, offering professional-grade tools for managing and editing digital negatives. It's a non-destructive editor designed by photographers for photographers.
Darktable stands out as a robust and free open-source alternative for photographers looking for a comprehensive workflow solution. It is specifically designed to handle raw files with a focus on providing complete control over the editing process without altering the original image data.
Darktable is a comprehensive and powerful open-source photography workflow application and raw developer. It's designed by photographers for photographers, and this is evident in its focus on raw image processing and non-destructive editing.
Source: about | darktable (https://www.darktable.org/about/)
darktable is an open source photography workflow application and raw developer. A virtual lighttable and darkroom for photographers. It manages your digital negatives in a database, lets you view them through a zoomable lighttable and enables you to develop raw images and enhance them.
Raw is the unprocessed capture straight from the camera’s sensor to the memory card, nothing has been altered. There are multiple alternatives in the open source world for raw development (ufraw, dcraw, rawtherapee) but darktable tries to fill the gap between the excellent existing free raw converters and image management tools (such as e.g. ufraw, rawstudio, f-spot, digikam, shotwell). It focuses on the workflow to make it easier for the photographer to quickly handle the thousands of images a day of shooting can produce. It’s also one of the very few FOSS projects able to do tethered shooting.
The internal architecture of darktable allows users to easily add modules for all sorts of image processing, from the very simple (crop, exposure, spot removal) to the most advanced (simulation of human night vision).
The user interface is built around efficient caching of image metadata and mipmaps, all stored in a database. The main focus lies on user interaction, both in terms of a smooth interface design as well as processing speed. High quality output is also one of our goals.
All editing is fully non-destructive and only operates on cached image buffers for display. The full image is only converted during export. Raw image loading is done using rawspeed, high-dynamic range and standard image formats such as jpeg are also supported. The core operates completely on floating point values, so darktable can not only be used for photography but also for scientifically acquired images or output of renderers (high dynamic range).
For a more complete list of darktable’s current features have a look at the features page. Or– even better– just install it and try it out!
darktable is released under the terms of the GNU General Public License Version 3 or later.
Source: AI Subsystem | darktable-org/darktable | DeepWiki (https://deepwiki.com/darktable-org/darktable/6-ai-subsystem)
The core of the AI subsystem is a static library (darktable_ai) that wraps the ONNX Runtime (ORT).
darktable-org/darktable · Index your code with · DevinEdit WikiShare · Loading... Last indexed: 17 May 2026 (9a61cd) Overview · Core Architecture · Build System · Image Processing Pipeline · Development Context and Pixelpipe · IOP Module System · Module Order and IOP Ordering ·
The following diagram maps high-level system concepts to their specific implementations in the darktable source tree.
The core of the AI subsystem is a static library (darktable_ai) that wraps the ONNX Runtime (ORT).
Models are not bundled with the darktable binary.
Source: Build System | darktable-org/darktable | DeepWiki (https://deepwiki.com/darktable-org/darktable/1.2-build-system)
Darktable's plugin architecture compiles modules as shared libraries (MODULE targets in CMake).
Darktable's plugin architecture compiles modules as shared libraries (MODULE targets in CMake).
Darktable uses CMake as its build system generator. CMake produces native build files (Makefiles or Ninja files) from the project's CMakeLists.txt files.
The build system manages compilation of the core lib_darktable shared library, plugin modules, and executable binaries.
The darktable build process involves several stages, from platform detection to module linking.
Source: Scripting and Extensibility | darktable-org/darktable | DeepWiki (https://deepwiki.com/darktable-org/darktable/8-scripting-and-extensibility)
To facilitate migration from other software, darktable includes specialized logic for handling external metadata formats. The most prominent is the Lightroom import compatibility layer, which maps Lightroom's XMP metadata fields to darktable's ...
This section provides an overview of how darktable can be extended and automated through its Lua scripting engine and command-line interfaces. darktable provides a deep integration for Lua, allowing users to manipulate the database, UI, and export pipelines.
darktable-org/darktable · Index your code with · DevinEdit WikiShare · Loading... Last indexed: 17 May 2026 (9a61cd) Overview · Core Architecture · Build System · Image Processing Pipeline · Development Context and Pixelpipe · IOP Module System · Module Order and IOP Ordering ·
To facilitate migration from other software, darktable includes specialized logic for handling external metadata formats. The most prominent is the Lightroom import compatibility layer, which maps Lightroom's XMP metadata fields to darktable's internal structures.
For a detailed breakdown of the darktable.* namespace, the event system, and widget creation, see Lua Scripting API.
At all times main memory was one of the most limited resources in computing. Although from 20 years to now the memory setup of a typical desktop PC has increased by a factor of several thousands (from less than a megabyte to a few gigabytes), we still need to consider how to efficiently handle that resource.
The reason of course lies in the increasing demands of modern applications. Today it might be darktable which is the single most challenging software to hit the boundaries of your system.
A simple calculation makes this clear. If you have a 20MPx image, DT for precision reasons will store this internally as a 4 × 32-bit floating point cell for each pixel. Each full image of this size will need about 300MB of memory. As we want to process the image, we will at least need two buffers for each module – one for input and one for output. If we have a more complex module, its algorithm might additionally require several intermediate buffers of the same size. Without further optimization, anything between 600MB and 3GB would be needed only to store and process image data. On top we have darktable’s code segment, the code and data of all dynamically linked system libraries, and not to forget further buffers where darktable stores intermediate images for quick access during interactive work (mip map cache). All in all darktable would like to see a minimum of about 4GB to run happily.
Available address space
Besides the total amount of system memory there is another limiting factor: the available address space of your hardware architecture. How much memory can be addressed by a process depends on the number of address bits your CPU offers. For a CPU with 32-bit address registers, this is 2^32 bytes, which makes a total of 4GB. This is the absolute upper limit of memory that can be used by a process and it constitutes a tight situation for darktable as we have seen above.
darktable’s escape route is called tiling. Instead of processing an image in one big chunk, we split the image into smaller parts for every processing step (module). This will still require one full input and output buffer, but intermediate buffers can be made small enough to have everything fit into the hardware limits.
Setting up darktable on 32-bit systems
As we’ve seen 32-bit systems are difficult environments for darktable. Still many users are successfully running DT on them, if the basic requirements in terms of total system memory and the topics mentioned in the paragraphs above are addressed properly.
There are several adjustment parameters to get it running. If you make a fresh install, DT will detect your system and set conservative values by default. However, if you upgrade DT from an older version (e.g. coming from 0.9.3 and going to 1.0), chances are you have unfavorable settings in your preferences. The consequences might be DT aborting due to allocation failures or – very typically – DT not being able to prope
Source: Darktable - Wikipedia (https://en.wikipedia.org/wiki/Darktable)
Darktable (stylized as darktable) is a free and open-source photography application and raw developer. Rather than being a raster graphics editor like Adobe Photoshop or GIMP, it comprises a subset of image editing operations specifically aimed at non-destructive raw image post-production.
Modular architecture · Organize images and search by parameters · Translated into 19 languages · Support for controlling cameras through darktable and directly saving to the PC (tethered capture) Find similar photos · Support for geographical coordinates labels with display of photo locations on map ·
Support for drawn masks was added in Darktable version 1.4, allowing application of effects to manually specified areas of an image. There are five mask types available: brush, circle, ellipse, Bézier path, and gradient; all are resizable, allow fade-out radius for smooth blending and can have their opacity controlled.
Darktable has two main modes: "lighttable" and "darkroom". Each represents a step in the image development process. Two more modes are tethering and a map view. Upon launching, lighttable opens by default, where image collections are listed.
A filmstrip with other images is displayed at the bottom, and can be sorted and filtered using lists from the upper panel. The latter also gives access to the preferences configuration. Darktable's configuration allows custom keyboard shortcuts and personalized defaults.
Source: darktable(1) — Arch manual pages (https://man.archlinux.org/man/darktable.1.en)
Most processing is done in 32-bit floating point per channel mode in device independent CIE Lab* color space. darktable is also fully color managed, which gives you full control over the look of the photos. The application relies on a modern plugin architecture thus making it easy for 3rd ...
Most processing is done in 32-bit floating point per channel mode in device independent CIE Lab* color space. darktable is also fully color managed, which gives you full control over the look of the photos. The application relies on a modern plugin architecture thus making it easy for 3rd party developers to extend the existing capabilities of the application.
You may optionally supply the filename of an image or the name of a folder containing image files. If a filename is given darktable starts in darkroom view with that file opened. If a folder is given darktable starts in lighttable view with the content of that folder as the current collection.
If there is already an instance of darktable running (using the same library) the image or folder will be opened there, using D-Bus to communicate between the two processes.
You may temporarily overwrite individual settings on the command line with this option - however, these settings will not be stored in "darktablerc".
Source: Image Metadata and Data Management | darktable-org/darktable | DeepWiki (https://deepwiki.com/darktable-org/darktable/4-image-metadata-and-data-management)
The dt_image_t structure is the central data container for all image metadata in darktable.
darktable-org/darktable · Index your code with · DevinEdit WikiShare · Loading... Last indexed: 17 May 2026 (9a61cd) Overview · Core Architecture · Build System · Image Processing Pipeline · Development Context and Pixelpipe · IOP Module System · Module Order and IOP Ordering ·
It covers how darktable stores, retrieves, and manages metadata for images in the library, including the core data structures, database schema, caching mechanisms, and file I/O operations.
The dt_image_t structure is the central data container for all image metadata in darktable.
Darktable maintains image metadata across multiple storage layers, each serving a specific purpose in the application's workflow:
Myth: “Free cannot be as good as professional software.”Reality: Darktableis professional software.
isprofessional software.
Many beginners believe that darktable is a “hobby alternative” to Lightroom because it costs nothing. That is a misconception. Darktable is Free Open Source Software (FOSS) and is developed by scientists, mathematicians, and photographers who do not have to make compromises for marketing departments.
**The Engine:**Darktable calculates internally with 32-bit floating-point precision. This is more accurate than many commercial programs.
**The Science:**Modules likeColor Balance RGBorDiffuse or Sharpenare based on current color research (2020+), while commercial tools often still build on older standards to remain “simple.”
The Result:If you master darktable, the image quality (sharpness, color fidelity, dynamic range) is oftenvisibly betterthan the competition.
The price is not 0 Euro because it is “cheap”, but because it means Freedom.
3. Independence Instead of Subscription Compulsion (FOSS)
Darktable is not just “free.” It is Free Software. Your images belong to you: No cloud, no catalog compulsion, no subscription that expires. You can still open your RAWs in 10 years without paying monthly rent. No Black Box Principle: With commercial software, you never know exactly what a slider does. Darktable is transparent. You have full control over the mathematics behind your image. Platform Independence: Darktable runs natively on Linux, Windows, and macOS. It runs equally stable on all systems (Windows, Mac, Linux). Transparency & Community: You can view the code if you wanted to. Development is transparent and driven by a dedicated community, not commercial interests. No “Vendor Lock-in”: Your edits are saved in separate .xmp files. You are not tied to a proprietary catalog.
Your metadata (tags, ratings) are safe in open XMP files. Your RAWs remain untouched. But beware: As with any RAW converter, the editing itself is not transferable to other programs. Therefore: Always export your finished images as JPG/TIFF!
In Summary:
Darktable is like an extremely precise, modular toolbox, a laboratory for light. Lightroom is more like a very well-equipped, user-friendly designer studio.
Darktable offers you maximum technical control and uncompromising quality – if you are willing to engage with the ‘Why’. The learning curve is steeper, yes. But the reward is a deeper understanding of your photography and an editing power that gives you visibly better results than the standard.
December 30, 2025
Source: Darktable — Grokipedia (https://grokipedia.com/page/Darktable)
Hot pixels, which appear as persistent bright spots due to sensor defects, are handled by the hot pixels module, which automatically detects and interpolates them based on neighboring values during demosaicing.[76][77][78][79] Perspective and keystone distortions, common in architectural or tilted shots, are addressed by the rotate and perspective module, which warps the image to straighten converging lines and correct shear using control points or automatic line detection, simulating a tilt-shift lens effect while allowing rotation and scaling to fit the frame. These corrections can be selectively applied using the masking system for targeted regions. In darktable 5.2 (released June 2025), enhancements to lens correction include improved profile reading from OM System and Olympus files, expanding automatic detection for recent cameras.[80][25][81]
Hot pixels, which appear as persistent bright spots due to sensor defects, are handled by the hot pixels module, which automatically detects and interpolates them based on neighboring values during demosaicing.[76][77][78][79] Perspective and keystone distortions, common in architectural or tilted shots, are addressed by the rotate and perspective module, which warps the image to straighten converging lines and correct shear using control points or automatic line detection, simulating a tilt-shift lens effect while allowing rotation and scaling to fit the frame. These corrections can be selectively applied using the masking system for targeted regions. In darktable 5.2 (released June 2025), enhancements to lens correction include improved profile reading from OM System and Olympus files, expanding automatic detection for recent cameras.[80][25][81]
For instance, event hooks can automatically run checks or modifications upon importing new photos, integrating seamlessly with Darktable's workflow tools to streamline non-destructive editing pipelines.[98] These features support programmatic control over modules and image operations, enabling advanced automation like conditional tagging based on file properties or EXIF data.[99] In Darktable 5.2, released in June 2025, the Lua API was enhanced with action support, allowing scripts to define and execute custom keyboard shortcuts or button actions directly within the interface, alongside other
Darktable is a free and open-source photography workflow application and raw image developer designed for photographers, functioning as a virtual lighttable for organizing digital negatives and a darkroom for non-destructive editing and enhancement.[1] It manages raw files in a database, supports zoomable viewing, and enables export in various formats while preserving original images through a modular pixel pipeline.[2] Founded in 2009 by German developer Johannes Hanika, a photographer with a background in computer graphics, Darktable emerged as a collaborative project between programmers and
Darktable is a free and open-source photography workflow application designed
Source: Chapter 10. Special topics | usermanual | darktable (https://darktable.gitlab.io/doc/en/special_topics_chapter.html)
Besides the total amount of system memory there is another limiting factor: the available address space of your hardware architecture. How much memory can be addressed by a process depends on the number of address bits your CPU offers. For a CPU with 32-bit address registers, this is 2^32 bytes, which makes a total of 4GB. This is the absolute upper limit of memory that can be used by a process and it constitutes a tight situation for darktable as we have seen above.
Besides the total amount of system memory there is another limiting factor: the available address space of your hardware architecture. How much memory can be addressed by a process depends on the number of address bits your CPU offers. For a CPU with 32-bit address registers, this is 2^32 bytes, which makes a total of 4GB. This is the absolute upper limit of memory that can be used by a process and it constitutes a tight situation for darktable as we have seen above.
For this reason, as of darktable 2.0, 32-bit support is soft-deprecated. There's not much to be said here. Of course also 64-bit systems require a sufficient amount of main memory, so the 4GB plus swap recommendation holds true. On the other hand, 64-bit architectures do not suffer from the specific 32-bit limitations like small address space and fragmentation madness.
Without further optimization, anything between 600MB and 3GB would be needed only to store and process image data. On top we have darktable's code segment, the code and data of all dynamically linked system libraries, and not to forget further buffers where darktable stores intermediate images for quick access during interactive work (mip map cache).
From what I said before, it is evident that your computer needs a sane memory setup to properly run darktable. We suggest that you have a least 4GB of physical RAM plus 4 to 8GB of additional swap space installed.
Source: Introducing the darktable app store | darktable (https://www.darktable.org/2015/03/introducing-the-darktable-app-store/)
Today we are happy to announce a big new feature that we will not only ship with the big 2.0 release later this year but also with our next point release, 1.6.4, which is due in about a week: even more darkroom modules!
One of the big strengths of darktable has always been its varied selection of modules to tweak your image. However, that has also been one of the main points of criticism: too much, too many and too complicated to grasp. To make it easier for the user to deal with the flood of tools darktable has had the “more modules” list since many years. It changed its appearance a few times, we added module categories, allowed to select favorite modules, and all of that has proven to be useful. Thus there have always been people that approached us with great new ideas for new modules, especially since we moved to GitHub a while ago with its powerful Pull Request system, yet we couldn’t accept many of them. Some were not that great codewise, some didn’t really fit our product vision– and then there were some that looked nice and certainly benefited some users, but we felt it wasn’t generic enough to justify polluting our module list even more. Of course this was a bad situation, after all these people invested quite some time into providing us with a new feature that we turned down. No one likes to waste their time.
Who will also like it are module developers. Writing new image modules has always been quite easy: clone the darktable sources, create one new C file and add it to the CMake system. But that was only the first part, after all you wanted to allow people to use your work in the end. So you either had to convince us to include your module into the official darktable release (with the problems outlined above), or provide a patched version of darktable for people to compile themselves. In theory you could also have provided a binary package or just the module compiled into a shared library for people to just copy to their install directory, but we have never seen anyone taking that route. With our new module system this will become easier. Instead of creating a patched version of darktable you can now make use of our Module Developers Package which contains all the required header files and a CMake stub to quickly compile your module into a shared library that can be used with a stock installation of darktable. And since we will release these files under a LGPL license you could even write non-free modules. Once you are happy you can submit your code for us to review (this step is still manual to prevent malicious code being shipped) and once we approved it everyone can install the module.
All of the things described until now are implemented already and will be part of the next releases. Once it has proven to be working reliably we also plan to allow developers to make some money with their work as an incentive to attract more a
Source: darktable (https://www.darktable.org)
darktable is an open source photography workflow application and raw developer. A virtual lighttable and darkroom for photographers. It manages your digital negatives in a database, lets you view them through a zoomable lighttable and enables you to develop raw images and enhance them.
Have a look at our current features and how to install it on your system. And if you're new to darktable, the FAQ will answer many of your questions.
darktable is created for photographers, by photographers.
Having developers that are also avid photographers as part of the target audience is good for understanding the real world problems, challenges, and workflows.
darktable edits your images non-destructively all the way through its pipeline. Your original image is never modified! Professional color management features ensure fidelity all the way to print and GPU accelerated processing means you can speed up your workflow using your video card.
You do not need to write code to be involved in the darktable community! You can help other users by providing your input on the mailing list or the forum. If you'd like to show others what darktable is capable of, contribute to the Flickr page. If you can write code, check out the source code!
Sailfish-native RAW editor: architecture and repository bootstrap
Executive decision
The application is feasible. A clean extraction of Darktable’s complete processing engine is not a small prerequisite and should not be assumed feasible until a source-level spike proves it.
Recommended approach:
Build a native Qt Quick application with a toolkit-independent backend API.
Use an isolated darktable-cli process for the first desktop RAW-to-JPEG experiment.
Audit a pinned Darktable revision before attempting an in-process adapter.
Reuse independent libraries—particularly metadata, lens correction, and color-management libraries—where extracting Darktable wrappers offers little benefit.
Make Sailfish’s actual Qt, compiler, packaging, memory, and graphics capabilities early acceptance gates.
Keep OpenCL outside the initial critical path.
Important platform constraint: Qt 6 is a reasonable desktop development preference, but it must not become a requirement for the Sailfish frontend until the Sailfish OS 5.1 SDK and target device have been checked. Established Sailfish application development uses Qt 5 and Silica; a private Qt 6 deployment is not equivalent to a normal Sailfish-native application.
Delivery status
This response supplies a repository blueprint, core file contents, architecture reports, setup scripts, and example CI.
I cannot clone repositories, inspect the current SDK, create files in your filesystem, or run builds in this conversation. Consequently:
The Darktable analysis below is an architectural discovery baseline, not a completed revision-specific source audit.
File paths and internal details must be verified against a pinned checkout.
No build, benchmark, GTK-free link, or device compatibility result is claimed.
The supplied search excerpts are useful orientation, not sufficient evidence for a complete extraction decision.
1. Bootstrap repository layout
Working name: SailRaw. Check naming and trademark availability before publication.
If a Darktable adapter needs its own database, treat that database as disposable adapter state.
Use versioned migrations, transactions, prepared statements, foreign keys, and a serialized write policy. Evaluate WAL in the actual sandbox/filesystem rather than enabling it without testing.
Write a temporary file in the destination filesystem, close it successfully, and rename it into place. Cross-filesystem rename is not atomic. Never overwrite the RAW original.
2.12 Extraction candidates
Capability
Isolatable from GTK?
Assessment
Preferred first implementation
RAW decoding
Yes at library level
RawSpeed is a strong candidate; not a renderer
RawSpeed feasibility spike; LibRaw alternative
RAW catalog import
Yes, but not necessarily by copying Darktable import code
Catalog and scheduling coupling
New application import service
Embedded thumbnail extraction
Yes
May avoid full RAW decoding
Metadata/decoder adapter
Rendered thumbnail generation
Yes in principle; difficult through existing application code
Needs pipeline, profile, history and caches
Engine preview endpoint
Lens correction
Yes at dependency level
Darktable integration adds ordering and resampling logic
Lensfun adapter
Color transforms
Yes at dependency level
Darktable workflow semantics remain substantial
Little CMS adapter plus explicit color policy
Complete Darktable rendering
Plausible, unproven as clean extraction
Highest coupling and maintenance risk
CLI experiment, then headless adapter spike
JPEG encoding
Yes
Independent codecs are straightforward
libjpeg-turbo
Darktable export orchestration
Possible with refactoring
Depends on history, pipeline, plugins and metadata
Replace moving-branch source links with commit permalinks in the completed audit.
3. Dependency classification
docs/architecture/dependencies.md
“Required” means required for the named architecture/profile, not necessarily for every possible build of Darktable. “Unknown” means package and version availability must be checked in the Sailfish target.
Dependency
Classification
Mobile suitability
Sailfish status / decision
C/C++ compiler and standard library
Required
Suitable
Verify C++20 support and runtime ABI
CMake
Required build tool
Host-side
SDK version unknown
Ninja
Optional build tool
Host-side
Use when available
Qt Core/Gui/Qml/Quick
Required frontend
Suitable
Verify target Qt versions and modules
Qt 6
Preferred desktop option
Suitable in principle
Native target availability unknown; not assumed
Qt 5
Target compatibility candidate
Suitable
Check exact SDK baseline
Sailfish Silica and sailfishapp
Optional for portable prototype; required for chosen Silica shell
Platform-specific
Verify SDK and distribution requirements
SQLite
Required catalog
Strong fit
Package/version availability unknown
Exiv2
Required for recommended full metadata layer
Suitable with bounded parsing
Availability/version unknown
Little CMS 2
Required for recommended ICC support
Suitable
Availability/version unknown
RawSpeed
Required for RawSpeed backend
Suitable subject to build and memory tests
Availability and aarch64 build unknown
LibRaw
Alternative, not simultaneous requirement
Strong PoC candidate
Availability/version unknown
Lensfun and lens data
Optional MVP; required lens feature
Suitable
Package and profile data availability unknown
libjpeg-turbo
Required for recommended JPEG backend
Strong fit
Availability/version unknown
libpng
Optional format/corpus support
Suitable
Availability/version unknown
libtiff
Conditional decoder/format dependency
Suitable with limits
Availability/version unknown
The final dependency report must expand conditional entries into exact packages, versions, licenses, and source origins for the selected configuration.
Public backend headers contain no GTK or Qt types.
QML communicates with QObject presentation models, not codecs or SQL.
Backend work never runs on the GUI thread.
Engine handles do not escape into QML.
UI state, persisted edit state, and engine parameter state are separate.
Engines are selected explicitly; changing engine does not silently reinterpret recipes.
Darktable internal parameter blobs must not become the only persisted edit representation.
The same recipe revision and engine version identify preview/export provenance.
Threading and scheduling
Use:
one serialized engine worker initially;
one database writer;
bounded metadata tasks;
priority for the current image’s preview;
lower priority for background thumbnails;
explicit export queue limits.
Every preview request carries a generation number. The UI discards stale results.
If the backend cannot cancel safely during processing, cancellation means “stop at the next safe boundary and discard the result,” not forcibly terminate a thread.
Preview/display contract
Do not expose full-resolution float buffers through QML properties.
The bridge should provide:
bounded preview dimensions;
a QImage or image-provider result;
explicit display encoding;
generation ID;
error/progress state.
Start with sRGB output under documented platform limitations. Add display-profile integration only after testing the compositor and device behavior. Qt Quick textures are not proof of an end-to-end color-managed display path.
Memory policy
A 24-megapixel float RGBA buffer is approximately:
text
24,000,000 × 4 × 4 bytes = 384 MB
Two such buffers already consume roughly 768 MB, before decoder state, masks, caches, textures, and temporary buffers.
Therefore:
limit concurrent renders;
evict previews deliberately;
bound thumbnail caches by bytes;
decode/render reduced-resolution previews where supported;
investigate tiling without assuming every operation tiles correctly;
keep export memory budgets separate from interactive previews.
Set actual budgets from measured device headroom, not advertised RAM.
Sailfish integration
Keep two frontend shells:
Portable Qt Quick shell for development.
Sailfish shell using supported Silica/application lifecycle facilities.
Share presentation models and backend services, not necessarily every QML component.
Use platform-provided application paths, file-access mechanisms, packaging, lifecycle, and sharing facilities. Permission behavior must be tested in the actual Sailfish sandbox.
5. Minimal modern CMake scaffold
This scaffold builds:
a toolkit-independent C++20 backend contract;
a placeholder Qt Quick window;
a GoogleTest unit test.
It deliberately does not pretend to implement RAW development.
Root CMakeLists.txt
cmake
cmake_minimum_required(VERSION 3.16)
project(SailRaw VERSION 0.1.0 LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
option(SAILRAW_BUILD_FRONTEND "Build portable Qt Quick shell" ON)
set(SAILRAW_QT_MAJOR "6" CACHE STRING "Qt major version: 5 or 6")
set_property(CACHE SAILRAW_QT_MAJOR PROPERTY STRINGS 5 6)
include(CTest)
add_subdirectory(backend)
if(SAILRAW_BUILD_FRONTEND)
if(NOT SAILRAW_QT_MAJOR MATCHES "^[56]$")
message(FATAL_ERROR "SAILRAW_QT_MAJOR must be 5 or 6")
endif()
find_package(Qt${SAILRAW_QT_MAJOR}
REQUIRED COMPONENTS Core Gui Qml Quick)
add_subdirectory(frontend)
endif()
if(BUILD_TESTING)
add_subdirectory(tests)
endif()
Do not silently fall back from Qt 6 to Qt 5: explicit selection makes local and CI builds reproducible.
White-balance temperature and tint are application-level intent. Their conversion to engine parameters requires camera-aware implementation; they are not interchangeable with Darktable’s internal parameters.
Yes—our RAW editor can use a better display ICC profile for its own rendering. Changing the profile system-wide on Sailfish OS is a separate issue and should not be assumed supported.
For the Sailfish OS 5.1 / Jolla Phone 2026 target, we need to verify the display stack before claiming either system-wide ICC support or a specific configuration method.
1. System-wide versus application-level color management
Approach
Feasibility
Scope
Install an ICC file on the filesystem
Straightforward, subject to permissions
Does nothing unless software uses it
Select a display profile inside our editor
Feasible using Little CMS
Color-managed previews in our application
Change the display profile for all applications
Unverified on the target
Requires compositor/display-stack support
Apply hardware calibration curves
Unverified on the target
Requires supported display controls or LUT loading
Linux desktop instructions involving colord, xicc, or xrandr should not be applied blindly. Sailfish’s compositor and hardware adaptation determine what actually works.
2. Recommended approach for our editor
Implement an application-level display-profile setting:
text
RAW development
↓
Defined working color space
↓
Display transform using Little CMS
↓
Qt Quick preview texture
↓
Sailfish compositor
↓
Display
The profile describes the display’s behavior; Little CMS uses it to calculate the appropriate preview values.
Suggested settings:
text
Display color management
• Default: sRGB assumption
• Custom display ICC profile…
• Reset to default
Label the default explicitly as an assumption, not a calibrated device profile.
Critical limitation
We must verify what happens after the application produces the preview:
Does Qt Quick alter its encoding?
Does the compositor apply another transform?
Is the display operating in a fixed native mode or an sRGB-like mode?
Do brightness, night mode, or vendor display processing change its behavior?
Otherwise, a custom transform could be applied twice—or its output could be altered downstream.
Little CMS support alone does not guarantee an accurate end-to-end display path.
3. Where does a “better” profile come from?
The best profile is measured for the actual device and its chosen operating state.
A practical workflow is:
Disable night mode and adaptive color features, if present.
Fix display brightness.
Display known color patches through the intended application rendering path.
Measure them with a suitable colorimeter or spectrophotometer.
Generate a display profile.
Load it into the editor.
Validate with independent patches and report color error.
For a phone display, instrument suitability matters, particularly with OLED spectral characteristics.
An ICC profile downloaded for another phone—even the same model—may not improve accuracy because of panel variation, display settings, and aging.
Profiling is not the same as calibration
Profiling describes the display so the application can compensate.
Calibration changes the display toward a target state.
Some ICC profiles include calibration curves, often in a vcgt tag. Loading a profile into Little CMS does not automatically load those curves into the display hardware. A profile that assumes an unavailable calibration state can produce incorrect results.
4. Keep preview and export profiles separate
This is especially important for the RAW editor:
Profile
Purpose
Camera/input profile
Interpret camera colors
Working profile/space
Perform image editing
Display profile
Show an accurate preview on this phone
Export profile
Define the colors in the saved JPEG or other output
Do not embed the phone’s display profile into normal exported JPEGs. Export to sRGB by default; use the phone profile only for the on-screen preview.
5. What we should verify on Sailfish
Add a discovery task before implementing custom display profiles:
Identify the compositor and relevant versions.
Inspect available color-management interfaces and documented configuration.
Determine whether any factory display transform is already active.
Check whether applications can obtain an assigned display profile.
Test Qt Quick’s texture-to-display path with known patches.
Measure results with display enhancements disabled and brightness fixed.
Recommendation
Plan application-level ICC support now, but treat system-wide profile replacement as an investigation—not an established Sailfish feature.
This lets us improve the editor’s color accuracy without depending on a system-wide facility that may not exist. The improvement must still be validated on the actual phone.
Potentially—but native AirDrop compatibility would be a significant Sailfish OS networking project, not just an application feature. A simpler local-transfer feature for our RAW editor is much more achievable.
I can’t open that article here, so I cannot verify its exact implementation or claims. From the URL, I assume you mean the Pixel-to-iPhone AirDrop-compatible transfer capability, rather than ordinary Android Quick Share.
1. Can Sailfish use the Pixel implementation?
Not simply by installing or porting Quick Share.
There are three different possibilities:
Approach
Sailfish feasibility
Run the Android implementation through Android AppSupport
Unlikely to provide the necessary low-level integration without additional platform support
Port an available, appropriately licensed implementation
Possible if its source and required interfaces are available
Independently implement the compatible protocol
Technically possible in principle, but difficult and dependent on the Wi-Fi hardware/driver
A feature working on Pixel does not establish that its implementation is open source or available as a reusable Android API. We would need to inspect the actual implementation before choosing a porting strategy.
2. The difficult part: the wireless transport
Traditional AirDrop involves more than discovering a phone and sending a file:
text
Nearby discovery
↓
Compatible peer-to-peer wireless connection
↓
Service discovery and capability negotiation
↓
Secure connection and recipient approval
↓
File transfer
Apple devices commonly use Apple Wireless Direct Link—AWDL—for the peer-to-peer Wi-Fi portion, along with other discovery mechanisms.
For Sailfish, the main questions are:
Does the phone’s Wi-Fi chipset and firmware expose the required functionality?
Does its Linux driver support the necessary frame handling and channel coordination?
Can it maintain normal Wi-Fi connectivity while participating in the transfer?
Which operations require privileged system access?
Does the particular Pixel interoperability mechanism use the same transport and handshake, or introduce a different compatible path?
We should not assume that Wi-Fi Direct, Wi-Fi Aware, and AWDL are interchangeable. Supporting one does not automatically support the others.
For the Jolla Phone 2026, these are currently unverified device-specific requirements.
3. Existing projects are research starting points
Two relevant projects to investigate are:
OpenDrop: research implementation of AirDrop file-transfer functionality.
OWL: research implementation related to AWDL on Linux.
They demonstrate that parts of this ecosystem can be implemented outside Apple’s platforms. They do not establish a production-ready Sailfish solution.
Before using them, we must verify:
compatibility with current iOS;
supported Wi-Fi drivers and hardware;
maintenance status;
security properties;
licensing;
whether they require an existing AWDL interface or special wireless access.
An “Everyone” discovery mode, if compatible, would be a more realistic initial target than Apple-style Contacts Only identity integration. Neither should be promised before testing.
4. How it should integrate into Sailfish
If feasible, I would build it as a separate transfer service, not put privileged networking code inside the RAW editor.
mermaid
flowchart TD
Editor[RAW editor] --> Share[Transfer client API]
Other[Other Sailfish applications] --> Share
Share --> Service[Transfer service]
Service --> Discovery[Nearby discovery]
Service --> Transport[Compatible wireless transport]
Service --> Security[Consent and secure transfer]
Service --> Storage[Validated incoming files]
Recommended separation
Ordinary application process
Qt/QML recipient picker.
Send/receive confirmation.
Progress and cancellation.
File selection.
System service, only where necessary
Wireless interface management.
Required privileged operations.
Discovery lifecycle.
Network cleanup after failure.
Use a narrowly scoped, access-controlled IPC interface. Do not run the entire editor as root.
For incoming files, include:
explicit acceptance;
safe filename handling;
size and free-space checks;
incomplete-transfer cleanup;
no automatic opening of untrusted content;
no automatic RAW import until the transfer finishes successfully.
Sailfish sharing integration and sandbox permissions would need a separate platform audit.
5. A more practical first implementation
For our photography application, I recommend two stages.
Stage A: Reliable cross-platform transfer
Implement LocalSend-compatible transfer, or integrate an existing compatible client/service after reviewing its protocol and license.
Benefits:
No AWDL requirement.
Works across platforms where a compatible client is installed.
Much easier to test and maintain.
Suitable for transferring RAW files and exported JPEGs.
Limitations:
The iPhone needs a compatible app.
Devices generally need mutual network reachability; isolated guest networks can prevent discovery or transfer.
It is not AirDrop interoperability.
A QR-code browser download over a local network is another useful export option, with appropriate authentication and transport-security design.
Stage B: AirDrop compatibility research
Before building a UI, prove:
The target phone supports the necessary transport.
An unmodified iPhone can discover the Sailfish device.
Both devices can negotiate a connection.
A small file transfers successfully.
A large RAW file transfers reliably.
Failure and cancellation restore networking cleanly.
The design passes a security review.
Sending and receiving should be tested independently; success in one direction does not prove the other.
6. Effort and feasibility
These are planning ranges, not estimates based on a completed hardware investigation:
Work
Rough effort
Article/source review and hardware feasibility investigation
1–3 engineer-weeks
Basic local-network transfer integration using an existing protocol
Several engineer-weeks
Experimental AirDrop-compatible prototype, if transport already works
Several engineer-months
Reliable system integration requiring driver/firmware changes
Potentially much longer—or blocked
Recommendation
Yes, investigate it as a separate Sailfish connectivity project—but do not make it a prerequisite for the RAW editor. Start with reliable local-network sharing, then add AirDrop compatibility only after proving the wireless transport on the actual device.
If you paste the article’s technical sections or its linked source repository, I can distinguish whether it describes a reusable implementation, a proprietary Pixel feature, or an approach we could realistically port.
Dataset releases
Not yet included in a published release.
doc/
Documentation, testing, distribution support
Verify exact layout
zlib
Conditional transitive dependency
Suitable
Availability/version unknown
Other decoder dependencies
Required as selected by pinned decoder build
Audit individually
Unknown until dependency lock
GLib/GObject/GModule
Conditional Darktable adapter requirement
Generally reasonable
Availability/version unknown
GTK/GDK
Desktop-only in recommended architecture
Avoid in native backend
May remain in CLI experiment; not acceptable as final extraction assumption
Cairo/Pango and desktop widget libraries
Desktop-only unless proven otherwise
Avoid unnecessary inclusion
Verify transitive link closure
OpenMP runtime
Optional/conditional performance dependency
Evaluate threads and thermals
Toolchain/runtime unknown
OpenCL headers and loader
Optional future acceleration
Device-dependent
Headers alone do not prove usable driver
OpenCL device driver
Optional future acceleration
Must measure
Driver, permissions and supported features unknown