Skip to content

This OpenGL-based tool allows you to perform basic image blending operations using the CLI.

Notifications You must be signed in to change notification settings

bernhardfritz/blendmodes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blendmodes

This 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!

Requirements

Instructions

make
./bm backgroundFilename foregroundFilename outputFilename blendMode blendOpacity

Example: ./bm lena.png baboon.png lenaAddBaboon.png 0 1.0

Background Foreground Output Blend mode Blend opacity
0: add 1.0
1: average 1.0
2: colorBurn 1.0
3: colorDodge 1.0
4: darken 1.0
5: difference 1.0
6: exclusion 1.0
7: glow 1.0
8: hardLight 1.0
9: hardMix 1.0
10: lighten 1.0
11: linearBurn 1.0
12: linearDodge 1.0
13: linearLight 1.0
14: multiply 1.0
15: negation 1.0
16: normal 1.0
17: overlay 1.0
18: phoenix 1.0
19: pinLight 1.0
20: reflect 1.0
21: screen 1.0
22: softLight 1.0
23: subtract 1.0
24: vividLight 1.0

Supported image types:

  • png
  • bmp
  • tga
  • jpg

Supported platforms:

  • Windows (Makefile coming soon!)
  • Linux (Makefile coming soon!)
  • macOSX

Credits

  • Shaders inspired by glsl-blend
  • Sean T. Barrett for his fantastic C library stb

TODO

  • Adapt Makefile for Windows and Linux
  • Allow to set x and y offsets for foreground and background using CLI parameters
  • Write man page
  • Add support for software rendering mode

About

This OpenGL-based tool allows you to perform basic image blending operations using the CLI.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages