{"id":17625363,"url":"https://github.com/laheller/fplibraw","last_synced_at":"2026-01-08T11:40:25.668Z","repository":{"id":163430712,"uuid":"298583241","full_name":"laheller/FPLibRaw","owner":"laheller","description":"FreePascal wrapper around Libraw","archived":false,"fork":false,"pushed_at":"2020-10-12T17:46:08.000Z","size":388,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-05T04:43:22.507Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Pascal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/laheller.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-25T13:38:44.000Z","updated_at":"2023-02-03T08:28:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"1fce20e9-c24d-4ab3-905e-6413c049509d","html_url":"https://github.com/laheller/FPLibRaw","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laheller%2FFPLibRaw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laheller%2FFPLibRaw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laheller%2FFPLibRaw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laheller%2FFPLibRaw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laheller","download_url":"https://codeload.github.com/laheller/FPLibRaw/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246266238,"owners_count":20749754,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-22T22:42:08.682Z","updated_at":"2026-01-08T11:40:25.629Z","avatar_url":"https://github.com/laheller.png","language":"Pascal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FPLibRaw\n\nFreePascal wrapper around [Libraw](https://github.com/LibRaw/LibRaw). It was written using [Lazarus IDE](https://www.lazarus-ide.org/) powered by FreePascal.\nWrapper unit *libraw.pas* includes pascal signatures for all external native methods from *libraw.dll*.\n\nTry the demo console application *demo.pas* which demonstrates key libraw features, like:\n- initialize library\n- open raw file\n- export raw file to TIFF\n- export thumbnail from raw file to JPEG\n- load raw data, process it and export to Windows bitmap\n- error handling\n\n# Demo project\n\nTo successfully build wrapper and demo application the following steps are needed:\n- Download and install latest **64bit** version of Lazarus IDE (also installs FreePascal).\n- Open *demo.lpi* project file in Lazarus (Ctrl+F11) and build (Shift+F9).\n- The built executable *demo.exe* requires to have the included *libraw.dll* library in the same folder!\n- Note: **64bit build** of the project is **required**, since the included *libraw.dll* is also a 64bit library! \n\n# Sample usage of wrapper\n\n```pascal\nprogram Sample;\nuses Crt, Libraw;\nvar\n\thandler: Pointer;\n\terr: LibRaw_errors;\nbegin\n\thandler := libraw_init(LibRaw_init_flags.LIBRAW_OPTIONS_NONE);\n\tlibraw_set_output_tif(handler, LibRaw_output_formats.TIFF);\n\tlibraw_set_no_auto_bright(handler, 0);\n\terr := libraw_open_file(handler, 'C:\\Temp\\RawImage01.CR2');\n\tif (err \u003c\u003e LibRaw_errors.LIBRAW_SUCCESS) then begin\n\t\tWriteLn('Open:            ' + libraw_strerror(err));\n\t\tlibraw_close(handler);\n\t\tWrite('Press any key...');\n\t\tReadKey;\n\t\tExit;\n\tend;\n\terr := libraw_unpack(handler);\n\tlibraw_dcraw_process(handler);\n\tlibraw_dcraw_ppm_tiff_writer(handler, 'C:\\Temp\\ProcessedImage01.tiff');\n\tlibraw_close(handler);\nend.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaheller%2Ffplibraw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaheller%2Ffplibraw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaheller%2Ffplibraw/lists"}