public function outputImageInfo(SourceImage $sourceImage, OutputInterface $output)
    {
        $output->writeln([
            '  Hash: <info>'.$sourceImage->hash.'</info>',
            '  Organization: <info>'.$sourceImage->organization.'</info>',
            '  Name: <info>'.$sourceImage->name.'</info>',
            '  Size: <info>'.$sourceImage->size.'</info>',
            '  Format: <info>'.$sourceImage->format.'</info>',
            '  Created: <info>'.$sourceImage->created->format('Y-m-d H:i:s').'</info>',
            '  Dimensions: <info>'.$sourceImage->width.'x'.$sourceImage->height.'</info>',
        ]);

        if ($output->isVerbose()) {
            $output->writeln('  BinaryHash: <info>'.$sourceImage->binaryHash.'</info>');
        }

        if (!empty($sourceImage->dynamicMetadata)) {
            if (!$output->isVerbose()) {
                $metaNames = array_keys($sourceImage->dynamicMetadata);
                $output->writeln('  DynamicMetadatas ('.\count($metaNames).'): '.implode(', ', $metaNames));
            } else {
                $output->writeln('  DynamicMetadatas:');
                /** @var DynamicMetadataInterface $meta */
                foreach ($sourceImage->dynamicMetadata as $name => $meta) {
                    $output->writeln('     - <info>'.$name.'</info> '.$this->formatDynamicMetadata($meta));
                }
            }
        }
    }
public function outputImageInfo(SourceImage $sourceImage, OutputInterface $output)
    {
        $output->writeln([
            '  Hash: <info>'.$sourceImage->hash.'</info>',
            '  Organization: <info>'.$sourceImage->organization.'</info>',
            '  Name: <info>'.$sourceImage->name.'</info>',
            '  Size: <info>'.$sourceImage->size.'</info>',
            '  Format: <info>'.$sourceImage->format.'</info>',
            '  Created: <info>'.$sourceImage->created->format('Y-m-d H:i:s').'</info>',
            '  Dimensions: <info>'.$sourceImage->width.'x'.$sourceImage->height.'</info>',
        ]);

        if ($output->isVerbose()) {
            $output->writeln('  BinaryHash: <info>'.$sourceImage->binaryHash.'</info>');
        }

        if (!empty($sourceImage->dynamicMetadata)) {
            if (!$output->isVerbose()) {
                $metaNames = array_keys($sourceImage->dynamicMetadata);
                $output->writeln('  DynamicMetadatas ('.\count($metaNames).'): '.implode(', ', $metaNames));
            } else {
                $output->writeln('  DynamicMetadatas:');
                /** @var DynamicMetadataInterface $meta */
                foreach ($sourceImage->dynamicMetadata as $name => $meta) {
                    $output->writeln('     - <info>'.$name.'</info> '.$this->formatDynamicMetadata($meta));
                }
            }
        }
    }
public function outputImageInfo ( SourceImage $ sourceImage , OutputInterface $ output ) { $ output -> writeln ( [ '  Hash: <info>' . $ sourceImage -> hash . '</info>' , '  Organization: <info>' . $ sourceImage -> organization . '</info>' , '  Name: <info>' . $ sourceImage -> name . '</info>' , '  Size: <info>' . $ sourceImage -> size . '</info>' , '  Format: <info>' . $ sourceImage -> format . '</info>' , '  Created: <info>' . $ sourceImage -> created -> format ( 'Y-m-d H:i:s' ) . '</info>' , '  Dimensions: <info>' . $ sourceImage -> width . 'x' . $ sourceImage -> height . '</info>' , ] ) ; if ( $ output -> isVerbose ( ) ) { $ output -> writeln ( '  BinaryHash: <info>' . $ sourceImage -> binaryHash . '</info>' ) ; } if ( ! empty ( $ sourceImage -> dynamicMetadata ) ) { if ( ! $ output -> isVerbose ( ) ) { $ metaNames = array_keys ( $ sourceImage -> dynamicMetadata ) ; $ output -> writeln ( '  DynamicMetadatas (' . \ count ( $ metaNames ) . '): ' . implode ( ', ' , $ metaNames ) ) ; } else { $ output -> writeln ( '  DynamicMetadatas:' ) ; /** @var DynamicMetadataInterface $meta */ foreach ( $ sourceImage -> dynamicMetadata as $ name => $ meta ) { $ output -> writeln ( '     - <info>' . $ name . '</info> ' . $ this -> formatDynamicMetadata ( $ meta ) ) ; } } } }
Print information about a source image from rokka.

@param SourceImage     $sourceImage
@param OutputInterface $output
Print information about a source image from rokka .