{"id":18429466,"url":"https://github.com/jgneff/tofximage","last_synced_at":"2026-04-25T23:38:04.682Z","repository":{"id":155865761,"uuid":"193761290","full_name":"jgneff/tofximage","owner":"jgneff","description":"AWT to JavaFX Image Conversion Benchmarks","archived":false,"fork":false,"pushed_at":"2020-10-22T18:27:52.000Z","size":3554,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T22:59:22.720Z","etag":null,"topics":["awt","image","javafx","swing"],"latest_commit_sha":null,"homepage":"https://jgneff.github.io/tofximage/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jgneff.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":"2019-06-25T18:20:16.000Z","updated_at":"2022-02-09T17:53:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"da3d2794-efa6-4c0f-af36-5b287bd0100d","html_url":"https://github.com/jgneff/tofximage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jgneff/tofximage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgneff%2Ftofximage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgneff%2Ftofximage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgneff%2Ftofximage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgneff%2Ftofximage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jgneff","download_url":"https://codeload.github.com/jgneff/tofximage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgneff%2Ftofximage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32280981,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T18:29:39.964Z","status":"ssl_error","status_checked_at":"2026-04-25T18:29:32.149Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["awt","image","javafx","swing"],"created_at":"2024-11-06T05:17:19.668Z","updated_at":"2026-04-25T23:38:04.665Z","avatar_url":"https://github.com/jgneff.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"This project compares the performance of various methods for converting an AWT image to a JavaFX image, including the public utility method [`SwingFXUtils.toFXImage`](src/main/java/javafx/embed/swing/SwingFXUtils.java).\nAlthough some of the methods convert the alpha values incorrectly, they are included in the tests because their conversion is correct when the source AWT image contains no transparent pixels.\n\n## Results\n\nThe results of running the benchmarks on my systems are published on the [website associated with this repository](https://jgneff.github.io/tofximage/).\n\n## Licenses\n\nThis project is licensed under the [GNU General Public License v3.0](LICENSE) except for the following file, which is licensed by Oracle under the [GNU General Public License v2.0](src/main/java/javafx/embed/swing/LICENSE) with the [Classpath Exception](src/main/java/javafx/embed/swing/ADDITIONAL_LICENSE_INFO):\n\n* [SwingFXUtils.java](src/main/java/javafx/embed/swing/SwingFXUtils.java)\n\nThe contents of the [website](https://jgneff.github.io/tofximage/) and the file [doll-dancing.gif](src/main/resources/doll-dancing.gif) are licensed under the [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/).\nThe website style is based on [Water.css](https://github.com/kognise/water.css).\n\n## Building\n\nThis is a Maven project that depends on the [Java Microbenchmark Harness](https://openjdk.java.net/projects/code-tools/jmh/).\nYou can build and package the application as the file *target/benchmarks.jar* with the commands:\n\n```console\n$ export JAVA_HOME=$HOME/opt/jdk-14.0.1\n$ mvn package\n```\n\n## Running\n\nRun a quick test with a command like the following:\n\n```ShellSession\n$ java -Djava.library.path=$HOME/lib/javafx-sdk-15/lib \\\n    -jar target/benchmarks.jar -f 1 -i 1 -wi 1\n```\n\nRun the benchmarks with their default options for a more thorough test:\n\n```ShellSession\n$ java -Djava.library.path=$HOME/lib/javafx-sdk-15/lib \\\n    -jar target/benchmarks.jar\n```\n\nThe `-h` option prints a description of all benchmark command options:\n\n```ShellSession\n$ java -jar target/benchmarks.jar -h\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgneff%2Ftofximage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjgneff%2Ftofximage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgneff%2Ftofximage/lists"}