{"id":22437578,"url":"https://github.com/oelmekki/sl1toctb","last_synced_at":"2025-08-01T15:32:21.231Z","repository":{"id":45806505,"uuid":"466517758","full_name":"oelmekki/sl1toctb","owner":"oelmekki","description":"Convert prusaslicer's sl1 files to chitubox' ctb v4 ones.","archived":false,"fork":false,"pushed_at":"2023-07-08T09:16:48.000Z","size":87,"stargazers_count":10,"open_issues_count":1,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-07-08T09:25:19.089Z","etag":null,"topics":["3d-printing","convertion","ctb","msla","prusa-sl1","resin-3d-printers","resin-printer"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oelmekki.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}},"created_at":"2022-03-05T17:10:41.000Z","updated_at":"2023-05-21T17:12:19.000Z","dependencies_parsed_at":"2023-01-22T07:00:22.303Z","dependency_job_id":null,"html_url":"https://github.com/oelmekki/sl1toctb","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oelmekki%2Fsl1toctb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oelmekki%2Fsl1toctb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oelmekki%2Fsl1toctb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oelmekki%2Fsl1toctb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oelmekki","download_url":"https://codeload.github.com/oelmekki/sl1toctb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228389143,"owners_count":17912189,"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":["3d-printing","convertion","ctb","msla","prusa-sl1","resin-3d-printers","resin-printer"],"created_at":"2024-12-06T00:13:28.475Z","updated_at":"2024-12-06T00:13:29.057Z","avatar_url":"https://github.com/oelmekki.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sl1toctb - convert prusaslicer files to ctb v4 files\n\n\u003e Note to Github users : development is happening [on\n\u003e Gitlab](https://gitlab.com/oelmekki/sl1toctb), please go there for issues\n\u003e and pull requests.\n\nsl1toctb allows to convert files created by the prusaslicer 3d slicer into\nchitu's ctb file, version 4, to use with any 3d printer supporting those\nfiles.\n\nNote that it will output ctb file version 4, not any earlier.\n\n## Usage\n\n```\nsl1toctb [-h] [--help] \u003cinput sl1 file\u003e [\u003coutput ctb file\u003e] \nsl1toctb \u003c-i\u003e \u003cctb file\u003e \nsl1toctb \u003c-l|-s|-e\u003e \u003cdir\u003e \u003cctb file\u003e \n  \nConvert a sl1 file into a ctb v4 file. \nOutput file will have the same name as input file with the \n.sl1 extension replaced with .ctb, unless `output ctb file` is \nspecified. \n\nWhen `-i` option is provided, inspect the given file instead.\nThis works with both ctb files and sl1 files.\n\nWhen `-l` or `-s` option is provided, export preview image instead.\n`-l` exports the large preview, and `-s` exports the small preview.\nThe file will be saved in `dir` and will be named `preview.png`.\nOnly works for ctb files.\n\nWhen -e option is provided, export layers and their headers in `dir`.\nOnly works for ctb files.\n\nOptions: \n\n-i        : inspect file. (ctb or sl1) \n-l        : export large preview. (ctb only) \n-s        : export small preview. (ctb only) \n-e        : export layer data to \u003cdir\u003e (ctb only) \n-h|--help : show this help \n```\n\n## Build\n\nsl1toctb depends on:\n\n* libzip\n* zlib\n* pkg-config\n* make\n* gcc\n\nTo build and install the software:\n\n```\nmake\nmake install\n```\n\nIt will install program sl1toctb in /usr/local/bin by default.\n\nTo install in an other directory, pass the PREFIX value directly to make:\n\n```\nmake\nmake install PREFIX=/other/directory/\n```\n\n## Credits\n\n[UVtools](https://github.com/sn4k3/UVtools) has been instrumental to my\nunderstanding of the ctb file format, some parts of sl1toctb (notably the\nRLE encoding/decoding and the encrypting/decrypting algorithms) are\nbasically line by line translations from UVtools. Thanks a lot to them! If\nyou want a multi-format, many features, actively developed tool, they're the\nones.\n\nThanks a lot also to [catibo](https://github.com/cbiffle/catibo)'s\ndeveloper, who did the initial reverse engineering of the ctb format\n(version 2) and took the time to [properly document\nit](https://github.com/cbiffle/catibo/blob/master/doc/cbddlp-ctb.adoc).\nYou rock.\n\n## License\n\nsl1toctb contains a copy of [libspng](https://libspng.org/), which is dual\nlicensed as BSD-2-Clause AND libpng-2.0. The rest of the code is public\ndomain.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foelmekki%2Fsl1toctb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foelmekki%2Fsl1toctb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foelmekki%2Fsl1toctb/lists"}