tileset objects now accept "jpg" or "jpeg" for jpeg format
This commit is contained in:
@@ -260,10 +260,10 @@ class TileSet(object):
|
|||||||
# Set the image format according to the options
|
# Set the image format according to the options
|
||||||
if self.options['imgformat'] == 'png':
|
if self.options['imgformat'] == 'png':
|
||||||
self.imgextension = 'png'
|
self.imgextension = 'png'
|
||||||
elif self.options['imgformat'] == 'jpeg':
|
elif self.options['imgformat'] in ('jpeg', 'jpg'):
|
||||||
self.imgextension = 'jpg'
|
self.imgextension = 'jpg'
|
||||||
else:
|
else:
|
||||||
raise ValueError("imgformat must be one of: 'png' or 'jpeg'")
|
raise ValueError("imgformat must be one of: 'png' or 'jpg'")
|
||||||
|
|
||||||
# This sets self.treedepth, self.xradius, and self.yradius
|
# This sets self.treedepth, self.xradius, and self.yradius
|
||||||
self._set_map_size()
|
self._set_map_size()
|
||||||
|
|||||||
Reference in New Issue
Block a user