Skip to content

Commit 513b3c5

Browse files
committed
Improve compatibility for more recent magick versions
1 parent 53ee9b1 commit 513b3c5

8 files changed

Lines changed: 6 additions & 3 deletions

File tree

rct-graphics-helper/builders/scene_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def create_camera(self, context):
9898
def create_main_light(self, context):
9999
lamp_data = self.create_lamp_data(context, "MainLight", "SUN")
100100

101-
lamp_data.energy = 1.2
101+
lamp_data.energy = 1.5
102102
lamp_data.use_specular = True
103103
lamp_data.use_diffuse = True
104104
lamp_data.shadow_method = "RAY_SHADOW"

rct-graphics-helper/magick_command.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def write_to_cache(self, id, delete_previous=False, next_file=""):
2626
# Quantizes the image using a palette
2727
def quantize(self, palette, amount):
2828
self.full_command += " -dither FloydSteinberg -define dither:diffusion-amount=" + str(amount) + "% -remap " + \
29-
self.__stringify_input(palette) + " -colorspace sRGB"
29+
self.__stringify_input(palette) + " -depth 16"
3030

3131
# Trims the image to the smallest possible size and outputs the offset difference
3232
def trim(self):
@@ -77,6 +77,9 @@ def copy_alpha(self, alpha_source):
7777
" ) ( " + \
7878
mask + " ) -compose CopyOpacity -composite"
7979

80+
def set_bit_depth(self, depth):
81+
self.full_command += " -depth " + str(depth)
82+
8083
# Gets the cli command to perform the ImageMagick operation
8184

8285
def get_command_string(self, magick_path, output):

rct-graphics-helper/processors/frame_processors/merge_masks_processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def process(self, frame, callback=None):
4141

4242
if frame.use_anti_aliasing:
4343
merged_tile_indices = MagickCommand(tile_index_aa_meta_output)
44-
merged_tile_indices.combine("mpr:ti_naa")
44+
merged_tile_indices.combine(tile_indices)
4545

4646
tile_indices = merged_tile_indices
4747

281 Bytes
Loading
29 Bytes
Loading
49 Bytes
Loading
38 Bytes
Loading
33 Bytes
Loading

0 commit comments

Comments
 (0)