1
我測試了我的網站在谷歌頁面速度,他們建議我服務圖像重新調整。在php中自動縮放圖像
現在爲縮略圖我使用這個PHP
<?php
if($ad_thumbnails)
{
if ($row['picfile']) $picfile = "{$datadir[adpics]}/{$row[picfile]}";
else $picfile = "images/noimage2.png";
$imgsize = GetThumbnailSize($picfile, $tinythumb_max_width, $tinythumb_max_height);
?>
會是怎樣通過上面的代碼修改自動重新調整圖像的最佳做法是什麼?
拖放解決方案在此處有一個更新版本:https://github.com/lencioni/SLIR – 2012-04-18 07:02:29