📜  htaccess 中的图像裁剪 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:24.905000             🧑  作者: Mango

代码示例1
# BEGIN ImageResizing

RewriteEngine on
RewriteBase /
# scaling small, medium, large
RewriteRule ^img-small/([A-Za-z0-9/_-]+).(jpg|gif|png)$ images.php?max_width=100&imgfile=$1.$2
RewriteRule ^img-medium/([A-Za-z0-9/_-]+).(jpg|gif|png)$ images.php?max_width=230&imgfile=$1.$2
RewriteRule ^img-large/([A-Za-z0-9/_-]+).(jpg|gif|png)$ images.php?max_width=470&imgfile=$1.$2

# END ImageResizing