XCF (file format)

Last updated
XCF
Wilber GIMP.exe file Windows.png
Filename extension
.xcf
Internet media type
image/x-xcf
Magic number gimp xcf 
Developed by GIMP
Container for Graphics
Open format?yes, but standard is ad hoc

XCF, short for eXperimental Computing Facility , [1] is the native image format of the GIMP image-editing program. It saves all of the data the program handles related to the image, including, among others, each layer, the current selection, channels, transparency, paths and guides.

Contents

Prior to version 4 (GIMP 2.10.0, released on 2018-04-27), the saved image data are compressed only by a simple RLE algorithm, but GIMP supports compressed files, using gzip, bzip2, or xz. The compressed files can be opened as normal image files. Since version 4, the image data can be compressed by zlib instead.

The XCF file format is backward compatible (all versions of GIMP can open earlier versions' files) and in some cases, forward compatible. For example, GIMP 2.0 can save text in text layers while GIMP 1.2 cannot. Text layers saved in GIMP 2.0 will open as ordinary image layers in GIMP 1.2. However, XCF files containing layer groups, a feature introduced in GIMP 2.7, cannot be opened with GIMP 2.6.

Despite some use in other programs [2] [3] [4] [5] [6] (see §software support), the use of XCF as a data interchange format is not recommended by the developers of GIMP, [7] since the format reflects GIMP's internal data structures and there may be minor format changes in future versions. Instead, a collaborative effort between the developers of GIMP and Krita is underway to design a standardised raster file format called OpenRaster (modelled on the OpenDocument format) for future use in both applications, and likely in others also.

GIMP's Save dialog saves in the XCF format: starting with version 2.8, other formats with import/export support were moved to an Export dialog.

Software support

A partial list of image viewers and conversion software.

Selected software with some support for XCF
applicationXCF-capable?notes
GIMP default formatprogram for which the format was developed
Seashore default format [2] lightweight native Mac OS X image editing program based on the GIMP
CinePaint default format, but nonstandardfork of GIMP with support for 16-bit and 32-bit floating point channels, and 16-bit integer channels; the XCF file format used in CinePaint has diverged from the GIMP's native format, so XCF files created in GIMP cannot be opened in CinePaint, and vice versa
DBGallery does not support colour indexingdisplays multi-layer non-indexed images and allows indexing, searching and other photo database operation
ImageMagick does not support colour indexing or multiple layershas an XCF reader module that can read single-layer non-indexed images
Project Dogwaffle see ImageMagick row(including PD Pro, PD Particles and PD Artist) imports XCF files using the ImageMagick library
Krita import onlyimports XCF files using the GraphicsMagick library
Kolourpaint Yescan read XCF files using KDE's image I/O library plugin, like any other KDE program
Gwenview does not support colour indexingcan display multi-layer non-indexed images
Digikam does not support colour indexingcan display multi-layer non-indexed images
Imaginedoes not support colour indexing or multiple layerscan display single-layer non-indexed images
XnView does not support colour indexing or multiple layerscan display single-layer non-indexed images
Inkscape export only [3] added support for XCF export in the 0.44 release
IrfanView requires plugin [4] can display multi-layer images (composite image and individual layers) with a plugin
Paint.NET requires plugincan load and save multi-layer .xcf/.xcfgz/.xcfbz2 images (via ImXCF.FileType plugin)
Chasys Draw IES Yescan load and save multi-layer .xcf/.xcfgz/.xcfbz2 images (from version 3.71.02)
MediaWiki and thus Wikimedia Commons does not support colour indexing or later versions [5] supports XCF files that are compatible with GIMP 2.6 or 2.8, and when the color mode is RGB or grayscale
Corel Photo-Paint does not support layer mask or pathscan load multi-layer images, support some layer modes
Photopea Yesonline image editor which can open XCF files and convert to other formats including Photoshop's PSD
SDL2_image Yes [6] development library

Related Research Articles

<span class="mw-page-title-main">GIMP</span> Open source raster graphics editor

GNU Image Manipulation Program, commonly known by its acronym GIMP, is a free and open-source raster graphics editor used for image manipulation (retouching) and image editing, free-form drawing, transcoding between different image file formats, and more specialized tasks. It is extensible by means of plugins, and scriptable. It is not designed to be used for drawing, though some artists and creators have used it in this way.

SVG is an XML-based vector image format for defining two-dimensional graphics, having support for interactivity and animation. The SVG specification is an open standard developed by the World Wide Web Consortium since 1999.

<span class="mw-page-title-main">GEGL</span> Image processing programming library

The Generic Graphics Library (GEGL) is a programming library under development for image processing applications. It is mainly developed for GIMP in order to add support for higher bit depth images, and non-destructive editing. It was partially implemented in GIMP 2.6, with more added in 2.8, and is now a central part in 2.10. Many Filters are ready, but also much work in progress. Target is full support of all important filters in roadmap in Version 3.0. It is also used by GNOME's Photos and gedl.

PICT is a graphics file format introduced on the original Apple Macintosh computer as its standard metafile format. It allows the interchange of graphics, and some limited text support, between Mac applications, and was the native graphics format of QuickDraw.

A GIS file format is a standard for encoding geographical information into a computer file, as a specialized type of file format for use in geographic information systems (GIS) and other geospatial applications. Since the 1970s, dozens of formats have been created based on various data models for various purposes. They have been created by government mapping agencies, GIS software vendors, standards bodies such as the Open Geospatial Consortium, informal user communities, and even individual developers.

<span class="mw-page-title-main">Corel Photo-Paint</span> Raster graphics editing software

Corel Photo-Paint is a raster graphics editor developed and marketed by Corel since 1992. Corel markets the software for Windows and Mac OS operating systems, previously having marketed versions for Linux. Its primary market competitor is Adobe Photoshop.

<i>Tux Paint</i> Graphics software

Tux Paint is a free and open source raster graphics editor geared towards young children. The project was started in 2002 by Bill Kendrick who continues to maintain and improve it, with help from numerous volunteers. Tux Paint is seen by many as a free software alternative to Kid Pix, a similar proprietary educational software product.

<span class="mw-page-title-main">Krita</span> Digital painting and 2D animation software

Krita is a free and open-source raster graphics editor designed primarily for digital art and 2D animation. The software runs on Windows, macOS, Linux, Android, and ChromeOS, and features an OpenGL-accelerated canvas, colour management support, an advanced brush engine, non-destructive layers and masks, group-based layer management, vector artwork support, and switchable customisation profiles.

A number of vector graphics editors exist for various platforms. Potential users of these editors will make a comparison of vector graphics editors based on factors such as the availability for the user's platform, the software license, the feature set, the merits of the user interface (UI) and the focus of the program. Some programs are more suitable for artistic work while others are better for technical drawings. Another important factor is the application's support of various vector and bitmap image formats for import and export.

Raster graphics editors can be compared by many variables, including availability.

An image file format is a file format for a digital image. There are many formats that can be used, such as JPEG, PNG, and GIF. Most formats up until 2022 were for storing 2D images, not 3D ones. The data stored in an image file format may be compressed or uncompressed. If the data is compressed, it may be done so using lossy compression or lossless compression. For graphic design applications, vector formats are often used. Some image file formats support transparency.

<span class="mw-page-title-main">Seashore (software)</span> Raster graphics editor for macOS

Seashore is a free and open-source image editor for macOS, similar to Photoshop/GIMP, with a simpler Cocoa user interface. Seashore uses GIMP's native file format, XCF, and has support for a handful of other graphics file formats, including full support for TIFF, PNG, JPEG, JPEG2000, and HEIC and read-only support for BMP, PDF, SVG and GIF. Seashore offers fewer features than Photoshop/GIMP, but is intended to be easy-to-use and to run natively on macOS. It includes layers and alpha channel support, gradients and transparency effects, anti-aliased brushes, tablet support and plug-in filters.

XCF may refer to:

OpenRaster is a file format proposed for the common exchange of layered images between raster graphics editors. It is meant as a replacement for later versions of the Adobe PSD format. OpenRaster is still in development and so far is supported by a few programs. The default file extension for OpenRaster files is ".ora".

<span class="mw-page-title-main">Chasys Draw IES</span>

Chasys Draw IES is a suite of applications including a layer-based raster graphics editor with adjustment layers, linked layers, timeline and frame-based animation, icon editing, image stacking and comprehensive plug-in support, a fast multi-threaded image file converter and a fast image viewer, with RAW image support in all components. It supports the native file formats of several competitors including Adobe Photoshop, Affinity Photo, Corel Photo-Paint, GIMP, Krita, Paint.NET and PaintShop Pro, and the whole suite is designed to make effective use of multi-core processors, touch-screens and pen-input devices.

<span class="mw-page-title-main">WebP</span> Image file format

WebP is a raster graphics file format developed by Google intended as a replacement for JPEG, PNG, and GIF file formats. It supports both lossy and lossless compression, as well as animation and alpha transparency.

<span class="mw-page-title-main">MyPaint</span> Raster graphics editor

MyPaint is a free and open-source raster graphics editor for digital painting. It is available for Windows, macOS, and Unix-like operating systems.

<span class="mw-page-title-main">Photopea</span> Online photo editor

Photopea is a web-based photo and graphics editor. It is used for image editing, making illustrations, web design or converting between different image formats. Photopea is advertising-supported software. It is compatible with all modern web browsers, including Opera, Edge, Chrome, and Firefox. The app is compatible with raster and vector graphics, such as Photoshop's PSD as well as JPEG, PNG, DNG, GIF, SVG, PDF and other image file formats. While browser-based, Photopea stores all files locally, and does not upload any data to a server.

References

  1. "Partial Specification of the XCF File Format". 2006-07-11. Retrieved 2014-05-21. The name XCF honors GIMP's origin at the eXperimental Computing Facility of the University of California at Berkeley.
  2. 1 2 "About". Seashore. Retrieved 2015-01-03.
  3. 1 2 "Inkscape 0.44 Release Notes". The new XCF output extension exports all top-level elements (i.e. layers and objects directly under root) as PNGs and assembles them into an XCF for processing in GIMP.
  4. 1 2 "IrfanView formats". Irfanview.com. Retrieved 1 March 2014.
  5. 1 2 "Commons:File types - Wikimedia Commons". commons.wikimedia.org. Wikimedia Commons. Retrieved 23 June 2020.
  6. 1 2 "Source code for SDL's XCF Loader". hg.libsdl.org. Retrieved 2018-06-09.
  7. Neumann, Sven (2001-12-16). "Re: XCF support added to ImageMagick". gimp-developer (Mailing list).