| Version 1 (modified by heke, 11 years ago) (diff) |
|---|
原图: http://img.pconline.com.cn/images/upload/upc/tx/itbbs/1402/13/c10/31233039_1392306126700.jpg img*rt 支持等比压缩、裁剪、定高压缩、定宽压缩, 默认75质量
等比压缩 http://img(*)rt.pconline.com.cn/images/upload/upc/tx/itbbs/1402/13/c10/spcgroup/proportion_300x300(,qua_80)/31233039_1392306126700.jpg 裁剪 http://img(*)rt.pconline.com.cn/images/upload/upc/tx/itbbs/1402/13/c10/spcgroup/center_300x300(,qua_80)/31233039_1392306126700.jpg 定宽 http://img(*)rt.pconline.com.cn/images/upload/upc/tx/itbbs/1402/13/c10/spcgroup/width_300(,qua_80)/31233039_1392306126700.jpg 定高 http://img(*)rt.pconline.com.cn/images/upload/upc/tx/itbbs/1402/13/c10/spcgroup/height_300(,qua_80)/31233039_1392306126700.jpg
图是img 就imgrt 图是img0 就img0rt 那个(*)是这个意思 实际在这里的例子是img 所以访问要去掉(*) (,qua_80) 可选, 需要控制质量 就把括号去掉, 不需要就整个去掉 (质量默认75) 一般默认就可以
例如: 拿聚超值的一张图片 原图: http://img.pconline.com.cn/images/upload/upc/tx/pc_best/1509/18/c4/12847946_1442568988142.jpg
这样访问: 等比压缩 500X500,质量80% http://imgrt.pconline.com.cn/images/upload/upc/tx/pc_best/1509/18/c4/spcgroup/proportion_500x500,qua_80/12847946_1442568988142.jpg 等比压缩 500X500,默认质量(75%) http://imgrt.pconline.com.cn/images/upload/upc/tx/pc_best/1509/18/c4/spcgroup/proportion_500x500/12847946_1442568988142.jpg
裁剪 500X500,质量80% http://imgrt.pconline.com.cn/images/upload/upc/tx/pc_best/1509/18/c4/spcgroup/center_500x500,qua_80/12847946_1442568988142.jpg
定宽 width_500 http://imgrt.pconline.com.cn/images/upload/upc/tx/pc_best/1509/18/c4/spcgroup/width_500/12847946_1442568988142.jpg
例子2: http://img.pconline.com.cn/images/upload/upc/tx/pc_best/1509/22/c1/13007812_1442892047156.jpg http://img.pconline.com.cn/images/upload/upc/tx/pc_best/1509/22/c1/13007812_1442892047156_300x300.jpg
其他规则一样。
插入点在这里:spcgroup/proportion_500x500,qua_80
Attachments
-
图片动态压缩规则20150923.txt
(2.2 KB) -
added by heke 11 years ago.
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)