附件图片结构你知道在那配置吗?

你可以找到:system\config\image.php 这里面有配置头像,话题,问题和文章上传图片的配置。 其中 min square 是调用对应的裁剪的后图片,而非原图,在开发图片调用过程中尽量少调用原图,网页加载也快,图片也不会变形,节约宽带。 注意,运营的网站不宜配置,新站可以。
  <?php

$config['avatar_thumbnail'] = array(
	'min' => array(
		"w" => 32,
		"h" => 32
	),
	'mid' => array(
		"w" => 50,
		"h" => 50
	),
	'max' => array(
		"w" => 100,
		"h" => 100
	)
);

$config['topic_thumbnail'] = array(
	'min' => array(
		"w" => 32,
		"h" => 32
	),
	'mid' => array(
		"w" => 50,
		"h" => 50
	),
	'max' => array(
		"w" => 100,
		"h" => 100
	)
);

$config['attachment_thumbnail'] = array(
	'min' => array(
		"w" => 210,
		"h" => 130
	),
	'square' => array(
		"w" => 100,
		"h" => 100
	)
);

$config['feature_thumbnail'] = array(
	'min' => array(
		"w" => 32,
		"h" => 32
	),
	'mid' => array(
		"w" => 540,
		"h" => 240
	),
	'max' => array(
		"w" => 990,
		"h" => 240
	)
);

$config['chapter_thumbnail'] = array(
	'min' => array(
		"w" => 32,
		"h" => 32
	),
	'max' => array(
		"w" => 50,
		"h" => 50
	)
);

1 个评论

如果要提高品质要安装那个扩展吗?

要回复文章请先登录注册