Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oelmekki/sl1toctb
Convert prusaslicer's sl1 files to chitubox' ctb v4 ones.
https://github.com/oelmekki/sl1toctb
3d-printing convertion ctb msla prusa-sl1 resin-3d-printers resin-printer
Last synced: 17 days ago
JSON representation
Convert prusaslicer's sl1 files to chitubox' ctb v4 ones.
- Host: GitHub
- URL: https://github.com/oelmekki/sl1toctb
- Owner: oelmekki
- License: other
- Created: 2022-03-05T17:10:41.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-08T09:16:48.000Z (over 1 year ago)
- Last Synced: 2023-07-08T09:25:19.089Z (over 1 year ago)
- Topics: 3d-printing, convertion, ctb, msla, prusa-sl1, resin-3d-printers, resin-printer
- Language: C
- Homepage:
- Size: 85 KB
- Stars: 10
- Watchers: 3
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sl1toctb - convert prusaslicer files to ctb v4 files
> Note to Github users : development is happening [on
> Gitlab](https://gitlab.com/oelmekki/sl1toctb), please go there for issues
> and pull requests.sl1toctb allows to convert files created by the prusaslicer 3d slicer into
chitu's ctb file, version 4, to use with any 3d printer supporting those
files.Note that it will output ctb file version 4, not any earlier.
## Usage
```
sl1toctb [-h] [--help] []
sl1toctb <-i>
sl1toctb <-l|-s|-e>
Convert a sl1 file into a ctb v4 file.
Output file will have the same name as input file with the
.sl1 extension replaced with .ctb, unless `output ctb file` is
specified.When `-i` option is provided, inspect the given file instead.
This works with both ctb files and sl1 files.When `-l` or `-s` option is provided, export preview image instead.
`-l` exports the large preview, and `-s` exports the small preview.
The file will be saved in `dir` and will be named `preview.png`.
Only works for ctb files.When -e option is provided, export layers and their headers in `dir`.
Only works for ctb files.Options:
-i : inspect file. (ctb or sl1)
-l : export large preview. (ctb only)
-s : export small preview. (ctb only)
-e : export layer data to (ctb only)
-h|--help : show this help
```## Build
sl1toctb depends on:
* libzip
* zlib
* pkg-config
* make
* gccTo build and install the software:
```
make
make install
```It will install program sl1toctb in /usr/local/bin by default.
To install in an other directory, pass the PREFIX value directly to make:
```
make
make install PREFIX=/other/directory/
```## Credits
[UVtools](https://github.com/sn4k3/UVtools) has been instrumental to my
understanding of the ctb file format, some parts of sl1toctb (notably the
RLE encoding/decoding and the encrypting/decrypting algorithms) are
basically line by line translations from UVtools. Thanks a lot to them! If
you want a multi-format, many features, actively developed tool, they're the
ones.Thanks a lot also to [catibo](https://github.com/cbiffle/catibo)'s
developer, who did the initial reverse engineering of the ctb format
(version 2) and took the time to [properly document
it](https://github.com/cbiffle/catibo/blob/master/doc/cbddlp-ctb.adoc).
You rock.## License
sl1toctb contains a copy of [libspng](https://libspng.org/), which is dual
licensed as BSD-2-Clause AND libpng-2.0. The rest of the code is public
domain.