Returns the size and number of color channels of an image.
Retrieves the width, height, and number of channels based on the image format.
Channels:
planetcnc.image_size(image)
#! /usr/bin/env python import planetcnc # Assuming 'img' is a valid image capsule object width, height, channels = planetcnc.image_size(img) print(f"Image size: {width}x{height}, Channels: {channels}")