Inspection
metadata() is async and reports what the root source said when it was opened; it never describes the transformed pipeline. It reads only the header.
ImageMetadata carries the format, stored and oriented size, an orientation, a PixelMetadata (channels, alpha, interpretation, sample format), PageMetadata, optional AnimationMetadata, an ImageDensity and the embedded EXIF, ICC, XMP and IPTC blocks. What a pipeline will produce is described by OutputInfo instead.
From the command line use hokusai inspect (--json for scripts).