| | 600 | |
| | 601 | try { |
| | 602 | $formats = Imagick::queryFormats( '*' ); |
| | 603 | } catch ( Exception $e ) { |
| | 604 | $formats = array(); |
| | 605 | } |
| | 606 | |
| | 607 | if ( empty( $formats ) ) { |
| | 608 | $info['wp-media']['fields']['imagick_file_formats'] = array( |
| | 609 | 'label' => __( 'Imagick supported file formats' ), |
| | 610 | 'value' => __( 'Unable to determine' ), |
| | 611 | 'debug' => 'Unable to determine', |
| | 612 | ); |
| | 613 | } else { |
| | 614 | $formats = implode( ', ', $formats ); |
| | 615 | $info['wp-media']['fields']['imagick_file_formats'] = array( |
| | 616 | 'label' => __( 'Imagick supported file formats' ), |
| | 617 | 'value' => $formats, |
| | 618 | 'debug' => $formats, |
| | 619 | ); |
| | 620 | } |