code/extensions/ExtendedImage.php
public function ToJPEG($quality = null, $backgroundColor = null)
	{
        if (!$quality) $quality = Config::inst()->get('ExtendedImage', 'get_jpeg_default_quality');
		if (!$backgroundColor) $backgroundColor = Config::inst()->get('ExtendedImage', 'get_jpeg_default_background_color');

		return $this->owner->getJPEGImage($quality, $backgroundColor);

	}
public function ToJPEG($quality = null, $backgroundColor = null)
	{
        if (!$quality) $quality = Config::inst()->get('ExtendedImage', 'get_jpeg_default_quality');
		if (!$backgroundColor) $backgroundColor = Config::inst()->get('ExtendedImage', 'get_jpeg_default_background_color');

		return $this->owner->getJPEGImage($quality, $backgroundColor);

	}
public function ToJPEG ( $ quality = null , $ backgroundColor = null ) { if ( ! $ quality ) $ quality = Config :: inst ( ) -> get ( 'ExtendedImage' , 'get_jpeg_default_quality' ) ; if ( ! $ backgroundColor ) $ backgroundColor = Config :: inst ( ) -> get ( 'ExtendedImage' , 'get_jpeg_default_background_color' ) ; return $ this -> owner -> getJPEGImage ( $ quality , $ backgroundColor ) ; }
Generate a jpeg image from the source

set quality and backgroundColor for Transparency

@param $quality
@param $backgroundColor
Generate a jpeg image from the source