{"id":23163587,"url":"https://github.com/bernhardfritz/blendmodes","last_synced_at":"2025-09-11T07:33:17.961Z","repository":{"id":142767922,"uuid":"109906021","full_name":"bernhardfritz/blendmodes","owner":"bernhardfritz","description":"This OpenGL-based tool allows you to perform basic image blending operations using the CLI.","archived":false,"fork":false,"pushed_at":"2017-11-08T00:26:29.000Z","size":1233,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-07T02:05:33.185Z","etag":null,"topics":["blend-modes","c","cli","command-line-tool","glsl","opengl","shaders"],"latest_commit_sha":null,"homepage":"","language":"C","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/bernhardfritz.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}},"created_at":"2017-11-08T00:10:44.000Z","updated_at":"2025-06-16T06:39:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"ed33f011-5c25-4039-9ae5-dbc9aa3e4aee","html_url":"https://github.com/bernhardfritz/blendmodes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bernhardfritz/blendmodes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernhardfritz%2Fblendmodes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernhardfritz%2Fblendmodes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernhardfritz%2Fblendmodes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernhardfritz%2Fblendmodes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bernhardfritz","download_url":"https://codeload.github.com/bernhardfritz/blendmodes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernhardfritz%2Fblendmodes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274595319,"owners_count":25314016,"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","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"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":["blend-modes","c","cli","command-line-tool","glsl","opengl","shaders"],"created_at":"2024-12-18T00:19:58.020Z","updated_at":"2025-09-11T07:33:17.885Z","avatar_url":"https://github.com/bernhardfritz.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"### blendmodes\nThis OpenGL-based tool allows you to perform basic image blending operations using the CLI. An OpenGL 2.0+ compatible graphics card is required for this tool to work. Systems without a graphics card are currently out of luck. However, software rendering mode is coming soon!\n\n#### Requirements\n* [glfw](http://www.glfw.org/)\n\n#### Instructions\n```\nmake\n./bm backgroundFilename foregroundFilename outputFilename blendMode blendOpacity\n```\n\n**Example:** ```./bm lena.png baboon.png lenaAddBaboon.png 0 1.0```\n\n| Background                           | Foreground                           | Output                               | Blend mode      | Blend opacity |\n|:------------------------------------:|:------------------------------------:|:------------------------------------:|-----------------|:-------------:|\n| ![](https://i.imgur.com/dwnT1rz.png) | ![](https://i.imgur.com/EpcbGTg.png) | ![](https://i.imgur.com/sJzhepN.png) | 0: add          | 1.0           |\n| ![](https://i.imgur.com/dwnT1rz.png) | ![](https://i.imgur.com/EpcbGTg.png) | ![](https://i.imgur.com/gIQKb3f.png) | 1: average      | 1.0           |\n| ![](https://i.imgur.com/dwnT1rz.png) | ![](https://i.imgur.com/EpcbGTg.png) | ![](https://i.imgur.com/DIOdLqq.png) | 2: colorBurn    | 1.0           |\n| ![](https://i.imgur.com/dwnT1rz.png) | ![](https://i.imgur.com/EpcbGTg.png) | ![](https://i.imgur.com/hpqmcGh.png) | 3: colorDodge   | 1.0           |\n| ![](https://i.imgur.com/dwnT1rz.png) | ![](https://i.imgur.com/EpcbGTg.png) | ![](https://i.imgur.com/hi2flFf.png) | 4: darken       | 1.0           |\n| ![](https://i.imgur.com/dwnT1rz.png) | ![](https://i.imgur.com/EpcbGTg.png) | ![](https://i.imgur.com/jEpFxqG.png) | 5: difference   | 1.0           |\n| ![](https://i.imgur.com/dwnT1rz.png) | ![](https://i.imgur.com/EpcbGTg.png) | ![](https://i.imgur.com/SYARHnF.png) | 6: exclusion    | 1.0           |\n| ![](https://i.imgur.com/dwnT1rz.png) | ![](https://i.imgur.com/EpcbGTg.png) | ![](https://i.imgur.com/F7bmvGc.png) | 7: glow         | 1.0           |\n| ![](https://i.imgur.com/dwnT1rz.png) | ![](https://i.imgur.com/EpcbGTg.png) | ![](https://i.imgur.com/LNGswtP.png) | 8: hardLight    | 1.0           |\n| ![](https://i.imgur.com/dwnT1rz.png) | ![](https://i.imgur.com/EpcbGTg.png) | ![](https://i.imgur.com/8mMOOJ2.png) | 9: hardMix      | 1.0           |\n| ![](https://i.imgur.com/dwnT1rz.png) | ![](https://i.imgur.com/EpcbGTg.png) | ![](https://i.imgur.com/LxQwUtK.png) | 10: lighten     | 1.0           |\n| ![](https://i.imgur.com/dwnT1rz.png) | ![](https://i.imgur.com/EpcbGTg.png) | ![](https://i.imgur.com/FgIlJ0n.png) | 11: linearBurn  | 1.0           |\n| ![](https://i.imgur.com/dwnT1rz.png) | ![](https://i.imgur.com/EpcbGTg.png) | ![](https://i.imgur.com/6BkFVwn.png) | 12: linearDodge | 1.0           |\n| ![](https://i.imgur.com/dwnT1rz.png) | ![](https://i.imgur.com/EpcbGTg.png) | ![](https://i.imgur.com/9ABKRwO.png) | 13: linearLight | 1.0           |\n| ![](https://i.imgur.com/dwnT1rz.png) | ![](https://i.imgur.com/EpcbGTg.png) | ![](https://i.imgur.com/OO19r9v.png) | 14: multiply    | 1.0           |\n| ![](https://i.imgur.com/dwnT1rz.png) | ![](https://i.imgur.com/EpcbGTg.png) | ![](https://i.imgur.com/BoUOVcG.png) | 15: negation    | 1.0           |\n| ![](https://i.imgur.com/dwnT1rz.png) | ![](https://i.imgur.com/EpcbGTg.png) | ![](https://i.imgur.com/aSErNpA.png) | 16: normal      | 1.0           |\n| ![](https://i.imgur.com/dwnT1rz.png) | ![](https://i.imgur.com/EpcbGTg.png) | ![](https://i.imgur.com/2bOSFpw.png) | 17: overlay     | 1.0           |\n| ![](https://i.imgur.com/dwnT1rz.png) | ![](https://i.imgur.com/EpcbGTg.png) | ![](https://i.imgur.com/wI9IYrO.png) | 18: phoenix     | 1.0           |\n| ![](https://i.imgur.com/dwnT1rz.png) | ![](https://i.imgur.com/EpcbGTg.png) | ![](https://i.imgur.com/GtZEqfS.png) | 19: pinLight    | 1.0           |\n| ![](https://i.imgur.com/dwnT1rz.png) | ![](https://i.imgur.com/EpcbGTg.png) | ![](https://i.imgur.com/Ae9wLEU.png) | 20: reflect     | 1.0           |\n| ![](https://i.imgur.com/dwnT1rz.png) | ![](https://i.imgur.com/EpcbGTg.png) | ![](https://i.imgur.com/RuGGGGh.png) | 21: screen      | 1.0           |\n| ![](https://i.imgur.com/dwnT1rz.png) | ![](https://i.imgur.com/EpcbGTg.png) | ![](https://i.imgur.com/CMObCms.png) | 22: softLight   | 1.0           |\n| ![](https://i.imgur.com/dwnT1rz.png) | ![](https://i.imgur.com/EpcbGTg.png) | ![](https://i.imgur.com/UkCt810.png) | 23: subtract    | 1.0           |\n| ![](https://i.imgur.com/dwnT1rz.png) | ![](https://i.imgur.com/EpcbGTg.png) | ![](https://i.imgur.com/AdM5OkV.png) | 24: vividLight  | 1.0           |\n\n**Supported image types**:\n* png\n* bmp\n* tga\n* jpg\n\n**Supported platforms**:\n* Windows (Makefile coming soon!)\n* Linux (Makefile coming soon!)\n* macOSX\n\n#### Credits\n* Shaders inspired by [glsl-blend](https://github.com/jamieowen/glsl-blend)\n* Sean T. Barrett for his fantastic C library [stb](https://github.com/nothings/stb)\n\n#### TODO\n* Adapt Makefile for Windows and Linux\n* Allow to set x and y offsets for foreground and background using CLI parameters\n* Write man page\n* Add support for software rendering mode","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernhardfritz%2Fblendmodes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbernhardfritz%2Fblendmodes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernhardfritz%2Fblendmodes/lists"}