---
name: "im_char2Compression"
section: "3"
platform: "linux"
package: "libvips-dev"
version: "7.20.7-1+b3"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/im_printdesc"
---

# im\_char2Compression(3)

decode image descriptors

Part of [im\_printdesc(3)](/im_printdesc/3.md).

## NAME

im\_printdesc, im\_Type2char, im\_char2Type, im\_BandFmt2char, im\_char2BandFmt, im\_Coding2char, im\_char2Coding, im\_Compression2char, im\_char2Compression - decode image descriptors

## SYNOPSIS

**#include \<vips/vips.h\>**

**void im\_printdesc(image)**\
 **IMAGE \*image;**

char \*im\_Type2char( ty );\
 int ty;

char \*im\_BandFmt2char( bf );\
 int bf;

char \*im\_Coding2char( cod );\
 int cod;

char \*im\_Compression2char( comp );\
 int comp;

int im\_char2Type( str );\
 char \*str;

int im\_char2BandFmt( str );\
 char \*str;

int im\_char2Coding( str );\
 char \*str;

int im\_char2Compression( str );\
 char \*str;

## DESCRIPTION

**[im\_printdesc(3)](/im_printdesc/3.md)** prints the image descriptor pointed by image.

**[im\_printdesc(3)](/im_printdesc/3.md)** exports the functions it uses to code and uncode the type fields in image headers. The functions which return char \* return a static string of the form "\<bad Type\>" on error,

The functions which return int return -1 on error,  setting  **[im\_error(3)](/im_error/3.md).**

## SEE ALSO

[header(1)](/header/1.md).

## COPYRIGHT

N. Dessipris

## AUTHOR

N. Dessipris - 11/04/1990
