mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 16:39:33 +01:00
Set default encoding to R8G8B8 RAW
This the most trivial RGB encoding the encoder supports. Setting it prevents a crash related to BW8 only supporting RAW encoding.
This commit is contained in:
parent
759b0a188f
commit
5b79bc6fb7
1 changed files with 2 additions and 2 deletions
4
init.lua
4
init.lua
|
@ -340,8 +340,8 @@ end
|
|||
function image:save(filename, properties)
|
||||
local properties = properties or {}
|
||||
properties.colors = properties.colors or "RGB"
|
||||
properties.compression = properties.compression or "RLE"
|
||||
properties.pixel_depth = properties.pixel_depth or 16
|
||||
properties.compression = properties.compression or "RAW"
|
||||
properties.pixel_depth = properties.pixel_depth or 24
|
||||
|
||||
self:encode(properties)
|
||||
|
||||
|
|
Loading…
Reference in a new issue