Home
Name Modified Size InfoDownloads / Week
0.1 2021-05-22
README.txt 2021-05-22 1.4 kB
Totals: 2 Items   1.4 kB 0
TMagic PHP wrappers for ImageMagick Version 0.1 (alpha)
Released: 20-May-2021

1. Configure
First, unpack the zip file to a folder of your choice on your server.

a. Automatic configuration
Open the file TMagic_dash.php in a browser:

http://your_server/your_TMagic_folder/TMagic_dash.php

This automatically configures TMagic.php for your operating system and ImageMagick version.

b. Manual configuration
Open TMagic.php in an editor and locate the following lines:

define ("MAGICK", "");
define ("SYSTEM", "");

The MAGICK constant is the name of the ImageMagick .exe file (usually “convert” or “magick”, with the path if the path is not included in the PATH environment variable).
The SYSTEM constant is your operating system, “Windows NT” for Windows, “Linux” for Linux/Ubuntu, and “Darwin” for Mac (currently not critical).

Edit those lines accordingly, save the file as “TMagic.php” and Bob’s your uncle.

2. Usage
Now use include, require or require_once in a script to load the wrappers and away you go! E.g.

require "your_TMagic_folder/TMagic.php";
(new LT_Image ())->Inew ("yellow", 100, 100)->Iwrite ("TM_test.png");

3. Further development
First aim is to test all functions provided by the end of June, 2021 which will be followed by a beta release.
Send any bug reports to tmagic at skeptic dot de
Source: README.txt, updated 2021-05-22