¿Qué es el formato de archivo QOI?
Un archivo .qoi es una Quite OK Image, un formato de imagen ráster sin pérdida creado por Dominic Szablewski y lanzado el 24 de noviembre de 2021. Fue diseñado para ser mucho más simple y rápido que .png produciendo archivos de aproximadamente el mismo tamaño. La especificación completa cabe en una sola página, y el codificador y decodificador de referencia tienen alrededor de 300 líneas de C.
Internamente, un archivo .qoi comienza con un encabezado de 14 bytes que inicia con el marcador ASCII qoif, seguido del ancho y alto de la imagen, un byte de canales (3 para RGB o 4 para RGBA) y un byte de espacio de color. Los píxeles que siguen se comprimen con codificación por longitud de racha (run-length encoding), una pequeña caché de colores vistos recientemente y codificación delta contra el píxel anterior. El formato es totalmente sin pérdida, admite alfa de 8 bits y fue puesto en el dominio público bajo CC0.
Seguridad y protección
RIESGO: LOWQOI is a plain image format with no scripting, macros, or embedded executable content, so a .qoi file cannot run code on its own. It also has no checksum, so a corrupted file may simply fail to decode. As with any image type, the only real risk comes from bugs in a specific decoder, so keep your viewer up to date.
Detalles del formato
en pocas palabrasProgramas que abren archivos QOI
.qoi files natively in GIMP 3.0 or later and export them to other formats. .qoi images after installing the IrfanView plugin pack, then re-save to .png or .jpg. .qoi files from the command line with magick input.qoi output.png (build 7.1.0-20 or later). .qoi file directly to view it, browse folders of them, and batch-convert to other image formats. .qoi thumbnails and previews inside Windows File Explorer. .qoi and .png with the official command-line tool qoiconv input.qoi output.png. .qoi files in Finder with a spacebar QuickLook press after installing the plugin. .qoi files with ffmpeg -i input.qoi output.png (version 5.1 or later). .qoi files from the shell with magick input.qoi output.png. qoiconv input.qoi output.png for lossless PNG conversion. Detalles técnicos
especificación profunda| Encoding | Byte-aligned tagged chunks; no bit-packing across byte boundaries |
| Byte order | Big-endian (width and height stored as 32-bit big-endian integers) |
| Container | 14-byte header, variable-length data chunks, 8-byte end marker (seven 0x00 bytes followed by 0x01) |
| Compression | Lossless. Combines run-length encoding, a 64-entry running hash index of previously seen pixels, and small per-channel delta coding |
| Typical size | Comparable to PNG for the same RGB or RGBA image |
| Structure | Header holds magic 'qoif', width (u32 BE), height (u32 BE), channels (1 byte: 3=RGB, 4=RGBA), and colorspace (1 byte: 0=sRGB with linear alpha, 1=all linear). Pixels are encoded left to right, top to bottom using five chunk types: QOI_OP_RUN, QOI_OP_INDEX, QOI_OP_DIFF, QOI_OP_LUMA, and QOI_OP_RGB / QOI_OP_RGBA. The index uses the hash (r*3 + g*5 + b*7 + a*11) % 64. |
| Integrity | None. There is no CRC or checksum; a fixed 8-byte end marker signals the end of the stream |
| Color depth | 24-bit RGB or 32-bit RGBA, 8 bits per channel |
| Colorspace | sRGB with linear alpha, or all channels linear (informational flag only; does not affect decoding) |
| Platforms | Windows, macOS, Linux |
| Initial Release Full | November 24, 2021 (specification finalized as version 1.0 on January 5, 2022) |
| Reference Implementation | Single-file MIT-licensed C/C++ library qoi.h (about 300 lines). The specification itself is public domain (CC0). |
| Notes | Designed to be far faster to encode and decode than PNG (roughly 20x-50x faster encoding, 3x-4x faster decoding) while keeping file sizes similar. No animation, no tiling, no interlacing, and a maximum of 8 bits per channel. GameMaker uses QOI (with bzip2) as its default texture storage format since 2022.1. |
| Lanzado | 2021-11-24 |
| Última versión | 1.0 (2022-01-05) |
| Estándar abierto | Sí · libre de regalías |
| Especificación | qoiformat.org |
Conversiones de QOI
Preguntas y respuestas de la comunidad
preguntado por usuariosAún no hay preguntas; sea el primero en preguntar sobre los archivos QOI.
Preguntas frecuentes
¿Cómo abro un archivo QOI?
.qoi directamente en el Explorador de archivos.¿Cómo convierto un archivo QOI a PNG?
qoiconv input.qoi output.png, o use ImageMagick con magick input.qoi output.png. Ambos son sin pérdida, por lo que el PNG contendrá exactamente los mismos píxeles.¿Es QOI mejor que PNG?
¿Es QOI sin pérdida?
¿Admite QOI transparencia?
¿Son seguros de abrir los archivos QOI?
.qoi contiene solo datos de imagen sin scripts ni programas incrustados, por lo que abrir uno en un visor actual conlleva poco riesgo.