Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

LibRAW-for-Delphi-Lazarus-Free-Pascal

Reading Camera RAW using LibRAW withr Delphi, Lazarus, Free Pascal

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

LibRAW-for-Delphi-Lazarus-Free-Pascal

Reading Camera RAW using LibRAW withr Delphi, Lazarus, Free Pascal

Requires .DLL files (included). For Linux and MacOS you need to download binaries from libraw project.

Usage examples

Using TImage / TPicture

pascal
Image1.Picture.LoadFromFile('test.raw');
Image1.Picture.LoadFromFile('test.dng');

Tested under 64 bit Lazarus

Should work under other 64 bit Delphis. Needs tests under 32 bit Lazarus and 32 bit Delphi.

This unit uses libraw.DLL

https://www.libraw.org

LibRaw is distributed for free under two different licenses:

  • GNU Lesser General Public License, version 2.1
  • COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0

Supported formats

Pretty much every camera raw format should work.

  • .3fr (Hasselblad)
  • .arw, .srf, .sr2 (Sony)
  • .bay (Casio)
  • .cap, .cs1 (Capture One)
  • .crw, .cr2, .cr3 (Canon)
  • .dcr, .dcs, .drf, .k25, .kdc (Kodak)
  • .dng (Adobe/Generic, used by Leica, Ricoh, etc.)
  • .erf (Epson)
  • .iiq (Phase One)
  • .mef (Mamiya)
  • .mos (Leaf)
  • .mrw (Minolta)
  • .nef, .nrw (Nikon)
  • .orf (Olympus/OM System)
  • .pef, .ptx (Pentax)
  • .raf (Fujifilm)
  • .raw, .rwl (Leica/Panasonic)
  • .rw2 (Panasonic/Leica)
  • .srw (Samsung)
  • .x3f (Sigma)

Linux (Debian, Ubuntu, Mint)

  1. apt install apt-file libraw-dev
  2. apt-file search libraw.so It will list you how your libraw.so files are named exactly and where they are
  3. Open RawImage.pas and edit "const LIB_RAW"
  4. Change the value of that const. Enter filename (excluding path) found in step 2
  5. Compile and run