欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

Intervention/image get image size 得到图像的大小 宽度高度 宽高 有大用

width — Get width of image

Description

public Intervention\Image\Image width()

Returns the width in pixels of the current image.

Parameters

none

Return Values

Width of current image as integer

Examples

// read width of image
$width = Image::make('public/foo.jpg')->width();


See also 

来自 http://image.intervention.io/api/width


height — Get height of image

Description

public Intervention\Image\Image height()

Returns the height in pixels of the current image.

Parameters

none

Return Values

Height of current image as integer

Examples

// read height of image
$height = Image::make('public/foo.jpg')->height();


See also

来自  http://image.intervention.io/api/height

普通分类: