Giter Club home page Giter Club logo

skyskyshinysky / text_to_png_converter Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 4.94 MB

Program to translate text into image.

License: MIT License

Makefile 2.23% C 74.31% CMake 0.52% Shell 5.21% Awk 0.31% Python 1.24% M4 0.43% HTML 8.39% Roff 1.88% C++ 2.80% Objective-C 0.42% Perl 0.11% sed 0.01% DIGITAL Command Language 0.49% Assembly 0.98% Dockerfile 0.01% Batchfile 0.03% Module Management System 0.02% SAS 0.01% Ada 0.60%
text-png text-converter from-text-to-png freetype-libpng makefile

text_to_png_converter's Introduction

TextToPNGСonverter

Program to translate text into image. The program was developed as part of a laboratory work in which it was necessary to create a Makefile for all libraries and the developed application.

Requirements

  • zlib 1.2.11
  • libpng 1.6.36
  • freetype-2.9

Building

Building with make (GNU Make 4.1) for Linux (Tested on Debian 9).

From the root project directory: make all. The assembly will be carried out in two modes - static and dynamic. After the build is completed, the static dependencies of the library will be located in lib/static. Shared library - lib/shared.

The application folder also contains two versions of the program. The dynamic application uses the dlopen and dlsym functions for working with shared libraries.

Usage

In cmd/terminal: ./app_shared -m (phrase) -t (path to ttf file)

Available options:
  • -h, --help <-- help message
  • -t, --ttf-file <-- specify the font file in ttf format
  • -m, --message <-- specify a phrase to display in the picture
  • -f, --file-output <-- enter image file name
Example

Generate pictures with the phrase "Hello, Pusheen cat!": ./app_shared -m "Hello, Pusheen cat!" -t Chiller.ttf

Result

text_to_png_converter's People

Contributors

skyskyshinysky avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

weixuan2008

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.