Giter VIP home page Giter VIP logo

write-to-image's Introduction

write-to-image

  • Clone this repository
$ git clone https://github.com/mswarak/write-to-image.git

Installation

This project using composer

composer require mswarak/write-to-image

OR

require_once '../src/Write_To_Image.php';

Usage

// load Write_To_Image
use mswarak\Write_To_Image;
$image = new Write_To_Image('img.jpg');

// add default font
$image->set_default_font(dirname(__FILE__) . "/arial.ttf");

// add text
$image->text_ltr("hi 01", 25, 50, 50);
$image->text_ltr("hi 02", 25, 250, 250);

// preview image on browser
$image->preview();

Changelog

1.2.4 ( 2022/06/26 )

  • Support drawing lines.
  • Support switch color from hex to RGB.

1.2.3 ( 2022/06/17 )

  • Support drawing rectangles.
  • Fix bugs.

1.2.2 ( 2022/06/13 )

  • Support adding default font.
  • Support drawing circles.

1.2.1 ( 2022/06/09 )

  • Support multi-output file using text_clear function.
  • Fix bugs.

1.2.0 ( 2022/06/05 )

  • Fix bugs.

1.1 ( 2022/06/02 )

  • Support rtl.
  • Improve Arabic encoding.
  • Fix bugs.

1.0 ( 2022/06/01 )

  • The first stable version.

0.1-beta ( 2022/05/26 )

  • First release.

Credits

write-to-image's People

Contributors

mswarak 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.