python-pillow / Pillow

Python Imaging Library (Fork)
https://python-pillow.org
Other
12.31k stars 2.23k forks source link

Image.load returns int instead of tuple #5617

Closed EpicPuppy613 closed 3 years ago

EpicPuppy613 commented 3 years ago

What did you do?

I created a program that scans all files in a directory, and averages all rgb values for each image

What did you expect to happen?

Image.load to return a PixelAccess object containing tuples

What actually happened?

Image.load returned a PixelAccess object containing integers

What are your OS, Python and Pillow versions?

I have not figured out why or when it happens so I have attached my entire workspace directory. image.zip

nulano commented 3 years ago

Not all of those images are in RGB. Using the following modification to your code, you can see the modes of the images:

import os
from PIL import Image

for texture in os.scandir("textures\\block"):
    if texture.path.endswith(".png"):
        im = Image.open(texture.path)
        print(im.mode, texture.path)

For example, attached_melon_stem.png is a palette image (im.mode='P'), while water_overlay.png is grayscale with transparency (im.mode='LA'). For what each mode value exactly means see the documentation.

Full output (click to expand) ``` RGBA textures\block\acacia_door_bottom.png RGBA textures\block\acacia_door_top.png RGBA textures\block\acacia_leaves.png RGBA textures\block\acacia_log.png RGBA textures\block\acacia_log_top.png RGBA textures\block\acacia_planks.png RGBA textures\block\acacia_sapling.png RGBA textures\block\acacia_trapdoor.png RGBA textures\block\activator_rail.png RGBA textures\block\activator_rail_on.png RGBA textures\block\allium.png RGBA textures\block\amethyst_block.png RGBA textures\block\amethyst_cluster.png RGBA textures\block\ancient_debris_side.png RGBA textures\block\ancient_debris_top.png RGBA textures\block\andesite.png RGBA textures\block\anvil.png RGBA textures\block\anvil_top.png P textures\block\attached_melon_stem.png RGBA textures\block\attached_pumpkin_stem.png RGBA textures\block\azalea_leaves.png RGBA textures\block\azalea_plant.png RGBA textures\block\azalea_side.png RGB textures\block\azalea_top.png RGBA textures\block\azure_bluet.png RGBA textures\block\bamboo_large_leaves.png RGBA textures\block\bamboo_singleleaf.png RGBA textures\block\bamboo_small_leaves.png RGBA textures\block\bamboo_stage0.png RGBA textures\block\bamboo_stalk.png RGBA textures\block\barrel_bottom.png RGBA textures\block\barrel_side.png RGBA textures\block\barrel_top.png RGBA textures\block\barrel_top_open.png RGBA textures\block\basalt_side.png RGBA textures\block\basalt_top.png RGBA textures\block\beacon.png RGBA textures\block\bedrock.png RGBA textures\block\beehive_end.png RGBA textures\block\beehive_front.png RGBA textures\block\beehive_front_honey.png RGBA textures\block\beehive_side.png RGBA textures\block\beetroots_stage0.png RGBA textures\block\beetroots_stage1.png RGBA textures\block\beetroots_stage2.png RGBA textures\block\beetroots_stage3.png RGBA textures\block\bee_nest_bottom.png RGBA textures\block\bee_nest_front.png RGBA textures\block\bee_nest_front_honey.png RGBA textures\block\bee_nest_side.png RGBA textures\block\bee_nest_top.png RGBA textures\block\bell_bottom.png RGBA textures\block\bell_side.png RGBA textures\block\bell_top.png RGBA textures\block\big_dripleaf_side.png RGBA textures\block\big_dripleaf_stem.png RGBA textures\block\big_dripleaf_tip.png RGBA textures\block\big_dripleaf_top.png RGBA textures\block\birch_door_bottom.png RGBA textures\block\birch_door_top.png RGBA textures\block\birch_leaves.png RGBA textures\block\birch_log.png RGBA textures\block\birch_log_top.png RGBA textures\block\birch_planks.png RGBA textures\block\birch_sapling.png RGBA textures\block\birch_trapdoor.png RGBA textures\block\blackstone.png RGBA textures\block\blackstone_top.png RGBA textures\block\black_candle.png RGBA textures\block\black_candle_lit.png RGB textures\block\black_concrete.png RGB textures\block\black_concrete_powder.png RGB textures\block\black_glazed_terracotta.png RGB textures\block\black_shulker_box.png RGBA textures\block\black_stained_glass.png RGBA textures\block\black_stained_glass_pane_top.png RGBA textures\block\black_terracotta.png RGB textures\block\black_wool.png RGBA textures\block\blast_furnace_front.png RGBA textures\block\blast_furnace_front_on.png RGBA textures\block\blast_furnace_side.png RGBA textures\block\blast_furnace_top.png RGBA textures\block\blue_candle.png RGBA textures\block\blue_candle_lit.png RGB textures\block\blue_concrete.png RGB textures\block\blue_concrete_powder.png RGB textures\block\blue_glazed_terracotta.png RGBA textures\block\blue_ice.png RGBA textures\block\blue_orchid.png RGB textures\block\blue_shulker_box.png RGBA textures\block\blue_stained_glass.png RGBA textures\block\blue_stained_glass_pane_top.png RGBA textures\block\blue_terracotta.png RGB textures\block\blue_wool.png RGBA textures\block\bone_block_side.png RGBA textures\block\bone_block_top.png RGBA textures\block\bookshelf.png RGBA textures\block\brain_coral.png RGBA textures\block\brain_coral_block.png RGBA textures\block\brain_coral_fan.png RGBA textures\block\brewing_stand.png RGBA textures\block\brewing_stand_base.png RGBA textures\block\bricks.png RGBA textures\block\brown_candle.png RGBA textures\block\brown_candle_lit.png RGB textures\block\brown_concrete.png RGB textures\block\brown_concrete_powder.png RGB textures\block\brown_glazed_terracotta.png RGBA textures\block\brown_mushroom.png RGBA textures\block\brown_mushroom_block.png RGB textures\block\brown_shulker_box.png RGBA textures\block\brown_stained_glass.png RGBA textures\block\brown_stained_glass_pane_top.png RGBA textures\block\brown_terracotta.png RGB textures\block\brown_wool.png RGBA textures\block\bubble_coral.png RGBA textures\block\bubble_coral_block.png RGBA textures\block\bubble_coral_fan.png RGBA textures\block\budding_amethyst.png RGBA textures\block\cactus_bottom.png RGBA textures\block\cactus_side.png RGBA textures\block\cactus_top.png RGBA textures\block\cake_bottom.png RGBA textures\block\cake_inner.png RGBA textures\block\cake_side.png RGBA textures\block\cake_top.png RGBA textures\block\calcite.png RGBA textures\block\campfire_fire.png RGBA textures\block\campfire_log.png RGBA textures\block\campfire_log_lit.png RGBA textures\block\candle.png RGBA textures\block\candle_lit.png RGBA textures\block\carrots_stage0.png RGBA textures\block\carrots_stage1.png RGBA textures\block\carrots_stage2.png RGBA textures\block\carrots_stage3.png RGBA textures\block\cartography_table_side1.png RGBA textures\block\cartography_table_side2.png RGBA textures\block\cartography_table_side3.png RGBA textures\block\cartography_table_top.png RGBA textures\block\carved_pumpkin.png RGBA textures\block\cauldron_bottom.png RGBA textures\block\cauldron_inner.png RGBA textures\block\cauldron_side.png RGBA textures\block\cauldron_top.png RGBA textures\block\cave_vines.png RGBA textures\block\cave_vines_lit.png RGBA textures\block\cave_vines_plant.png RGBA textures\block\cave_vines_plant_lit.png RGBA textures\block\chain.png RGBA textures\block\chain_command_block_back.png RGBA textures\block\chain_command_block_conditional.png RGBA textures\block\chain_command_block_front.png RGBA textures\block\chain_command_block_side.png RGBA textures\block\chipped_anvil_top.png RGBA textures\block\chiseled_deepslate.png RGBA textures\block\chiseled_nether_bricks.png RGBA textures\block\chiseled_polished_blackstone.png RGBA textures\block\chiseled_quartz_block.png RGBA textures\block\chiseled_quartz_block_top.png RGBA textures\block\chiseled_red_sandstone.png RGBA textures\block\chiseled_sandstone.png RGBA textures\block\chiseled_stone_bricks.png RGBA textures\block\chorus_flower.png RGBA textures\block\chorus_flower_dead.png RGBA textures\block\chorus_plant.png RGBA textures\block\clay.png RGBA textures\block\coal_block.png RGBA textures\block\coal_ore.png RGBA textures\block\coarse_dirt.png RGBA textures\block\cobbled_deepslate.png RGBA textures\block\cobblestone.png RGBA textures\block\cobweb.png RGBA textures\block\cocoa_stage0.png RGBA textures\block\cocoa_stage1.png RGBA textures\block\cocoa_stage2.png RGBA textures\block\command_block_back.png RGBA textures\block\command_block_conditional.png RGBA textures\block\command_block_front.png RGBA textures\block\command_block_side.png RGBA textures\block\comparator.png RGBA textures\block\comparator_on.png RGBA textures\block\composter_bottom.png RGBA textures\block\composter_compost.png RGBA textures\block\composter_ready.png RGBA textures\block\composter_side.png RGBA textures\block\composter_top.png RGBA textures\block\conduit.png RGBA textures\block\copper_block.png RGBA textures\block\copper_ore.png RGBA textures\block\cornflower.png RGBA textures\block\cracked_deepslate_bricks.png RGBA textures\block\cracked_deepslate_tiles.png RGBA textures\block\cracked_nether_bricks.png RGBA textures\block\cracked_polished_blackstone_bricks.png RGBA textures\block\cracked_stone_bricks.png RGBA textures\block\crafting_table_front.png RGBA textures\block\crafting_table_side.png RGBA textures\block\crafting_table_top.png RGBA textures\block\crimson_door_bottom.png RGBA textures\block\crimson_door_top.png RGBA textures\block\crimson_fungus.png RGBA textures\block\crimson_nylium.png RGBA textures\block\crimson_nylium_side.png RGBA textures\block\crimson_planks.png RGBA textures\block\crimson_roots.png RGBA textures\block\crimson_roots_pot.png RGBA textures\block\crimson_stem.png RGBA textures\block\crimson_stem_top.png RGBA textures\block\crimson_trapdoor.png RGBA textures\block\crying_obsidian.png RGBA textures\block\cut_copper.png RGBA textures\block\cut_red_sandstone.png RGBA textures\block\cut_sandstone.png RGBA textures\block\cyan_candle.png RGBA textures\block\cyan_candle_lit.png RGB textures\block\cyan_concrete.png RGB textures\block\cyan_concrete_powder.png RGB textures\block\cyan_glazed_terracotta.png RGB textures\block\cyan_shulker_box.png RGBA textures\block\cyan_stained_glass.png RGBA textures\block\cyan_stained_glass_pane_top.png RGBA textures\block\cyan_terracotta.png RGB textures\block\cyan_wool.png RGBA textures\block\damaged_anvil_top.png RGBA textures\block\dandelion.png RGBA textures\block\dark_oak_door_bottom.png RGBA textures\block\dark_oak_door_top.png RGBA textures\block\dark_oak_leaves.png RGBA textures\block\dark_oak_log.png RGBA textures\block\dark_oak_log_top.png RGBA textures\block\dark_oak_planks.png RGBA textures\block\dark_oak_sapling.png RGBA textures\block\dark_oak_trapdoor.png RGBA textures\block\dark_prismarine.png RGBA textures\block\daylight_detector_inverted_top.png RGBA textures\block\daylight_detector_side.png RGBA textures\block\daylight_detector_top.png RGBA textures\block\dead_brain_coral.png RGBA textures\block\dead_brain_coral_block.png RGBA textures\block\dead_brain_coral_fan.png RGBA textures\block\dead_bubble_coral.png RGBA textures\block\dead_bubble_coral_block.png RGBA textures\block\dead_bubble_coral_fan.png RGBA textures\block\dead_bush.png RGBA textures\block\dead_fire_coral.png RGBA textures\block\dead_fire_coral_block.png RGBA textures\block\dead_fire_coral_fan.png RGBA textures\block\dead_horn_coral.png RGBA textures\block\dead_horn_coral_block.png RGBA textures\block\dead_horn_coral_fan.png RGBA textures\block\dead_tube_coral.png RGBA textures\block\dead_tube_coral_block.png RGBA textures\block\dead_tube_coral_fan.png RGBA textures\block\debug.png RGBA textures\block\debug2.png RGBA textures\block\deepslate.png RGBA textures\block\deepslate_bricks.png RGBA textures\block\deepslate_coal_ore.png RGBA textures\block\deepslate_copper_ore.png RGBA textures\block\deepslate_diamond_ore.png RGBA textures\block\deepslate_emerald_ore.png RGBA textures\block\deepslate_gold_ore.png RGBA textures\block\deepslate_iron_ore.png RGBA textures\block\deepslate_lapis_ore.png RGBA textures\block\deepslate_redstone_ore.png RGBA textures\block\deepslate_tiles.png RGBA textures\block\deepslate_top.png RGBA textures\block\destroy_stage_0.png RGBA textures\block\destroy_stage_1.png RGBA textures\block\destroy_stage_2.png RGBA textures\block\destroy_stage_3.png RGBA textures\block\destroy_stage_4.png RGBA textures\block\destroy_stage_5.png RGBA textures\block\destroy_stage_6.png RGBA textures\block\destroy_stage_7.png RGBA textures\block\destroy_stage_8.png RGBA textures\block\destroy_stage_9.png RGBA textures\block\detector_rail.png RGBA textures\block\detector_rail_on.png RGBA textures\block\diamond_block.png RGBA textures\block\diamond_ore.png RGBA textures\block\diorite.png RGBA textures\block\dirt.png RGBA textures\block\dirt_path_side.png RGBA textures\block\dirt_path_top.png P textures\block\dispenser_front.png RGBA textures\block\dispenser_front_vertical.png RGBA textures\block\dragon_egg.png RGB textures\block\dried_kelp_bottom.png RGBA textures\block\dried_kelp_side.png RGBA textures\block\dried_kelp_top.png RGBA textures\block\dripstone_block.png RGBA textures\block\dropper_front.png RGBA textures\block\dropper_front_vertical.png RGBA textures\block\emerald_block.png RGBA textures\block\emerald_ore.png RGBA textures\block\enchanting_table_bottom.png RGBA textures\block\enchanting_table_side.png RGBA textures\block\enchanting_table_top.png RGBA textures\block\end_portal_frame_eye.png RGBA textures\block\end_portal_frame_side.png RGBA textures\block\end_portal_frame_top.png RGBA textures\block\end_rod.png RGBA textures\block\end_stone.png RGBA textures\block\end_stone_bricks.png RGBA textures\block\exposed_copper.png RGBA textures\block\exposed_cut_copper.png RGBA textures\block\farmland.png RGBA textures\block\farmland_moist.png RGBA textures\block\fern.png RGBA textures\block\fire_0.png RGBA textures\block\fire_1.png RGBA textures\block\fire_coral.png RGBA textures\block\fire_coral_block.png RGBA textures\block\fire_coral_fan.png RGBA textures\block\fletching_table_front.png RGBA textures\block\fletching_table_side.png RGBA textures\block\fletching_table_top.png RGBA textures\block\flowering_azalea_leaves.png RGBA textures\block\flowering_azalea_side.png RGB textures\block\flowering_azalea_top.png RGBA textures\block\flower_pot.png RGBA textures\block\frosted_ice_0.png RGBA textures\block\frosted_ice_1.png RGBA textures\block\frosted_ice_2.png RGBA textures\block\frosted_ice_3.png RGBA textures\block\furnace_front.png RGBA textures\block\furnace_front_on.png RGBA textures\block\furnace_side.png RGBA textures\block\furnace_top.png RGBA textures\block\gilded_blackstone.png RGBA textures\block\glass.png RGBA textures\block\glass_pane_top.png RGBA textures\block\glowstone.png RGBA textures\block\glow_item_frame.png RGBA textures\block\glow_lichen.png RGBA textures\block\gold_block.png RGBA textures\block\gold_ore.png RGBA textures\block\granite.png RGBA textures\block\grass.png RGBA textures\block\grass_block_side.png RGBA textures\block\grass_block_side_overlay.png RGBA textures\block\grass_block_snow.png RGBA textures\block\grass_block_top.png RGBA textures\block\gravel.png RGBA textures\block\gray_candle.png RGBA textures\block\gray_candle_lit.png RGB textures\block\gray_concrete.png RGB textures\block\gray_concrete_powder.png RGB textures\block\gray_glazed_terracotta.png RGB textures\block\gray_shulker_box.png RGBA textures\block\gray_stained_glass.png RGBA textures\block\gray_stained_glass_pane_top.png RGBA textures\block\gray_terracotta.png RGB textures\block\gray_wool.png RGBA textures\block\green_candle.png RGBA textures\block\green_candle_lit.png RGB textures\block\green_concrete.png RGB textures\block\green_concrete_powder.png RGB textures\block\green_glazed_terracotta.png RGB textures\block\green_shulker_box.png RGBA textures\block\green_stained_glass.png RGBA textures\block\green_stained_glass_pane_top.png RGBA textures\block\green_terracotta.png RGB textures\block\green_wool.png RGBA textures\block\grindstone_pivot.png RGBA textures\block\grindstone_round.png RGBA textures\block\grindstone_side.png RGBA textures\block\hanging_roots.png RGBA textures\block\hay_block_side.png RGBA textures\block\hay_block_top.png RGBA textures\block\honeycomb_block.png RGBA textures\block\honey_block_bottom.png RGBA textures\block\honey_block_side.png RGBA textures\block\honey_block_top.png RGBA textures\block\hopper_inside.png RGBA textures\block\hopper_outside.png RGBA textures\block\hopper_top.png RGBA textures\block\horn_coral.png RGBA textures\block\horn_coral_block.png RGBA textures\block\horn_coral_fan.png RGBA textures\block\ice.png RGBA textures\block\iron_bars.png RGBA textures\block\iron_block.png RGBA textures\block\iron_door_bottom.png RGBA textures\block\iron_door_top.png RGBA textures\block\iron_ore.png P textures\block\iron_trapdoor.png RGBA textures\block\item_frame.png RGBA textures\block\jack_o_lantern.png RGBA textures\block\jigsaw_bottom.png RGBA textures\block\jigsaw_lock.png RGBA textures\block\jigsaw_side.png RGBA textures\block\jigsaw_top.png P textures\block\jukebox_side.png RGBA textures\block\jukebox_top.png RGBA textures\block\jungle_door_bottom.png RGBA textures\block\jungle_door_top.png RGBA textures\block\jungle_leaves.png RGBA textures\block\jungle_log.png RGBA textures\block\jungle_log_top.png RGBA textures\block\jungle_planks.png RGBA textures\block\jungle_sapling.png RGBA textures\block\jungle_trapdoor.png RGBA textures\block\kelp.png RGBA textures\block\kelp_plant.png RGBA textures\block\ladder.png RGBA textures\block\lantern.png RGBA textures\block\lapis_block.png RGBA textures\block\lapis_ore.png RGBA textures\block\large_amethyst_bud.png RGBA textures\block\large_fern_bottom.png P textures\block\large_fern_top.png RGB textures\block\lava_flow.png RGB textures\block\lava_still.png RGBA textures\block\lectern_base.png RGBA textures\block\lectern_front.png RGBA textures\block\lectern_sides.png RGBA textures\block\lectern_top.png RGBA textures\block\lever.png RGBA textures\block\lightning_rod.png RGBA textures\block\lightning_rod_on.png RGBA textures\block\light_blue_candle.png RGBA textures\block\light_blue_candle_lit.png RGB textures\block\light_blue_concrete.png RGB textures\block\light_blue_concrete_powder.png RGB textures\block\light_blue_glazed_terracotta.png RGB textures\block\light_blue_shulker_box.png RGBA textures\block\light_blue_stained_glass.png RGBA textures\block\light_blue_stained_glass_pane_top.png RGBA textures\block\light_blue_terracotta.png RGB textures\block\light_blue_wool.png RGBA textures\block\light_gray_candle.png RGBA textures\block\light_gray_candle_lit.png RGB textures\block\light_gray_concrete.png RGB textures\block\light_gray_concrete_powder.png RGB textures\block\light_gray_glazed_terracotta.png RGB textures\block\light_gray_shulker_box.png RGBA textures\block\light_gray_stained_glass.png RGBA textures\block\light_gray_stained_glass_pane_top.png RGBA textures\block\light_gray_terracotta.png RGB textures\block\light_gray_wool.png RGBA textures\block\lilac_bottom.png RGBA textures\block\lilac_top.png RGBA textures\block\lily_of_the_valley.png RGBA textures\block\lily_pad.png RGBA textures\block\lime_candle.png RGBA textures\block\lime_candle_lit.png RGB textures\block\lime_concrete.png RGB textures\block\lime_concrete_powder.png RGB textures\block\lime_glazed_terracotta.png RGB textures\block\lime_shulker_box.png RGBA textures\block\lime_stained_glass.png RGBA textures\block\lime_stained_glass_pane_top.png RGBA textures\block\lime_terracotta.png RGB textures\block\lime_wool.png RGBA textures\block\lodestone_side.png RGBA textures\block\lodestone_top.png RGBA textures\block\loom_bottom.png RGBA textures\block\loom_front.png RGBA textures\block\loom_side.png RGBA textures\block\loom_top.png RGBA textures\block\magenta_candle.png RGBA textures\block\magenta_candle_lit.png RGB textures\block\magenta_concrete.png RGB textures\block\magenta_concrete_powder.png RGB textures\block\magenta_glazed_terracotta.png RGB textures\block\magenta_shulker_box.png RGBA textures\block\magenta_stained_glass.png RGBA textures\block\magenta_stained_glass_pane_top.png RGBA textures\block\magenta_terracotta.png RGB textures\block\magenta_wool.png RGBA textures\block\magma.png RGBA textures\block\medium_amethyst_bud.png RGBA textures\block\melon_side.png RGBA textures\block\melon_stem.png RGBA textures\block\melon_top.png RGBA textures\block\mossy_cobblestone.png RGBA textures\block\mossy_stone_bricks.png RGB textures\block\moss_block.png RGBA textures\block\mushroom_block_inside.png RGBA textures\block\mushroom_stem.png RGBA textures\block\mycelium_side.png P textures\block\mycelium_top.png RGBA textures\block\netherite_block.png RGBA textures\block\netherrack.png P textures\block\nether_bricks.png RGBA textures\block\nether_gold_ore.png RGBA textures\block\nether_portal.png RGBA textures\block\nether_quartz_ore.png RGBA textures\block\nether_sprouts.png RGBA textures\block\nether_wart_block.png P textures\block\nether_wart_stage0.png P textures\block\nether_wart_stage1.png P textures\block\nether_wart_stage2.png RGBA textures\block\note_block.png RGBA textures\block\oak_door_bottom.png RGBA textures\block\oak_door_top.png RGBA textures\block\oak_leaves.png RGBA textures\block\oak_log.png RGBA textures\block\oak_log_top.png RGBA textures\block\oak_planks.png RGBA textures\block\oak_sapling.png RGBA textures\block\oak_trapdoor.png RGB textures\block\observer_back.png RGBA textures\block\observer_back_on.png RGB textures\block\observer_front.png RGB textures\block\observer_side.png RGB textures\block\observer_top.png RGBA textures\block\obsidian.png RGBA textures\block\orange_candle.png RGBA textures\block\orange_candle_lit.png RGB textures\block\orange_concrete.png RGB textures\block\orange_concrete_powder.png RGB textures\block\orange_glazed_terracotta.png RGB textures\block\orange_shulker_box.png RGBA textures\block\orange_stained_glass.png RGBA textures\block\orange_stained_glass_pane_top.png RGBA textures\block\orange_terracotta.png RGBA textures\block\orange_tulip.png RGB textures\block\orange_wool.png RGBA textures\block\oxeye_daisy.png RGBA textures\block\oxidized_copper.png RGBA textures\block\oxidized_cut_copper.png RGB textures\block\packed_ice.png RGBA textures\block\peony_bottom.png RGBA textures\block\peony_top.png RGBA textures\block\pink_candle.png RGBA textures\block\pink_candle_lit.png RGB textures\block\pink_concrete.png RGB textures\block\pink_concrete_powder.png RGB textures\block\pink_glazed_terracotta.png RGB textures\block\pink_shulker_box.png RGBA textures\block\pink_stained_glass.png RGBA textures\block\pink_stained_glass_pane_top.png RGBA textures\block\pink_terracotta.png RGBA textures\block\pink_tulip.png RGB textures\block\pink_wool.png RGBA textures\block\piston_bottom.png RGBA textures\block\piston_inner.png RGBA textures\block\piston_side.png RGBA textures\block\piston_top.png RGBA textures\block\piston_top_sticky.png RGBA textures\block\podzol_side.png RGBA textures\block\podzol_top.png RGBA textures\block\pointed_dripstone_down_base.png RGBA textures\block\pointed_dripstone_down_frustum.png RGBA textures\block\pointed_dripstone_down_middle.png RGBA textures\block\pointed_dripstone_down_tip.png RGBA textures\block\pointed_dripstone_down_tip_merge.png RGBA textures\block\pointed_dripstone_up_base.png RGBA textures\block\pointed_dripstone_up_frustum.png RGBA textures\block\pointed_dripstone_up_middle.png RGBA textures\block\pointed_dripstone_up_tip.png RGBA textures\block\pointed_dripstone_up_tip_merge.png RGBA textures\block\polished_andesite.png RGBA textures\block\polished_basalt_side.png RGBA textures\block\polished_basalt_top.png RGBA textures\block\polished_blackstone.png RGBA textures\block\polished_blackstone_bricks.png RGBA textures\block\polished_deepslate.png RGBA textures\block\polished_diorite.png RGBA textures\block\polished_granite.png RGBA textures\block\poppy.png RGBA textures\block\potatoes_stage0.png RGBA textures\block\potatoes_stage1.png RGBA textures\block\potatoes_stage2.png RGBA textures\block\potatoes_stage3.png RGBA textures\block\potted_azalea_bush_plant.png RGBA textures\block\potted_azalea_bush_side.png RGBA textures\block\potted_azalea_bush_top.png RGBA textures\block\potted_flowering_azalea_bush_plant.png RGBA textures\block\potted_flowering_azalea_bush_side.png RGBA textures\block\potted_flowering_azalea_bush_top.png RGBA textures\block\powder_snow.png RGBA textures\block\powered_rail.png RGBA textures\block\powered_rail_on.png RGBA textures\block\prismarine.png RGBA textures\block\prismarine_bricks.png RGBA textures\block\pumpkin_side.png P textures\block\pumpkin_stem.png RGBA textures\block\pumpkin_top.png RGBA textures\block\purple_candle.png RGBA textures\block\purple_candle_lit.png RGB textures\block\purple_concrete.png RGB textures\block\purple_concrete_powder.png RGB textures\block\purple_glazed_terracotta.png RGB textures\block\purple_shulker_box.png RGBA textures\block\purple_stained_glass.png RGBA textures\block\purple_stained_glass_pane_top.png RGBA textures\block\purple_terracotta.png RGB textures\block\purple_wool.png RGBA textures\block\purpur_block.png RGBA textures\block\purpur_pillar.png P textures\block\purpur_pillar_top.png RGBA textures\block\quartz_block_bottom.png RGBA textures\block\quartz_block_side.png RGBA textures\block\quartz_block_top.png RGBA textures\block\quartz_bricks.png RGBA textures\block\quartz_pillar.png RGBA textures\block\quartz_pillar_top.png RGBA textures\block\rail.png RGBA textures\block\rail_corner.png RGBA textures\block\raw_copper_block.png RGBA textures\block\raw_gold_block.png RGBA textures\block\raw_iron_block.png P textures\block\redstone_block.png RGBA textures\block\redstone_dust_dot.png RGBA textures\block\redstone_dust_line0.png RGBA textures\block\redstone_dust_line1.png RGBA textures\block\redstone_dust_overlay.png RGBA textures\block\redstone_lamp.png RGBA textures\block\redstone_lamp_on.png RGBA textures\block\redstone_ore.png RGBA textures\block\redstone_torch.png RGBA textures\block\redstone_torch_off.png RGBA textures\block\red_candle.png RGBA textures\block\red_candle_lit.png RGB textures\block\red_concrete.png RGB textures\block\red_concrete_powder.png RGB textures\block\red_glazed_terracotta.png RGBA textures\block\red_mushroom.png RGBA textures\block\red_mushroom_block.png RGBA textures\block\red_nether_bricks.png RGBA textures\block\red_sand.png RGBA textures\block\red_sandstone.png RGBA textures\block\red_sandstone_bottom.png RGBA textures\block\red_sandstone_top.png RGB textures\block\red_shulker_box.png RGBA textures\block\red_stained_glass.png RGBA textures\block\red_stained_glass_pane_top.png RGBA textures\block\red_terracotta.png RGBA textures\block\red_tulip.png RGB textures\block\red_wool.png RGBA textures\block\repeater.png RGBA textures\block\repeater_on.png RGBA textures\block\repeating_command_block_back.png RGBA textures\block\repeating_command_block_conditional.png RGBA textures\block\repeating_command_block_front.png RGBA textures\block\repeating_command_block_side.png RGBA textures\block\respawn_anchor_bottom.png RGBA textures\block\respawn_anchor_side0.png RGBA textures\block\respawn_anchor_side1.png RGBA textures\block\respawn_anchor_side2.png RGBA textures\block\respawn_anchor_side3.png RGBA textures\block\respawn_anchor_side4.png RGBA textures\block\respawn_anchor_top.png RGBA textures\block\respawn_anchor_top_off.png RGBA textures\block\rooted_dirt.png RGBA textures\block\rose_bush_bottom.png RGBA textures\block\rose_bush_top.png RGBA textures\block\sand.png RGBA textures\block\sandstone.png RGBA textures\block\sandstone_bottom.png RGBA textures\block\sandstone_top.png RGBA textures\block\scaffolding_bottom.png RGBA textures\block\scaffolding_side.png RGBA textures\block\scaffolding_top.png RGBA textures\block\sculk_sensor_bottom.png RGBA textures\block\sculk_sensor_side.png RGBA textures\block\sculk_sensor_tendril_active.png RGBA textures\block\sculk_sensor_tendril_inactive.png RGBA textures\block\sculk_sensor_top.png RGBA textures\block\seagrass.png RGBA textures\block\sea_lantern.png RGBA textures\block\sea_pickle.png RGBA textures\block\shroomlight.png P textures\block\shulker_box.png P textures\block\slime_block.png RGBA textures\block\small_amethyst_bud.png RGBA textures\block\small_dripleaf_side.png RGBA textures\block\small_dripleaf_stem_bottom.png RGBA textures\block\small_dripleaf_stem_top.png RGBA textures\block\small_dripleaf_top.png RGBA textures\block\smithing_table_bottom.png RGBA textures\block\smithing_table_front.png RGBA textures\block\smithing_table_side.png RGBA textures\block\smithing_table_top.png RGBA textures\block\smoker_bottom.png RGBA textures\block\smoker_front.png RGBA textures\block\smoker_front_on.png RGBA textures\block\smoker_side.png RGBA textures\block\smoker_top.png RGBA textures\block\smooth_basalt.png RGBA textures\block\smooth_stone.png RGBA textures\block\smooth_stone_slab_side.png RGBA textures\block\snow.png RGBA textures\block\soul_campfire_fire.png RGBA textures\block\soul_campfire_log_lit.png RGBA textures\block\soul_fire_0.png RGBA textures\block\soul_fire_1.png RGBA textures\block\soul_lantern.png RGBA textures\block\soul_sand.png RGBA textures\block\soul_soil.png RGBA textures\block\soul_torch.png RGBA textures\block\spawner.png RGBA textures\block\sponge.png RGBA textures\block\spore_blossom.png RGBA textures\block\spore_blossom_base.png RGB textures\block\spruce_door_bottom.png RGB textures\block\spruce_door_top.png RGBA textures\block\spruce_leaves.png RGBA textures\block\spruce_log.png RGBA textures\block\spruce_log_top.png RGBA textures\block\spruce_planks.png RGBA textures\block\spruce_sapling.png RGBA textures\block\spruce_trapdoor.png RGBA textures\block\stone.png RGBA textures\block\stonecutter_bottom.png RGBA textures\block\stonecutter_saw.png RGBA textures\block\stonecutter_side.png RGBA textures\block\stonecutter_top.png RGBA textures\block\stone_bricks.png RGB textures\block\stripped_acacia_log.png RGBA textures\block\stripped_acacia_log_top.png RGB textures\block\stripped_birch_log.png RGBA textures\block\stripped_birch_log_top.png RGBA textures\block\stripped_crimson_stem.png P textures\block\stripped_crimson_stem_top.png RGB textures\block\stripped_dark_oak_log.png RGBA textures\block\stripped_dark_oak_log_top.png RGBA textures\block\stripped_jungle_log.png RGBA textures\block\stripped_jungle_log_top.png RGB textures\block\stripped_oak_log.png RGBA textures\block\stripped_oak_log_top.png RGB textures\block\stripped_spruce_log.png RGBA textures\block\stripped_spruce_log_top.png RGBA textures\block\stripped_warped_stem.png P textures\block\stripped_warped_stem_top.png RGBA textures\block\structure_block.png RGBA textures\block\structure_block_corner.png RGBA textures\block\structure_block_data.png RGBA textures\block\structure_block_load.png RGBA textures\block\structure_block_save.png RGBA textures\block\sugar_cane.png RGBA textures\block\sunflower_back.png RGBA textures\block\sunflower_bottom.png RGBA textures\block\sunflower_front.png RGBA textures\block\sunflower_top.png RGBA textures\block\sweet_berry_bush_stage0.png RGBA textures\block\sweet_berry_bush_stage1.png RGBA textures\block\sweet_berry_bush_stage2.png RGBA textures\block\sweet_berry_bush_stage3.png RGBA textures\block\tall_grass_bottom.png RGBA textures\block\tall_grass_top.png RGBA textures\block\tall_seagrass_bottom.png RGBA textures\block\tall_seagrass_top.png RGBA textures\block\target_side.png RGBA textures\block\target_top.png RGBA textures\block\terracotta.png RGBA textures\block\tinted_glass.png RGBA textures\block\tnt_bottom.png RGBA textures\block\tnt_side.png RGBA textures\block\tnt_top.png RGBA textures\block\torch.png RGBA textures\block\tripwire.png RGBA textures\block\tripwire_hook.png RGBA textures\block\tube_coral.png RGBA textures\block\tube_coral_block.png RGBA textures\block\tube_coral_fan.png RGBA textures\block\tuff.png RGBA textures\block\turtle_egg.png RGBA textures\block\turtle_egg_slightly_cracked.png RGBA textures\block\turtle_egg_very_cracked.png RGBA textures\block\twisting_vines.png RGBA textures\block\twisting_vines_plant.png RGBA textures\block\vine.png RGBA textures\block\warped_door_bottom.png RGBA textures\block\warped_door_top.png RGBA textures\block\warped_fungus.png RGBA textures\block\warped_nylium.png RGBA textures\block\warped_nylium_side.png RGBA textures\block\warped_planks.png RGBA textures\block\warped_roots.png RGBA textures\block\warped_roots_pot.png RGBA textures\block\warped_stem.png RGBA textures\block\warped_stem_top.png RGBA textures\block\warped_trapdoor.png RGBA textures\block\warped_wart_block.png RGBA textures\block\water_flow.png LA textures\block\water_overlay.png RGBA textures\block\water_still.png RGBA textures\block\weathered_copper.png RGBA textures\block\weathered_cut_copper.png RGBA textures\block\weeping_vines.png RGBA textures\block\weeping_vines_plant.png RGBA textures\block\wet_sponge.png P textures\block\wheat_stage0.png P textures\block\wheat_stage1.png P textures\block\wheat_stage2.png P textures\block\wheat_stage3.png P textures\block\wheat_stage4.png P textures\block\wheat_stage5.png P textures\block\wheat_stage6.png RGBA textures\block\wheat_stage7.png RGBA textures\block\white_candle.png RGBA textures\block\white_candle_lit.png RGB textures\block\white_concrete.png RGB textures\block\white_concrete_powder.png RGB textures\block\white_glazed_terracotta.png RGB textures\block\white_shulker_box.png RGBA textures\block\white_stained_glass.png RGBA textures\block\white_stained_glass_pane_top.png RGBA textures\block\white_terracotta.png RGBA textures\block\white_tulip.png RGB textures\block\white_wool.png RGBA textures\block\wither_rose.png RGBA textures\block\yellow_candle.png RGBA textures\block\yellow_candle_lit.png RGB textures\block\yellow_concrete.png RGB textures\block\yellow_concrete_powder.png RGB textures\block\yellow_glazed_terracotta.png RGB textures\block\yellow_shulker_box.png RGBA textures\block\yellow_stained_glass.png RGBA textures\block\yellow_stained_glass_pane_top.png RGBA textures\block\yellow_terracotta.png RGB textures\block\yellow_wool.png ```

If you would like to convert each image to RGBA, you can add the line im = im.convert("RGBA").

radarhere commented 3 years ago

@EpicPuppy613 did that answer your question?