{"id":19756765,"url":"https://github.com/thebracket/png2rex_rs","last_synced_at":"2025-09-09T22:40:41.980Z","repository":{"id":114154085,"uuid":"342887946","full_name":"thebracket/png2rex_rs","owner":"thebracket","description":"Utility for converting PNG files to REX Paint .xp files.","archived":false,"fork":false,"pushed_at":"2021-02-27T17:02:27.000Z","size":22,"stargazers_count":11,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-30T12:31:46.327Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","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/thebracket.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,"zenodo":null}},"created_at":"2021-02-27T15:21:26.000Z","updated_at":"2025-02-03T23:12:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"ce37778e-619f-4ae3-8283-8444fd10049d","html_url":"https://github.com/thebracket/png2rex_rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thebracket/png2rex_rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebracket%2Fpng2rex_rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebracket%2Fpng2rex_rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebracket%2Fpng2rex_rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebracket%2Fpng2rex_rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thebracket","download_url":"https://codeload.github.com/thebracket/png2rex_rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebracket%2Fpng2rex_rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274374563,"owners_count":25273824,"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-09-09T02:00:10.223Z","response_time":80,"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":[],"created_at":"2024-11-12T03:16:50.740Z","updated_at":"2025-09-09T22:40:41.971Z","avatar_url":"https://github.com/thebracket.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# png2rex_rs - a utility for converting PNG files into REXPaint files\n\nThis is a Rust port of [png2rex](https://github.com/thebracket/png2rex).\n\n## Building png2rex\n\n1. Clone the repository: `git clone https://github.com/thebracket/png2rex_rs.git`\n2. Enter the `png2rex_rs` directory: `cd png2rex_rs`\n3. Build with `cargo build --release`\n4. `png2rex` (`.exe` on Windows) is now in your target/release directory.\n\n## Using png2rex\n\nWith the `exe` file, it's as simple as: `png2rex (input png) (output xp)`. For example, `png2rex resources/kitty.png kitty.xp`. If you want to run it with Cargo, you can use `cargo run -- resources/kitty.png kitty.xp`.\n\n### Optional extras\n\nYou can provide additional CLI arguments to perform some image operations en route:\n\n* `--flipv` flips the image vertically.\n* `--fliph` flips the image horizontally.\n* `--resize 64 32` will resize the image to be 64 pixels wide, 32 pixels tall.\n\nThese options can be combined and can be in any order. For example:\n\n```\ncargo run -- --fliph .\\resources\\kitty.png --flipv C:\\Users\\herbe\\Downloads\\REXPaint-v1.04\\images\\kitty.xp --resize 64 64\n```\n\nHas the same effect as:\n\n```\ncargo run -- .\\resources\\kitty.png C:\\Users\\herbe\\Downloads\\REXPaint-v1.04\\images\\kitty.xp --resize 64 64 --fliph --flipv \n```\n\n## Results\n\n**Original Kitty PNG**:\n\n![Original PNG of a kitty](https://raw.githubusercontent.com/thebracket/png2rex/master/testimage/kitty.png)\n\n**REX Paint result**:\n\n![REXPaint output](https://raw.githubusercontent.com/thebracket/png2rex/master/testimage/Kitty-REX.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthebracket%2Fpng2rex_rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthebracket%2Fpng2rex_rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthebracket%2Fpng2rex_rs/lists"}