Linux command
jpegtopnm 命令
文本
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Convert JPEG to PNM
jpegtopnm [image.jpg] > [image.pnm]
Convert with EXIF extraction
jpegtopnm -exif=[exif.dat] [image.jpg] > [image.pnm]
Repair corrupted JPEG
jpegtopnm -repair [corrupted.jpg] > [output.pnm]
Display comments from JPEG
jpegtopnm -comments [image.jpg] > /dev/null
说明
jpegtopnm converts JFIF/JPEG images to Netpbm PNM format. Outputs PPM for color images or PGM for grayscale. Part of the Netpbm toolkit, it uses the Independent JPEG Group's library for decoding.
参数
- -repair
- Attempt to salvage data from corrupted JPEG.
- -exif _file_
- Extract EXIF data to file.
- -comments
- Print comments from JPEG file.
- -dct _method_
- DCT method: int, fast, or float.
- -multiple
- Read multiple images from stream.
FAQ
What is the jpegtopnm command used for?
jpegtopnm converts JFIF/JPEG images to Netpbm PNM format. Outputs PPM for color images or PGM for grayscale. Part of the Netpbm toolkit, it uses the Independent JPEG Group's library for decoding.
How do I run a basic jpegtopnm example?
Run `jpegtopnm [image.jpg] > [image.pnm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -repair do in jpegtopnm?
Attempt to salvage data from corrupted JPEG.