【发布时间】:2015-01-15 16:19:45
【问题描述】:
我已经上传了 blueimp jquery 文件。我试图制作更多的 image_versions。 第一个和最后一个 image_version 确实有效。在我的情况下,''、'small' 和 'thumbnail' 有效,另一个不工作。 在其他 image_versions 图像将被上传,但不会调整到正确的大小。
这是我的代码片段:
'image_versions' => array(
// The empty image version key defines options for the original image:
'' => array(
// Automatically rotate images based on EXIF meta data:
'auto_orient' => true
),
'small' => array(
'max_width' => 150,
'max_height' => 150
),
'medium' => array(
'max_width' => 200,
'max_height' => 200
),
'large' => array(
'max_width' => 400,
'max_height' => 400
),
'xlarge' => array(
'max_width' => 600,
'max_height' => 600
),
'square' => array(
'crop' => true,
'max_width' => 300,
'max_height' => 300
),
'thumbnail' => array(
'max_width' => 100,
'max_height' => 100
)
)
【问题讨论】:
标签: jquery image blueimp uploader