This is a friendly fork of Henning Makholm's Xcftools with new features
C Shell Perl C++ Other
Switch branches/tags
Nothing to show
Clone or download
j-jorge
j-jorge Merge pull request #3 from dimumurray/master
Updated xcf2png.c. Thanks dimumurray.
Latest commit 196f517 Jan 27, 2015
Permalink
Failed to load latest commit information.
gimp Add layer group support introduced in Gimp 2.8. Jan 10, 2013
manpo Import of release 1.0.6 Jan 10, 2013
po Import of release 1.0.7 Jan 10, 2013
test Import of release 1.0.6 Jan 10, 2013
.gitignore Fix .gitignore. Some files should not be ignored. Jan 31, 2013
ChangeLog Import of release 1.0.7 Jan 10, 2013
Makefile.in Fix build failure when when linking --as-needed Jan 10, 2013
README Import of release 1.0.6 Jan 10, 2013
TRANSLATION Import of release 1.0.0 Jan 10, 2013
config.guess Import of release 1.0.5 Jan 10, 2013
config.hin Import of release 1.0.5 Jan 10, 2013
config.rpath Import of release 1.0.0 Jan 10, 2013
config.sub Import of release 1.0.5 Jan 10, 2013
configure Import of release 1.0.7 Jan 10, 2013
configure.ac Import of release 1.0.7 Jan 10, 2013
dist-generated Import of release 1.0.2 Jan 10, 2013
exit.1i Import of release 1.0.0 Jan 10, 2013
flatspec.c Import of release 1.0.6 Jan 10, 2013
flatten.c Import of release 1.0.6 Jan 10, 2013
flatten.h Import of release 1.0.6 Jan 10, 2013
install-sh Import of release 0.7 Jan 10, 2013
io-unix.c Import of release 1.0.6 Jan 10, 2013
mancombine.pl Import of release 1.0.6 Jan 10, 2013
mkenumsc.pl Import of release 1.0.6 Jan 10, 2013
mkenumsh.pl Import of release 1.0.6 Jan 10, 2013
mkopti.pl Import of release 1.0.6 Jan 10, 2013
mktablec.pl Import of release 1.0.6 Jan 10, 2013
options.i Add layer group support introduced in Gimp 2.8. Jan 10, 2013
palette.c Import of release 1.0.6 Jan 10, 2013
palette.h Import of release 1.0.6 Jan 10, 2013
pixels.c Import of release 1.0.6 Jan 10, 2013
pixels.h Import of release 1.0.6 Jan 10, 2013
scaletab.c Import of release 1.0.6 Jan 10, 2013
utils.c Import of release 1.0.7 Jan 10, 2013
xcf-general.c Add layer group support introduced in Gimp 2.8. Jan 10, 2013
xcf2png.10 Import of release 1.0.6 Jan 10, 2013
xcf2png.c Updated xcf2png.c Jan 24, 2015
xcf2pnm.10 Import of release 1.0.6 Jan 10, 2013
xcf2pnm.c Import of release 1.0.6 Jan 10, 2013
xcfinfo.10 Import of release 1.0.6 Jan 10, 2013
xcfinfo.c Add layer group support introduced in Gimp 2.8. Jan 10, 2013
xcfspec.txt Import of release 1.0.5 Jan 10, 2013
xcftools.h Add layer group support introduced in Gimp 2.8. Jan 10, 2013
xcftools.spec Import of release 1.0.7 Jan 10, 2013
xcfview.10 Import of release 1.0.6 Jan 10, 2013
xcfview.in Import of release 1.0.0 Jan 10, 2013

README

What is this?
=============

Xcftools is a set of fast command-line tools for extracting
information from the Gimp's native file format XCF. The tools
are designed to allow efficient use of layered XCF files as
sources in a build system that use 'make' and similar tools
to manage automatic processing of the graphics. These tools
work independently of the Gimp engine and do not require the
Gimp to even be installed.

 xcf2pnm  converts XCF files to ppm, pgm or pbm format,
          flattening layers if necessary. If the image
          contains transparency, an alpha map can be written
          to a separate file, or a background color can be
          specified on the command line.

 xcf2png  converts XCF files to PNG format, flattening
          layers if necessary. Transparency information
          can be kept in the image, or a background color
          can be specified on the command line.

 xcfinfo  lists information about layers in an XCF file.

The tools can either flatten an XCF file as given, or extract specific
layers named on the command line.

Portability
===========

The software was developed on an Intel-based PC running Debian
GNU/Linux. It ought to work on other Linux variants also. I would
not be surprised if it ran on other unix systems too, but porting
to non-unix platforms will require some work. Most of the code
attempts to be prepared for porting, but this has not been
explicitly tested.

Installation
============

You need GNU make, a C compiler, and perl.

After the source archive is extracted, the command sequence
   ./configure
   make all
   make install
should compile the tools and install them in /usr/local.

The 'configure' script is generated by GNU autoconf, and accepts
the arguments that such scripts commonly do.

You can use
  ./configure --enable-precomputed-scaletable
to precompute lookup tables for pixel composing at compile time.
Normally these tables are initialized at run time if a layer that
needs them is detected. Precomputing them may improve performance
by a few percent, at the cost of doubling the size of each binary.

License
=======

Xcftools is written by Henning Makholm <henning@makholm.net>
It is hereby in the public domain.

In jurisdictions that do not recognise grants of copyright to the
public domain: I, the author and (presumably, in those jurisdictions)
copyright holder, hereby permit anyone to distribute and use this code,
in source code or binary form, with or without modifications. This
permission is world-wide and irrevocable.

Of course, I will not be liable for any errors or shortcomings in the
code, since I give it away without asking any compenstations.

If you use or distribute this code, I would appreciate receiving
credit for writing it, in whichever way you find proper and customary.