开发者

What do scale and inflate do in the ImageMagick file resizer class

I am using ImageMagick via Symfony to resize images in PHP.

The sfThumbnailer class uses 'scale' and 'inflate' parameters to interface with ImageMagick. What do they do and how will they affect my results?

I realise this is a RTM question, but I already have, and the documentation is not clear.

Image Magick Documentation

Symfony Thumbnail Documentation开发者_运维知识库

Thanks.


Scale

Scale maintains aspect ratio. If set, then aspect will be maintained.

Inflate

Inflate tells script to scale image upward if required. I.e. if set true, then it might increase the width or height if the given width and height are bigger than original width and height.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜