amp-web-push-widget button.amp-subscribe { display: inline-flex; align-items: center; border-radius: 5px; border: 0; box-sizing: border-box; margin: 0; padding: 10px 15px; cursor: pointer; outline: none; font-size: 15px; font-weight: 500; background: #4A90E2; margin-top: 7px; color: white; box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.5); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .amp-logo amp-img{width:190px} .amp-menu input{display:none;}.amp-menu li.menu-item-has-children ul{display:none;}.amp-menu li{position:relative;display:block;}.amp-menu > li a{display:block;} /* Inline styles */ img.acss139cf{background-color:#0866FF;}img.acss6ea51{background-color:#12AF0A;}img.acss43e08{background-color:#888990;}img.acss69ec8{background-color:#1A1A1A;}img.acssc8f88{background-color:#0166ff;}div.acss138d7{clear:both;}div.acssf5b84{--relposth-columns:3;--relposth-columns_m:2;--relposth-columns_t:2;}div.acssd603c{aspect-ratio:1/1;background:transparent url(https://pc3mag.com/wp-content/uploads/2019/03/1552362553638473-150x150.jpg) no-repeat scroll 0% 0%;height:150px;max-width:150px;}div.acss6bdea{color:#333333;font-family:Arial;font-size:12px;height:75px;}div.acss5a320{aspect-ratio:1/1;background:transparent url(https://pc3mag.com/wp-content/uploads/2023/09/Capture.hk-Cover-150x150.jpg) no-repeat scroll 0% 0%;height:150px;max-width:150px;}div.acss6e73f{aspect-ratio:1/1;background:transparent url(https://pc3mag.com/wp-content/uploads/2024/06/Apple-WWDC24-iOS-18-iPhone-15-Pro-3-up-240610_big.jpg.large_2x-150x150.jpg) no-repeat scroll 0% 0%;height:150px;max-width:150px;}div.acss5892c{aspect-ratio:1/1;background:transparent url(https://pc3mag.com/wp-content/uploads/2021/09/螢幕截圖-2021-09-14-17.19.07-scaled-150x150.jpg) no-repeat scroll 0% 0%;height:150px;max-width:150px;} .ai-align-left * {margin: 0 auto 0 0; text-align: left;} .ai-align-right * {margin: 0 0 0 auto; text-align: right;} .ai-center * {margin: 0 auto; text-align: center; } .icon-widgets:before {content: "\e1bd";}.icon-search:before {content: "\e8b6";}.icon-shopping-cart:after {content: "\e8cc";}

Google新算法 將JPEG文件大小縮小了35%

Google在2014年使用WebP格式的將圖片大小縮小了10%,現在Google再推出新算法Guetzli,一種開放源代碼算法,能令JPEG的編碼大小比當前產生的圖像小35%!

Google指這種縮小方法類似於縮小PNG和gzip文件的Zopfli算法,而無需創建新格式檔。在圖片壓縮的成果方面,大家可以參考下面的圖片,Google表示相信用家會更喜歡Guetzli算法的圖像,圖像的顏色及視覺效果會比先前的算法更詳細更徹底。

唯一的壞處是Guetzli所需的壓縮時間會比libjpeg更長,大家可以比較下圖,左邊為未壓縮的圖像,libjpeg在中間,Guetzli的圖像在右邊。

 

來源:engadget

andy

熱愛電影、生活 ,俗語說人生如戲,但香港人經歷的戲又可有多少呢?(已離職)