src/Sulu/Bundle/MediaBundle/Media/ImageConverter/ImagineImageConverter.php
private function toRGB(ImageInterface $image)
    {
        if ('cmyk' == $image->palette()->name()) {
            $image->usePalette(new RGB());
        }

        return $image;
    }
private function toRGB(ImageInterface $image)
    {
        if ('cmyk' == $image->palette()->name()) {
            $image->usePalette(new RGB());
        }

        return $image;
    }
private function toRGB ( ImageInterface $ image ) { if ( 'cmyk' == $ image -> palette ( ) -> name ( ) ) { $ image -> usePalette ( new RGB ( ) ) ; } return $ image ; }
Ensures that the color mode of the passed image is RGB.

@param ImageInterface $image

@return ImageInterface $image The modified image
Ensures that the color mode of the passed image is RGB .