concrete/src/File/Image/BitmapFormat.php
public function getFormatImagineSaveOptions($format)
    {
        $format = $this->normalizeFormat($format);
        $result = [
            'format' => $format,
        ];
        switch ($format) {
            case static::FORMAT_PNG:
                $result['png_compression_level'] = $this->getDefaultPngCompressionLevel();
                break;
            case static::FORMAT_JPEG:
                $result['jpeg_quality'] = $this->getDefaultJpegQuality();
                break;
        }

        return $result;
    }
public function getFormatImagineSaveOptions($format)
    {
        $format = $this->normalizeFormat($format);
        $result = [
            'format' => $format,
        ];
        switch ($format) {
            case static::FORMAT_PNG:
                $result['png_compression_level'] = $this->getDefaultPngCompressionLevel();
                break;
            case static::FORMAT_JPEG:
                $result['jpeg_quality'] = $this->getDefaultJpegQuality();
                break;
        }

        return $result;
    }
public function getFormatImagineSaveOptions ( $ format ) { $ format = $ this -> normalizeFormat ( $ format ) ; $ result = [ 'format' => $ format , ] ; switch ( $ format ) { case static :: FORMAT_PNG : $ result [ 'png_compression_level' ] = $ this -> getDefaultPngCompressionLevel ( ) ; break ; case static :: FORMAT_JPEG : $ result [ 'jpeg_quality' ] = $ this -> getDefaultJpegQuality ( ) ; break ; } return $ result ; }
Get the Imagine save options for the specified image format.

@param string $format One of the BitmapFormat::FORMAT_...  constants.

@return array
Get the Imagine save options for the specified image format .