wp_imagecreatetruecolor

Advertisement

Summery Summery

Create new GD image resource with transparency support

Syntax Syntax

wp_imagecreatetruecolor( int $width, int $height )

Parameters Parameters

$width

(Required) Image width in pixels.

$height

(Required) Image height in pixels..

Return Return

(resource) The GD image resource.

Source Source

File: wp-includes/media.php

		if ( $is_youtube ) {
			// Remove `feature` query arg and force SSL - see #40866.
			$atts['src'] = remove_query_arg( 'feature', $atts['src'] );
			$atts['src'] = set_url_scheme( $atts['src'], 'https' );
		} elseif ( $is_vimeo ) {
			// Remove all query arguments and force SSL - see #40866.
			$parsed_vimeo_url = wp_parse_url( $atts['src'] );
			$vimeo_src        = 'https://' . $parsed_vimeo_url['host'] . $parsed_vimeo_url['path'];

Advertisement

Changelog Changelog

Changelog
Version Description
2.9.0 Introduced.

Advertisement

Leave a Reply