{"id":49508871,"url":"https://github.com/abdullah-bl/lutprocessor","last_synced_at":"2026-05-01T18:03:44.805Z","repository":{"id":354437320,"uuid":"1222800851","full_name":"abdullah-bl/LutProcessor","owner":"abdullah-bl","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-28T15:52:12.000Z","size":110,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-28T16:21:00.137Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abdullah-bl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-27T18:09:44.000Z","updated_at":"2026-04-28T15:53:32.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/abdullah-bl/LutProcessor","commit_stats":null,"previous_names":["abdullah-bl/lutprocessor"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/abdullah-bl/LutProcessor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullah-bl%2FLutProcessor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullah-bl%2FLutProcessor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullah-bl%2FLutProcessor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullah-bl%2FLutProcessor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abdullah-bl","download_url":"https://codeload.github.com/abdullah-bl/LutProcessor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullah-bl%2FLutProcessor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32507094,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2026-05-01T18:03:25.824Z","updated_at":"2026-05-01T18:03:44.797Z","avatar_url":"https://github.com/abdullah-bl.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LUTProcessor\n\nNative React Native LUT processing powered by Nitro Modules.\n\n`LUTProcessor` applies Hald CLUT PNG files or Iridas/Adobe `.cube` LUT files to images. On iOS it can also export LUT-processed videos.\n\n## Features\n\n- Image LUT processing on iOS and Android.\n- Hald CLUT PNG support.\n- `.cube` 3D LUT support.\n- Intensity blending from `0` to `1`.\n- iOS video LUT export to MP4.\n- Nitro Modules hybrid object API.\n\n## Platform Support\n\n| Feature | iOS | Android |\n| --- | --- | --- |\n| Image + Hald PNG LUT | Yes, Metal | Yes, OpenGL ES 3 |\n| Image + `.cube` LUT | Yes, Metal | Yes, OpenGL ES 3 |\n| Video + Hald PNG LUT | Yes, AVFoundation/CoreImage | Not implemented |\n| Video + `.cube` LUT | Yes, AVFoundation/CoreImage | Not implemented |\n\nAndroid video calls currently reject with a clear unsupported-operation error.\n\n## Installation\n\nInstall this package in a React Native app that uses `react-native-nitro-modules`.\n\n```sh\nnpm install LUTProcessor react-native-nitro-modules\n```\n\nAfter installing or changing native code, refresh native dependencies:\n\n```sh\ncd ios \u0026\u0026 pod install\n```\n\nFor Android, sync Gradle or rebuild the app.\n\n## Usage\n\n```ts\nimport { getLUTProcessor } from 'LUTProcessor'\n\nconst lut = getLUTProcessor()\n\nconst outputImagePath = await lut.applyLut(\n  imagePath,\n  lutPath,\n  0.8\n)\n```\n\n`imagePath` and `lutPath` can be absolute file paths or `file://` URIs. The returned value is the processed image path in the app cache directory.\n\n## Video Processing\n\nVideo processing is available on iOS.\n\n```ts\nimport { getLUTProcessor } from 'LUTProcessor'\n\nconst lut = getLUTProcessor()\n\nconst outputVideoPath = await lut.applyLutToVideo(\n  videoPath,\n  lutPath,\n  1\n)\n```\n\nThe output is an MP4 file in the app cache directory.\n\n## API\n\n### `getLUTProcessor()`\n\nCreates the native Nitro hybrid object.\n\n```ts\nfunction getLUTProcessor(): LUTProcessor\n```\n\n### `applyLut(imagePath, lutPath, intensity)`\n\nApplies a LUT to an image and returns the output PNG path.\n\n```ts\napplyLut(\n  imagePath: string,\n  lutPath: string,\n  intensity: number\n): Promise\u003cstring\u003e\n```\n\n### `applyLutToVideo(videoPath, lutPath, intensity)`\n\nApplies a LUT to a video and returns the output MP4 path.\n\n```ts\napplyLutToVideo(\n  videoPath: string,\n  lutPath: string,\n  intensity: number\n): Promise\u003cstring\u003e\n```\n\n`intensity` is clamped between `0` and `1`.\n\n## LUT Formats\n\n### Hald CLUT PNG\n\nHald LUT images must be square with side length `L^3`, such as `64x64` or `512x512`.\n\n### `.cube`\n\n`.cube` files must include `LUT_3D_SIZE` and the expected `N^3` RGB rows. `DOMAIN_MIN` and `DOMAIN_MAX` are supported.\n\n## Development\n\nRegenerate Nitro bindings after changing `src/specs/LUTProcessor.nitro.ts`:\n\n```sh\nnpm run specs\n```\n\nRun TypeScript checks:\n\n```sh\nnpm run typecheck\n```\n\nThe generated `nitrogen/` files are committed and should stay in sync with the Nitro spec.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullah-bl%2Flutprocessor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdullah-bl%2Flutprocessor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullah-bl%2Flutprocessor/lists"}