{"id":21274044,"url":"https://github.com/flexrobotics/roboflex_util_png","last_synced_at":"2025-08-18T18:08:59.591Z","repository":{"id":201796984,"uuid":"707418706","full_name":"flexrobotics/roboflex_util_png","owner":"flexrobotics","description":"Roboflex in-memory compression of rgb images to and from pngs.","archived":false,"fork":false,"pushed_at":"2023-11-03T23:59:38.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-29T21:45:23.382Z","etag":null,"topics":["png","roboflex"],"latest_commit_sha":null,"homepage":"https://github.com/flexrobotics/roboflex_util_png","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flexrobotics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-19T21:24:29.000Z","updated_at":"2023-11-01T00:47:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"cde42880-93e3-48a6-9cb0-7814e13d1e8a","html_url":"https://github.com/flexrobotics/roboflex_util_png","commit_stats":null,"previous_names":["flexrobotics/roboflex_util_png"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/flexrobotics/roboflex_util_png","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexrobotics%2Froboflex_util_png","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexrobotics%2Froboflex_util_png/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexrobotics%2Froboflex_util_png/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexrobotics%2Froboflex_util_png/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flexrobotics","download_url":"https://codeload.github.com/flexrobotics/roboflex_util_png/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexrobotics%2Froboflex_util_png/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271035818,"owners_count":24688492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["png","roboflex"],"created_at":"2024-11-21T09:18:41.237Z","updated_at":"2025-08-18T18:08:59.559Z","avatar_url":"https://github.com/flexrobotics.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# roboflex.util.png\n\nRoboflex support for png compression to file and memory, and png decompression from memory.\n\nUseful for compressing images over slow transports (wifi, etc).\n\n## System Dependencies\n\n    None! We build lodepng from source...\n\n## pip install\n\n    pip install roboflex.util.png\n\n## Import\n\n    import roboflex.util.png as rup\n\n## Nodes\n\nThere are two complementary nodes: `PNGCompressor`, which can turn rgb tensors into pngs in memory, and `PNGDecompressor`, which does the opposite. Useful either for writing rgb tensors to files, or compressing them.\n\n    # all parameters are optional\n    c = rup.PNGCompressor(\n\n        # in the incoming message, where to find the rgb tensor\n        image_key = \"rgb\",\n\n        # in the outgoing message, where to place the jpeg data\n        output_key = \"png\", \n\n        # If this is provided, will ALSO write jpeg files with this \n        # prefix, with a variation of the date and time as the suffix.\n        filename_prefix = \"\",\n\n        # name of the node\n        name = \"PNGCompressor\",\n\n        # prints internal info\n        debug = False,\n    )\n\n... and ...\n\n    c = rup.PNGDecompressor(\n\n        # in the incoming message, where to find the png data as a blob\n        input_key = \"png\",\n\n        # in the outgoing message, where to place the rgb data as a tensor\n        output_key = \"rgb\", \n\n        # name of the node\n        name = \"PNGDecompressor\",\n\n        # prints internal info\n        debug = False,\n    )\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexrobotics%2Froboflex_util_png","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflexrobotics%2Froboflex_util_png","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexrobotics%2Froboflex_util_png/lists"}