All Projects → flightaware → tcl.gd

flightaware / tcl.gd

Licence: BSD-3-Clause, Unknown licenses found Licenses found BSD-3-Clause LICENSE Unknown license.terms
Feature-complete Tcl interface to GD graphics drawing library

Programming Languages

M4
1887 projects
c
50402 projects - #5 most used programming language
Makefile
30231 projects
shell
77523 projects
tcl
693 projects

Projects that are alternatives of or similar to tcl.gd

Minecraft Avatar
PHP script (using GD) to generate avatar or skin from a Minecraft username
Stars: ✭ 104 (+593.33%)
Mutual labels:  gd
laravel-color-palette
Laravel Wrapper for @ksubileau/color-thief-php. Grabs the dominant color or a representative color palette from an image. Uses PHP and GD or Imagick.
Stars: ✭ 27 (+80%)
Mutual labels:  gd
TrippyGL
A simple, lightweight yet highly versatile OpenGL graphics library
Stars: ✭ 71 (+373.33%)
Mutual labels:  graphics-library
Gimage
A PHP library for easy image handling. 🖼
Stars: ✭ 148 (+886.67%)
Mutual labels:  gd
CenoGL
a 3D graphics engine without graphics libs
Stars: ✭ 14 (-6.67%)
Mutual labels:  graphics-library
cpptcl
C++ library for interoperability between C++ and TCL
Stars: ✭ 33 (+120%)
Mutual labels:  tcl-extension
Zimg Host
Simple image hosting service
Stars: ✭ 62 (+313.33%)
Mutual labels:  gd
kinieta
A Fast Animation Engine with an Intuitive API
Stars: ✭ 44 (+193.33%)
Mutual labels:  graphics-library
TermGL
2D & 3D graphics engine in the terminal [C/C++]
Stars: ✭ 219 (+1360%)
Mutual labels:  graphics-library
gfxprim
Open-source modular 2D bitmap graphics library with emphasis on speed and correctness.
Stars: ✭ 32 (+113.33%)
Mutual labels:  graphics-library
Image
PHP Image Manipulation
Stars: ✭ 12,298 (+81886.67%)
Mutual labels:  gd
Imagecow
PHP library to manipulate and generate responsive images
Stars: ✭ 234 (+1460%)
Mutual labels:  gd
loon
A Toolkit for Interactive Statistical Data Visualization
Stars: ✭ 45 (+200%)
Mutual labels:  tcl-extension
Thumb
A simple, local image only, thumbnail generation script written in PHP
Stars: ✭ 119 (+693.33%)
Mutual labels:  gd
Text2Image
The most useful & easy2use PHP library for converting any text into image
Stars: ✭ 29 (+93.33%)
Mutual labels:  gd
Simpleimage
A PHP class that makes working with images as simple as possible.
Stars: ✭ 1,184 (+7793.33%)
Mutual labels:  gd
php-smartcrop-extension
smartcrop implementation in php extension
Stars: ✭ 17 (+13.33%)
Mutual labels:  gd
cala
Cross-platform system interface for hardware IO
Stars: ✭ 46 (+206.67%)
Mutual labels:  graphics-library
microgl
High-quality, no-compromise graphics library for embedded systems; currently under development.
Stars: ✭ 28 (+86.67%)
Mutual labels:  graphics-library
sdf-2d
A graphics library to enable the real-time rendering of 2D signed distance fields on the web.
Stars: ✭ 70 (+366.67%)
Mutual labels:  graphics-library

Linux CI

This is tcl.gd, a new Tcl interface to GD that is significantly more feature- complete with gd 2 than Gdtclft.

Version 1.3.1

This package is a freely available open source package under the "Berkeley" license, same as Tcl. You can do virtually anything you like with it, such as modifying it, redistributing it, and selling it either in whole or in part.
See the file "license.terms" for complete information.

Gdtcl was written by Karl Lehenbauer.

Prerequisites

Before building tcl.gd you need to install the graphics drawing library, GD, aka libgd, from https://github.com/libgd/libgd

Make sure you have a dev version i.e. that the include files are installed as well as the libraries. If using Debian use apt-get install libgd-dev.

You'll also need to have installed Tcl, probably version 8.6, and you need autoconf.

Building

Once you've got the prerequisites installed, run autoreconf to generate the configure script, then run the configure script, make and make install

autoreconf
./configure --with-tcl=/usr/lib/tcl8.6
make
sudo make install

Using tcl.gd

package require tclgd

tclgd quick reference

Please see the tclgd manpage in the doc directory. There's a pdf there too.

Examples

A number of simple examples of the use of tcl.gd can be found in the playpen directory.

Bugs

Probably.

Integrating tclgd with existing C applications that use gd

You can attach an existing gd handle to a tcl.gd image manipulation command using tclgd_newGDObjectAttach. This provides a way to grab a GD image created by some library that you've linked your application with and manipulate it from Tcl using tcl.gd. Please see the tclgd_newGDObjectAttach manpage for details.

mapserver mapscript patch

Included with tcl.gd is a patch to Mapserver's mapscript Tcl extension to use the aforementioned capability for integrating tcl.gd with C aplications that use gd to provide a tcl.gd capability for mapscript.

Consult the README file in the mapserver-patches subdirectory for details on how to install the mapserver patch to add this capability to mapserver.

Contents

Makefile.in Makefile template. The configure script uses this file to produce the final Makefile.

README.md This file

aclocal.m4 Generated file. Do not edit. Autoconf uses this as input when generating the final configure script. See "tcl.m4" below.

configure Generated file. Do not edit. This must be regenerated anytime configure.in or tclconfig/tcl.m4 changes.

configure.in Configure script template. Autoconf uses this file as input to produce the final configure script.

generic/tclgd.c Interface between Tcl and GD generic/tclgd.h include file generic/tclgdio.c Channel interface to allow GD-oriented I/O to Tcl channels. generic/tclgdtcl.c Init routines.

tclconfig/ This directory contains various template files that build the configure script. They should not need modification.

install-sh	Program used for copying binaries and script files to their install locations.

tcl.m4		Collection of Tcl autoconf macros.  Included by aclocal.m4 to define SC_* macros.

Building on Unix / Linux

Building under most Unix systems is easy, just run the configure script and then run make.

cd tcl.gd
./configure
make
make install

Windows build

tcl.gd has not been built under Windows at this time.

The recommended method to build extensions under Windows is to use the Msys + Mingw build process. This provides a Unix-style build while generating native Windows binaries. Using the Msys + Mingw build tools means that you can use the same configure script as per the Unix build to create a Makefile.

If you have VC++, then you may wish to use the files in the win subdirectory and build the extension using just VC++.

Instructions for using the VC++ makefile are written in the first part of the Makefile.vc file.

Installation

The install looks like so:

     $exec_prefix
      /       \
    lib       bin
     |         |

PACKAGEx.y (dependent .dll files on Windows) | pkgIndex.tcl (.so|.dll files)

The main .so|.dll library file gets installed in the versioned PACKAGE directory, which is OK on all platforms because it will be directly referenced with by 'load' in the pkgIndex.tcl file. Dependent DLL files on Windows must go in the bin directory (or other directory on the user's PATH) in order for them to be found.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].