Image Magick Resize 語法
因為現在透過Paperclip這邊有一點小問題,所以先做一下小記錄
底下這個部分我再找時間整理成表格
語法 | 說明
scale% | Height and width both scaled by specified percentage. scale-x%xscale-y% | Height and width individually scaled by specified percentages. (Only one % symbol needed.) width | Width given, height automagically selected to preserve aspect ratio. xheight | Height given, width automagically selected to preserve aspect ratio. widthxheight | Maximum values of height and width given, aspect ratio preserved. widthxheight^ | Minimum values of width and height given, aspect ratio preserved. widthxheight! | Width and height emphatically given, original aspect ratio ignored. widthxheight> | Shrinks images with dimension(s) larger than the corresponding width and/or height dimension(s). widthxheight< | Enlarges images with dimension(s) smaller than the corresponding width and/or height dimension(s). area@ | Resize image to have specified area in pixels. Aspect ratio is preserved.
大致上就是這樣吧。