Skip to content
This repository has been archived by the owner on Jul 23, 2023. It is now read-only.
/ image_resizer Public archive

A simple c++ program that uses libpng and OpenCL to resize images.

License

Notifications You must be signed in to change notification settings

LinArcX/image_resizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image_resizer

A simple c++ program that uses libpng and OpenCL to resize images.

Tools

  • OS: Void linux
  • Compiler: gcc
  • Editor: neovim

Prerequisites

  • make

  • cmake

  • pkg-config

  • libpng: I grabbed the source code(version: 1.6.37) from it's official website. After downloading the source code, there's a nice and self-explanatory INSTALL document. To recap i ran the following commands to build libpng:

    cmake . -DCMAKE_INSTALL_PREFIX=/home/linarcx/libpng
    make
    make install
    
  • OpenCl There's a libclc package in VoidLinux that i used it.

Build

git clone https://github.com/LinArcX/image_resizer
cd image_resizer
mkdir -p output/cmake output/debug output/release
cd output/cmake/
cmake -DCMAKE_BUILD_TYPE=Release ../..
make -j8

And finally run the program:

../release/image_resizer

Test

./output/x64/release/image_resizer -output ./assets/smaller.png -input ./assets/original.png -ratio 0.4 -quality 90 -algorithm "bicubic"

Inspiration

  1. opencl-resizer

License

License

About

A simple c++ program that uses libpng and OpenCL to resize images.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published