移除不必要的程式碼以縮小SVG檔案大小
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 160" width="240" height="240" xml:space="preserve" ><defs><linearGradient id="bg" x1="0%" y1="0%" x2="100%" y2="100%" ><stop offset="0%" stop-color="#6366f1" stop-opacity="1" /><stop offset="100%" stop-color="#8b5cf6" stop-opacity="1" /></linearGradient><linearGradient id="accent" x1="0%" y1="0%" x2="0%" y2="100%" ><stop offset="0%" stop-color="#c084fc" stop-opacity="1" /><stop offset="100%" stop-color="#6366f1" stop-opacity="1" /></linearGradient></defs><rect width="240" height="160" rx="16" ry="16" fill="url(#bg)" /><rect x="20" y="24" width="60" height="8" rx="4" ry="4" fill="#ffffff" fill-opacity="0.9" /><rect x="20" y="42" width="120" height="6" rx="3" ry="3" fill="#ffffff" fill-opacity="0.3" /><rect x="20" y="56" width="90" height="6" rx="3" ry="3" fill="#ffffff" fill-opacity="0.3" /><rect x="20" y="78" width="80" height="32" rx="8" ry="8" fill="url(#accent)" /><rect x="28" y="90" width="64" height="8" rx="4" ry="4" fill="#ffffff" fill-opacity="0.9" /><circle cx="190" cy="60" r="30" fill="#ffffff" fill-opacity="0.1" /><circle cx="190" cy="60" r="18" fill="#ffffff" fill-opacity="0.15" /><path d="M190 45a8 8 0 0 1 8 8c0 6-8 15-8 15s-8-9-8-15a8 8 0 0 1 8-8z" fill="#ffffff" fill-opacity="0.8" /><circle cx="190" cy="53" r="3" fill="#6366f1" /><rect x="20" y="128" width="200" height="6" rx="3" ry="3" fill="#ffffff" fill-opacity="0.15" /><rect x="20" y="140" width="140" height="6" rx="3" ry="3" fill="#ffffff" fill-opacity="0.1" /></svg>
SVG最佳化工具透過移除不必要的中繼資料、註解和冗餘程式碼來縮小SVG檔案大小,同時維持視覺品質。它在瀏覽器中執行,免費且不會儲存資料。非常適合最佳化頁面載入時間和減少頻寬的網頁開發者。