Generating preview images fails #678
-
Platform: Ubuntu 22.04 LTS I can't seem to convert files to image, same error for .sl1, .pwma, or .ctb, here with a .sl1 file:
The same happens when I try .jpg, .tif as extensions. I was able to run
and generated valid .sl1 file. Is there a solution or what I am missing? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You can't convert a file format to Image, as error say the convert/encoder for image file format is not implemented since it makes no sense to convert a file format to single image. If you want to export images from file formats you must use Operations with the command run and pass a prebuilt .uvtop that can be generated from the UI, see this To generate the .uvtop follow: As easier alternative use the PS: TIF format was drop to ease dependencies and reduce library size |
Beta Was this translation helpful? Give feedback.
-
Thanks for the explanation. I recommend
I'm currently coding my own tool in Python to handle various formats, and UVtools with its git repo here has been an immense valuable resource to implement the support for various file formats - thanks for that. Btw, a quick way to generate preview images from layer images is to resize x:1, y:0.7 and stack those images from bottom to top, giving pseudo perspective, this saves to render voxels in 3d space. I use this method to create preview thumbnails for Nautilus File Browser (the default file browser under Gnome), here .sl1, .pwma and .ctb: I just started to use UVtools on the command-line, and I haven't explored the Python bindings yet. I really struggled to get UVtools working from sources, but now used the .zip approach as shortcut. Thanks for maintaining this wealth of code :-) |
Beta Was this translation helpful? Give feedback.
You can't convert a file format to Image, as error say the convert/encoder for image file format is not implemented since it makes no sense to convert a file format to single image.
If you want to export images from file formats you must use Operations with the command run and pass a prebuilt .uvtop that can be generated from the UI, see this
To generate the .uvtop follow:
As easier alternative use the
extract
command which extracts everything from file format: layers, thumbnails, metadataPS: TIF format was drop to ease dependencies and reduce library size