Skip to main content

roboflex.util.jpeg

Roboflex support for jpeg compression to file and memory, and jpeg decompression from memory.

Useful for compressing images over slow transports (wifi, etc).

System Dependencies

None! We build jpeg-compression from source...

pip install

pip install roboflex.util.jpeg

Import

import roboflex.util.jpeg as ruj

Nodes

There are two complementary nodes: JPEGCompressor, which can turn rgb tensors into jpegs in memory, and JPEGDecompressor, which does the opposite. Useful either for writing rgb tensors to files, or compressing them (NOTE jpeg is lossy).

# all parameters are optional
c = ruj.JPEGCompressor(

    # in the incoming message, where to find the rgb tensor
    image_key = "rgb",

    # in the outgoing message, where to place the jpeg data
    output_key = "jpeg", 

    # If this is provided, will ALSO write jpeg files with this 
    # prefix, with a variation of the date and time as the suffix.
    filename_prefix = "",

    # name of the node
    name = "JPEGCompressor",

    # prints internal info
    debug = False,
)

... and ...

c = ruj.JPEGDecompressor(

    # in the incoming message, where to find the jpeg data as a blob
    input_key = "jpeg",

    # in the outgoing message, where to place the rgb data as a tensor
    output_key = "rgb", 

    # name of the node
    name = "JPEGDecompressor",

    # prints internal info
    debug = False,
)

Metadata

Release files for roboflex.util.jpeg 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for roboflex.util.jpeg 0.1.8
File Size Uploaded Provenance Actions
roboflex_util_jpeg-0.1.8.tar.gz 8.4 kB Without provenance Details for roboflex_util_jpeg-0.1.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for roboflex.util.jpeg 0.1.8
File Interpreter ABI Platform Actions
roboflex_util_jpeg-0.1.8-cp311-cp311-macosx_15_0_arm64.whl CPython 3.11 CPython 3.11 macOS 15.0+ ARM64 Details for roboflex_util_jpeg-0.1.8-cp311-cp311-macosx_15_0_arm64.whl

Total release size: 269.3 kB

Release files / roboflex_util_jpeg-0.1.8.tar.gz

Download URL roboflex_util_jpeg-0.1.8.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a654eb1ed16640a2d82499bf5cd838d61c759ccef544febfe457eb2be3f37b73
BLAKE2b-256 checksum
How to use checksums
25cc3b310a498fbe92361608fcdf115257883b46fbbde62c2d7d2aa7e3a149b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.5

Release files / roboflex_util_jpeg-0.1.8-cp311-cp311-macosx_15_0_arm64.whl

Download URL roboflex_util_jpeg-0.1.8-cp311-cp311-macosx_15_0_arm64.whl
Size 260.9 kB
Tags CPython 3.11 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
a77bc556f23e055e8ad666155366147e30c29d4b49d170e77f16c296696145d7
BLAKE2b-256 checksum
How to use checksums
1b3d50a0b728551fc87e729d35be2585f1f7578562987704026390d8f2dac331
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.5

Security for roboflex.util.jpeg 0.1.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page