lib/ImageHelper.php
public static function img_to_jpg( $src, $bghex = '#FFFFFF', $force = false ) {
		$op = new Image\Operation\ToJpg($bghex);
		return self::_operate($src, $op, $force);
	}
public static function img_to_jpg( $src, $bghex = '#FFFFFF', $force = false ) {
		$op = new Image\Operation\ToJpg($bghex);
		return self::_operate($src, $op, $force);
	}
public static function img_to_jpg ( $ src , $ bghex = '#FFFFFF' , $ force = false ) { $ op = new Image \ Operation \ ToJpg ( $ bghex ) ; return self :: _operate ( $ src , $ op , $ force ) ; }
Generates a new image by converting the source GIF or PNG into JPG

@param string  $src   a url or path to the image (http://example.org/wp-content/uploads/2014/image.jpg) or (/wp-content/uploads/2014/image.jpg)
@param string  $bghex
@return string
Generates a new image by converting the source GIF or PNG into JPG