HEIF to PGM: conversion guide

Source · HEIF
Target · PGM

Drop HEIF files here

or choose files from your device

Converter not available yet

This conversion needs a HEIF/HEVC codec that is not available in this browser engine yet.

  • In your browser
  • No upload
  • Private by design

What happens when you convert HEIF to PGM?

Multiple source images

HEIF can contain multiple image representations with different roles. These are not automatically a timed animation. Selecting an image, preserving a collection or creating several outputs needs explicit engine support; neither a first-image choice nor an all-images export is implemented.

Animation becomes a still

An animated HEIF has a timed sequence; PGM is a still-image destination in this workflow. A still export loses motion and timing. Frame choice, blending and disposal must be defined by the future engine; a first-frame export is not promised.

Grayscale output

PGM stores one grayscale sample per pixel, with no colour channels or alpha. Colour input becomes gray; brightness depends on the colour transform and transfer-function handling chosen by the future engine. Higher maxval can retain more gray levels, but does not retain chromatic information.

Lossless sample storage

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. PGM can store its supported image samples without lossy compression. This applies after rendering and sample conversion: it does not guarantee preservation of source precision, colour space or document structure, and cannot undo earlier losses.

HEIF

Source

HEIF

High Efficiency Image File Format

Compression: Depends on variantTransparency: YesMetadata: Exif, XMP, ICC, NCLX

An image container for individual pictures, collections and sequences. The codec inside determines compression.

Explore HEIF format →
PGM

Target

PGM

Portable Graymap

Compression: UncompressedTransparency: NoMetadata: Header, Comments

Portable Graymap: simple uncompressed raster samples for image-processing pipelines.

Explore PGM format →

Is HEIF → PGM right for you?

Good choice when

  • PGM fits your delivery use: Grayscale images & masks.
  • You can choose the source image or part needed for delivery.
  • You want a still illustration from an animated source.
  • Your processing pipeline explicitly needs grayscale samples.

Probably not when

  • You require a complete collection, page set or multipart round trip.
  • Motion, frame timing or loop behaviour must survive.
  • Colour distinctions carry information you need to retain.
  • You need the original HDR range for relighting or grading.

HEIF to PGM conversion details

Multiple source images
HEIF can contain multiple image representations with different roles. These are not automatically a timed animation. Selecting an image, preserving a collection or creating several outputs needs explicit engine support; neither a first-image choice nor an all-images export is implemented.
Animation becomes a still
An animated HEIF has a timed sequence; PGM is a still-image destination in this workflow. A still export loses motion and timing. Frame choice, blending and disposal must be defined by the future engine; a first-frame export is not promised.
Grayscale output
PGM stores one grayscale sample per pixel, with no colour channels or alpha. Colour input becomes gray; brightness depends on the colour transform and transfer-function handling chosen by the future engine. Higher maxval can retain more gray levels, but does not retain chromatic information.
HDR to SDR
If HDR source content is exported through an SDR representation, it needs a display rendering. Values outside the output range require tone mapping, scaling or clipping; brightness relationships can change. Tone mapping, exposure and colour handling depend on the future engine. Renaming or lossless compression cannot preserve out-of-range values.
Opaque output
If HEIF contains transparency, PGM cannot retain it as transparent output areas. Those pixels need compositing against an opaque background. Matte colour, alpha interpretation and edge treatment are future engine decisions; no background colour is selected yet.
Lossless sample storage
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. PGM can store its supported image samples without lossy compression. This applies after rendering and sample conversion: it does not guarantee preservation of source precision, colour space or document structure, and cannot undo earlier losses.
Sample precision & colour
Source and target sample models can differ in precision, channel layout, colour space and transfer function. Lossless compression only preserves the samples actually encoded; a precision reduction or colour conversion can already change them. The future engine defines numeric mapping, orientation and colour conversion; canonical depth facts are listed below where available.
Metadata & colour
Format support does not guarantee that an export preserves metadata or colour profiles. Retention and colour handling depend on the future converter; its engine is not implemented yet.
Compression
HEIF: Depends on variant → PGM: Uncompressed HEIF: HEIF defines the container. Compression may be lossy, lossless or uncompressed depending on its codec binding; one global quality or bit-depth value would be misleading. 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.
Transparency
HEIF: Yes → PGM: No
Animation
HEIF: Yes → PGM: No
Colour depth
HEIF: Codec/profile dependent → PGM: maxval up to 65535
HDR
HEIF: Codec/profile dependent
Multiple images
HEIF: Collections & sequences
Dimensions
Pixel dimensions, page geometry, rendering resolution, resizing and orientation need explicit converter policies. The future engine has not defined them yet.
Metadata
HEIF: Exif, XMP, ICC, NCLX → PGM: Header, Comments. Which fields are copied, rewritten or omitted will depend on the future engine; retention is not implemented yet.

Common questions

Will every source image be exported?

HEIF can contain multiple image representations with different roles. These are not automatically a timed animation. Selecting an image, preserving a collection or creating several outputs needs explicit engine support; neither a first-image choice nor an all-images export is implemented.

Will the output keep animation?

An animated HEIF has a timed sequence; PGM is a still-image destination in this workflow. A still export loses motion and timing. Frame choice, blending and disposal must be defined by the future engine; a first-frame export is not promised.

Will PGM keep the source colours?

PGM stores one grayscale sample per pixel, with no colour channels or alpha. Colour input becomes gray; brightness depends on the colour transform and transfer-function handling chosen by the future engine. Higher maxval can retain more gray levels, but does not retain chromatic information.

Are bit depth and colour values guaranteed to match?

Source and target sample models can differ in precision, channel layout, colour space and transfer function. Lossless compression only preserves the samples actually encoded; a precision reduction or colour conversion can already change them. The future engine defines numeric mapping, orientation and colour conversion; canonical depth facts are listed below where available.

Will metadata and colour profiles be retained?

HEIF: Exif, XMP, ICC, NCLX → PGM: Header, Comments. Which fields are copied, rewritten or omitted will depend on the future engine; retention is not implemented yet.