slic3r / Slic3r

Open Source toolpath generator for 3D printers
https://slic3r.org/
GNU Affero General Public License v3.0
3.32k stars 1.29k forks source link

Compression support in AMF reader #3167

Open ianrrees opened 8 years ago

ianrrees commented 8 years ago

Would be great if Slic3r supported reading compressed AMF files! I'm working [slowly] towards AMF export in FreeCAD, and would like to export compressed AMFs by default when that functionality is released.

Compression in v1.1 of the AMF standard works similar to what is described in draft 0.47 - compressedFile.amf will contain a zip record for compressedFile.amf (the text XML - same name as compressed file), and possibly other files too as meta information. v1.1 additionally says files that don't begin with an <?xml> tag are to be interpreted as "binary xml" files, which I take to mean zip compressed.

GilesBathgate commented 8 years ago

I would also like support for compressed AMF files. I have written the code to export compressed AMF from my project (RapCAD) but I am holding off committing it since I use amf as my preferred exchange format between RapCAD and Slic3r.