2007-04-17
MT PhotoGallery の投稿サイズ変更
忘れそうな事を書いておく
Plugins/PhotoGallery/lib/PhotoGallery/App.pm
line570付近にリサイズの指定がある。
デフォルト
$thumb_html = $app->resize_upload($base_url, $base_path,
$fname, ‘thumb’,
{ Width => 90 });
$full_html = $app->resize_upload($base_url, $base_path,
$fname, ‘photo’,
{ Width => 480 });
} else {
$thumb_html = $app->resize_upload($base_url, $base_path,
$fname, ‘thumb’,
{ Width => ((90 * $w) / $h) });
$full_html = $app->resize_upload($base_url, $base_path,
$fname, ‘photo’,
{ Width => ((480 * $w) / $h) });
}
これを変えると投稿時のサイズ変更が可能 ただし大きくしすぎると例によって500error続発。