Giter VIP home page Giter VIP logo

gdl's Introduction

GDL

Graphic Design Library

GDL (Graphic Design Library) is a high-performance Rust 2D graphic design library, allowing developers to create 2D graphics and resize them for various social media platforms.

GDL allows you to create:

  • Image collages
  • Social media graphics
  • Banners
  • Adverts

View Example Graphics

See examples of designs created with GDL here.

Documentation

Documentation can be found here.

Run The Examples

Clone this repo:

git clone https://github.com/silvia-odwyer/gdl

Run the binary, which will create a sample graphic:

cd crate
cargo run --release 

See /examples for more examples.

Use Custom Fonts [*.ttf supported only for now]

If you'd like to use your own custom fonts, which are TrueType fonts (those with a *.ttf file extension), follow these steps:

  1. Navigate to the fonts directory, which can be found inside the crates dir.
cd crate/fonts 
  1. Insert the font's TTF file into this directory, ie: crate/fonts.

  2. When drawing text and you need to pass a font name into the function, use the name of the font found in the filename.

For example, if the custom font is called Robotika.ttf then pass the name Robotika into the function.

Why GDL?

This does not attempt to be a full-fledged graphic design solution, but rather an aid to those who want to create graphics-on-the-fly quickly and in large quantities. Designing batches of graphics for large numbers of blog posts can be quite cumbersome for bloggers and freelance writers. Hence why I started working on this library.

Work-In-Progress

This is a work-in-progress, therefore the API will likely break in future versions until it reaches 1.0.0.

WebAssembly

The WebAssembly version of this library will make use of the browser's canvas, for graphic creation in the browser.

UPDATE [Dec, 2019]: Development has commenced on the WebAssembly version of this library, and is expected to be completed by end of January 2020.

gdl's People

Contributors

dependabot[bot] avatar jhodges10 avatar silvia-odwyer avatar thibsg avatar

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.