Skip to content

nyfair/freeimagerip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gamecg composite library forks from FreeImage

New Features:

  • susie plugin
  • qt plugin
  • windows context menu previewer

Removed Features:

  • keep image metatag
  • multipage image suport

3rd Parties

Library Homepage
libpng 1.6.52 http://libpng.com/pub/png/libpng.html
libtiff 4.7.1 http://www.simplesystems.org/libtiff
libwebp 1.6.0 https://chromium.googlesource.com/webm/libwebp
mozjpeg 4.1.5 with jpegli from libjxl https://github.com/mozilla/mozjpeg
zlib-ng 2.3.2 https://github.com/zlib-ng/zlib-ng
jxrlib 1.1 https://jxrlib.codeplex.com
libjxl 0.11.1 https://github.com/libjxl/libjxl

3rd Parties CMakeLists.txt Modification

libpng - include zlib-ng directory
libjxl - remove add_subdirectory(tools) | third-party find lcms2 | jpegli.cmake allow win32 JPEGXL_ENABLE_JPEGLI_LIBJPEG and configure_file

Windows Context Menu Previewer

install

regsvr32 FIShellExt.dll

uninstall

regsvr32 /u FIShellExt.dll

slide

Lua Extension

require 'fi'

---
# convert image format
convert('*.webp', 'tiff')
# convert image format and bpp
convbpp('*.png', 32, 'bmp')
# convert image format with quality setting
convert('1.png', '1.jpg', 90)

# alpha composite with 24bpp background 8bpp foreground
back = open('rgb24.bmp')
front = open('alpha8.bmp')
back_resized = scale(back, getw(front), geth(front))
back_rgba = to32(back_resized)
save(back_resized, 'resized.png', 9)
save(back_rgba, 'back.tiff')
out = composite(back_rgba, front)
save(out, 'composite.png')
freeAll({back_resized, front, out, back_rgba})
free(back)
...

CLI interface(luajit)

# windows terminal
chcp 65001
# unix-like system
alias conv="noglob luajit conv.lua"

# convert image format
conv *.png jpg
conv 民逗Σ.dds 二マビ.webp
# convert image format and bpp
conv abc.jpg 32 abc.tiff
# convert image format with quality setting
conv 汉字.bmp 漢字.jpg 75

About

Gamecg composite library forks from FreeImage

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published