{"id":18974532,"url":"https://github.com/m7a/bp-bin2bmp","last_synced_at":"2025-07-21T08:33:12.598Z","repository":{"id":164554573,"uuid":"324029353","full_name":"m7a/bp-bin2bmp","owner":"m7a","description":"Convert binary files to bitmaps for visual inspection","archived":false,"fork":false,"pushed_at":"2024-04-28T19:34:07.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-02T13:17:34.475Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/m7a.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-12-24T00:28:28.000Z","updated_at":"2024-04-28T19:34:10.000Z","dependencies_parsed_at":"2024-04-28T20:32:15.347Z","dependency_job_id":"e3f3de77-7254-4629-9f1d-66041f432380","html_url":"https://github.com/m7a/bp-bin2bmp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/m7a/bp-bin2bmp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m7a%2Fbp-bin2bmp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m7a%2Fbp-bin2bmp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m7a%2Fbp-bin2bmp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m7a%2Fbp-bin2bmp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m7a","download_url":"https://codeload.github.com/m7a/bp-bin2bmp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m7a%2Fbp-bin2bmp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266267290,"owners_count":23902334,"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","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-08T15:15:22.308Z","updated_at":"2025-07-21T08:33:12.580Z","avatar_url":"https://github.com/m7a.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\nsection: 11\nx-masysma-name: bin2bmp\ntitle: bin2bmp\ndate: 2020/12/23 00:18:14\nlang: en-US\nauthor: [\"Linux-Fan, Ma_Sys.ma (Ma_Sys.ma@web.de)\"]\nkeywords: [\"mdvl\", \"python\", \"script\", \"binary\", \"image\", \"bitmap\"]\nx-masysma-version: 1.0.0\nx-masysma-website: https://masysma.net/11/bin2bmp.xhtml\nx-masysma-repository: https://www.github.com/m7a/bp-bin2bmp\nx-masysma-owned: 1\nx-masysma-copyright: |\n  Copyright (c) 2020 Ma_Sys.ma.\n  For further info send an e-mail to Ma_Sys.ma@web.de.\n---\nName\n====\n\n`bin2bmp` -- Convert binary files to bitmaps for visual inspection\n\nSynopsis\n========\n\n\tbin2bmp \u003c-i INPUT-FILE\u003e [-w WIDTH] [-o OUTPUT-FILE] [-d DEPTH]\n\t\t[-v] [-r] [-t] [-T]\n\nDescription\n===========\n\nThis script converts arbitrary files to bitmap images by encoding the binary\ndata in the pixel values. This can be used for visual inspection of small and\nmedium-sized (up to a few megabytes) files. Additionally, it is possible to\nreverse the encoding by means of the `-r` option.\n\nTechnically, larger files will work, too. Although there does not seem to be\na good usecase for it, check section _Issues with Large Files_ if interested.\n\nOptions\n=======\n\n----  -----------  -------------------------------------------------\n`-i`  INPUT-FILE   Input filename (required)\n`-w`  WIDTH        Width of output image (default is 1200)\n`-o`  OUTPUT-FILE  Output filename (default is `input_filename.png`)\n`-d`  DEPTH        Set color depth (24 default, 32 also possible)\n`-v`               Display version and license information\n`-r`               Restore input file a to binary file\n`-t`               Write TGA instead of PNG images\n`-T`               Write TIFF instead of PNG images\n----  -----------  -------------------------------------------------\n\nExamples\n========\n\n## Display the source code as image\n\n\t./bin2bmp -i bin2bmp -w 60 -o bin2bmp.png\n\n![Result of invoking the example command](bin2bmp_att/src.png)\n\nBugs\n====\n\n## Issues with Large Files\n\n * The whole input and output file is loaded into memory.\n   Processing thus requires about two times the size of the input file of\n   memory + overhead (for instance: 4 GiB input file needs 10 GiB RAM).\n * The program is entirely single-threaded (hence slow)\n * Large files may exceed the formats' capabilities. Use option `-T` to produce\n   TIFF files which can accomodate for large bitmaps. In case other programs\n   reject opening the files, consider using a GIS (despite that not being\n   its original function, it works well as a viewer for extra-large TIFF files).\n * A better workaround for performance issues is to use `split` to make multiple\n   small input files from a single file and then process these files with\n   `bin2bmp` in parallel.\n\n## Other\n\n * Monochrome mode does not work\n\nSee Also\n========\n\n * An older version of the bin2bmp source code is available on Pastebin:\n   \u003chttps://pastebin.com/8W1jA1r9\u003e\n * [BinVis](https://binvis.io)\n   ([Source](https://github.com/cortesi/scurve/blob/master/binvis))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm7a%2Fbp-bin2bmp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm7a%2Fbp-bin2bmp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm7a%2Fbp-bin2bmp/lists"}