I am loading a partially-transparent image into pygame and cropping it the following way:
img = pygame.image.load(image_url).convert_alpha()
cropped_img = pygame.Surface((100, 100)).convert_alpha()
cropped_img.blit(img, (0, 0))
The transparent sections of the image are seen as black. set_colorkey((0, 0, 0)) makes the black transparent, but it also makes the black in the image transparent. How would I only get rid of the transparency-caused black?