{"id":17625357,"url":"https://github.com/laheller/sharplibraw","last_synced_at":"2025-05-05T15:30:21.529Z","repository":{"id":163430740,"uuid":"298819836","full_name":"laheller/SharpLibraw","owner":"laheller","description":"C# wrapper around libraw.","archived":false,"fork":false,"pushed_at":"2020-10-07T08:43:01.000Z","size":380,"stargazers_count":18,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T13:41:19.208Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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-26T13:26:39.000Z","updated_at":"2024-11-04T21:31:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"330ea1bc-14b1-40ce-b3b3-09466c1ff8d6","html_url":"https://github.com/laheller/SharpLibraw","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%2FSharpLibraw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laheller%2FSharpLibraw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laheller%2FSharpLibraw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laheller%2FSharpLibraw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laheller","download_url":"https://codeload.github.com/laheller/SharpLibraw/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242741088,"owners_count":20177762,"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:03.091Z","updated_at":"2025-03-09T19:31:35.969Z","avatar_url":"https://github.com/laheller.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SharpLibraw\n\nC#.NET wrapper around [Libraw](https://github.com/LibRaw/LibRaw).\nWrapper class *rawlib.cs* includes C# signatures for all external native methods from *libraw.dll*.\n\nTry the demo console application *Program.cs* 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 Visual Studio 2017 or 2019 Community Edition.\n- Open *LibRAWDemo.sln* solution file and start build.\n- The built executable *LibRAWDemo.exe* requires to have the included *libraw.dll* library in the same folder (should be there automatically)!\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```C#\nusing System;\nusing static LibRAWDemo.RAWLib;\n\nclass Program {\n\tstatic void Main(string[] args) {\n\t\tvar handler = libraw_init(LibRaw_init_flags.LIBRAW_OPTIONS_NONE);\n\t\tlibraw_set_output_tif(handler, LibRaw_output_formats.TIFF);\n\t\tlibraw_set_no_auto_bright(handler, 0);\n\t\tvar r = libraw_open_file(handler, @\"C:\\Temp\\RawFile01.cr2\");\n\t\tif (r != LibRaw_errors.LIBRAW_SUCCESS) {\n\t\t\tConsole.WriteLine(\"Open file:       \" + PtrToStringAnsi(libraw_strerror(r)));\n\t\t\tlibraw_close(handler);\n\t\t\treturn;\n\t\t}\n\t\tr = libraw_unpack(handler);\n\t\tr = libraw_dcraw_process(handler);\n\t\tr = libraw_dcraw_ppm_tiff_writer(handler, @\"C:\\Temp\\Processed01.tiff\");\n\t\tlibraw_close(handler);\n\t}\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaheller%2Fsharplibraw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaheller%2Fsharplibraw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaheller%2Fsharplibraw/lists"}