---
name: "hdf8to24"
section: "1"
platform: "linux"
package: "hdf4-tools"
version: "4.3.0-1+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/hdf8to24"
---

# hdf8to24(1)

convert an 8-bit image in an HDF file to a 24-bit image in another HDF file

## NAME

hdf8to24 - convert an 8-bit image in an HDF file to a 24-bit image in another HDF file

## SYNOPSIS

**hdf8to24** \[**-s***scale*\] \[**-j***quality*\] *input\_hdf\_file* *output\_hdf\_file*

## DESCRIPTION

**hdf8to24** converts an 8-bit image in an HDF file into a 24-bit image in an other HDF file.

## OPTIONS

- **-s***scale*

  set scale for magnifying the 8-bit input file. scales between 0 and 1 shrink the image, scales greater than 1 expand the image.  Defaults to 1

- **-j***quality*

  use JPEG compression to store the 24-bit image Defaults to no compression, or quality level 75, if no quality is specified.

## SEE ALSO

[**hdf**(5)](/hdf/5.md), [**hdf24to8**(1)](/hdf24to8/1.md)
