THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
module documentation
Read supported raster headers without decoding image pixels.
| Function | _jpeg |
Read dimensions from a structurally complete JPEG frame segment. |
| Function | _probe |
Read the dimensions stored in a BMP information header. |
| Function | _probe |
Read the dimensions stored in a GIF logical screen descriptor. |
| Function | _probe |
Walk the JPEG segments until a start-of-frame marker is found. |
| Function | _probe |
Read the dimensions stored in a PNG IHDR chunk. |
| Function | _probe |
Read the dimensions of the lossy, lossless or extended WebP bitstream. |
| Function | probe |
Identify a raster image and read its dimensions from the header. |
| Constant | _BMP |
DIB header size identifying unsigned sixteen-bit CORE dimensions. |
| Constant | _BMP |
Bmp header value used by image_probe. |
| Constant | _BMP |
Minimum DIB header size carrying thirty-two-bit dimensions. |
| Constant | _BMP |
Bmp signature value used by image_probe. |
| Constant | _GIF |
Gif header value used by image_probe. |
| Constant | _GIF |
Gif signatures definitions used by image_probe. |
| Constant | _JPEG |
Byte introducing every JPEG marker. |
| Constant | _JPEG |
Length-field bytes included in every variable-length JPEG segment. |
| Constant | _JPEG |
Jpeg signature value used by image_probe. |
| Constant | _JPEG |
SOF segment bytes preceding the three-byte component entries. |
| Constant | _PNG |
Minimum header length required by each probe before unpacking. |
| Constant | _PNG |
Magic numbers identifying every supported raster format. |
| Constant | _PROBES |
Probes are ordered by signature cost; each one rejects foreign formats first. |
| Constant | _SOF |
JPEG start-of-frame markers; their payload carries the image dimensions. |
| Constant | _STANDALONE |
JPEG markers that carry no payload and are skipped two bytes at a time. |
| Constant | _WEBP |
Minimum prefix carrying VP8 or VP8X dimensions. |
| Constant | _WEBP |
Bytes required in the VP8 or VP8X dimension prefix. |
| Constant | _WEBP |
Minimum RIFF and first-chunk headers needed to identify WebP storage. |
| Constant | _WEBP |
Minimum prefix carrying the VP8L signature and packed dimensions. |
| Constant | _WEBP |
Signature byte that must begin a lossless WebP bitstream. |
| Constant | _WEBP |
Bytes required in the VP8L signature and dimension prefix. |
| Constant | _WEBP |
Mask isolating the 14-bit dimensions stored in WebP bitstreams. |
def _jpeg_frame(data:
bytes, index: int, segment_size: int) -> tuple[ str, int, int] | None:
(source)
¶
Read dimensions from a structurally complete JPEG frame segment.
| Parameters | |
data:bytes | Header content containing the complete segment. |
index:int | Offset of the segment marker. |
segmentint | Segment length, including its two-byte length field. |
| Returns | |
tuple[str, int, int] | None | JPEG format and dimensions, or None for an invalid component layout. |
Identify a raster image and read its dimensions from the header.
| Parameters | |
data:bytes | Raw image content. |
| Returns | |
tuple[str, int, int] | None | Format name with width and height, or None when the content is not a supported header or either dimension is zero or negative. Inspect only format metadata; do not decode pixels or verify compressed content. |
Probes are ordered by signature cost; each one rejects foreign formats first.
| Value |
|
JPEG start-of-frame markers; their payload carries the image dimensions.
| Value |
|