The first supported Netpbm image is decoded; concatenated images are not exported as a sequence.
GIF palette & alpha limits
GIF output uses at most 256 colours per frame. Palette quantisation can change colours and edges. Alpha below 50% becomes transparent; other pixels become opaque. Lossless GIF compression does not reverse this reduction.
No new colour information
The source stores grayscale or bitonal values. A colour-capable GIF can represent these tones, but conversion cannot infer original scene colours or recover missing intermediate shades. Colourisation would be a separate image-editing operation.
GIF fits your delivery use: Simple palette animations.
You can choose the source image or part needed for delivery.
A limited palette and binary transparency are acceptable.
You need the existing gray or binary image in a compatible delivery format.
Probably not when
You require a complete collection, page set or multipart round trip.
You need smooth photographic gradients or partial transparency.
You expect automatic colourisation or reconstruction of absent tones.
You require identical samples without a defined colour and precision policy.
PGM to GIF conversion details
Multiple source images
The first supported Netpbm image is decoded; concatenated images are not exported as a sequence.
GIF palette & alpha limits
GIF output uses at most 256 colours per frame. Palette quantisation can change colours and edges. Alpha below 50% becomes transparent; other pixels become opaque. Lossless GIF compression does not reverse this reduction.
No new colour information
The source stores grayscale or bitonal values. A colour-capable GIF can represent these tones, but conversion cannot infer original scene colours or recover missing intermediate shades. Colourisation would be a separate image-editing operation.
Sample precision & colour
Rendered SDR output uses 8-bit display pixels; source precision and original ICC profiles are not retained. Colour handling depends on the decoder and supported source variant.
Metadata & colour
This output writer does not preserve source EXIF, GPS or XMP metadata blocks. Original ICC profiles are not copied. Rendered SDR output uses 8-bit display pixels; source precision and original ICC profiles are not retained. Colour handling depends on the decoder and supported source variant.
Compression
PGM: Uncompressed → GIF: Lossless PGM: Netpbm stores these samples without compression. Reducing colour, thresholding or changing maxval can still lose information before storage; text and binary representations change the layout, not its image meaning. GIF: LZW compression is lossless for the stored palette indices. Colour reduction before encoding is not lossless for an arbitrary RGB source.
Transparency
PGM: No → GIF: Yes
Animation
PGM: No → GIF: Yes
Colour depth
PGM: maxval up to 65535 → GIF: Up to 256 colours/table
Dimensions
Conversion keeps the decoded image dimensions unless you edit or resize it. Orientation is applied by supported decoders. ICO fits the image into one selected square size; PDF page layout and rendering DPI are configurable. Device, memory and codec limits still apply.
Metadata
This output writer does not preserve source EXIF, GPS or XMP metadata blocks. Original ICC profiles are not copied.
Common questions
Will every source image be exported?+
The first supported Netpbm image is decoded; concatenated images are not exported as a sequence.
Why can GIF lose colours despite lossless compression?+
GIF output uses at most 256 colours per frame. Palette quantisation can change colours and edges. Alpha below 50% becomes transparent; other pixels become opaque. Lossless GIF compression does not reverse this reduction.
Can conversion restore colour or missing shades?+
The source stores grayscale or bitonal values. A colour-capable GIF can represent these tones, but conversion cannot infer original scene colours or recover missing intermediate shades. Colourisation would be a separate image-editing operation.
Are bit depth and colour values guaranteed to match?+
Rendered SDR output uses 8-bit display pixels; source precision and original ICC profiles are not retained. Colour handling depends on the decoder and supported source variant.
Will metadata and colour profiles be retained?+
This output writer does not preserve source EXIF, GPS or XMP metadata blocks. Original ICC profiles are not copied. Rendered SDR output uses 8-bit display pixels; source precision and original ICC profiles are not retained. Colour handling depends on the decoder and supported source variant.