packages/kirki-framework/core/src/Helper.php
public static function get_image_from_url( $url ) {
		$image_id = self::get_image_id( $url );
		$image    = wp_get_attachment_image_src( $image_id, 'full' );

		return [
			'url'       => $image[0],
			'width'     => $image[1],
			'height'    => $image[2],
			'thumbnail' => $image[3],
		];
	}
public static function get_image_from_url( $url ) {
		$image_id = self::get_image_id( $url );
		$image    = wp_get_attachment_image_src( $image_id, 'full' );

		return [
			'url'       => $image[0],
			'width'     => $image[1],
			'height'    => $image[2],
			'thumbnail' => $image[3],
		];
	}
public static function get_image_from_url ( $ url ) { $ image_id = self :: get_image_id ( $ url ) ; $ image = wp_get_attachment_image_src ( $ image_id , 'full' ) ; return [ 'url' => $ image [ 0 ] , 'width' => $ image [ 1 ] , 'height' => $ image [ 2 ] , 'thumbnail' => $ image [ 3 ] , ] ; }
Returns an array of the attachment's properties.

@param string $url URL to the image.
@return array
Returns an array of the attachment s properties .