V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
fenx
V2EX  ›  Web Dev

Safari 开始支持 WebP 了……

  •  1
     
  •   fenx · Jun 23, 2020 · 7024 views
    This topic created in 2136 days ago, the information mentioned may be changed or developed.

    https://caniuse.com/#feat=webp

    20200623-144946.png

    自 iOS14 和 macOS11 开始

    17 replies    2023-07-04 14:32:05 +08:00
    zhangsimon
        1
    zhangsimon  
       Jun 23, 2020
    浏览器支持了,那那些图片软件也都赶紧更新下吧
    现在 chrome 下载的 webp,本地看不了,主流图片编辑器也都不支持…
    害得我有时候还必须换到 Safari 下加载普通图片格式…
    GeekSky
        2
    GeekSky  
       Jun 23, 2020
    Photoshop 和 Wordpress 还不支持……
    cco
        3
    cco  
       Jun 23, 2020
    @GeekSky WordPress 可以通过插件支持。PS 嘛~~ 没办法,自己转换吧。
    wpblank
        4
    wpblank  
       Jun 23, 2020
    试了下之前自己发的一篇博客 确实支持了
    yimity
        5
    yimity  
       Jun 23, 2020
    各种图片编辑查看软件支持之后,开始要成为主流了吧?
    youxiachai
        7
    youxiachai  
       Jun 23, 2020
    windows 的画图支持 webp....哈哈
    xyjincan
        8
    xyjincan  
       Jun 23, 2020
    6
    xiangyuecn
        9
    xiangyuecn  
       Jun 23, 2020   ❤️ 1
    Safari 这玩意,有些功能不支持还好,支持了还一堆 bug,当代 IE 的美誉 受之无愧😏
    zhangsimon
        10
    zhangsimon  
       Jun 23, 2020
    @youxiachai 日,扫地僧的感脚
    love4taylor
        11
    love4taylor  
    PRO
       Jun 23, 2020
    好事。
    Michelangelono
        12
    Michelangelono  
       Jun 23, 2020 via Android
    现在才支持……
    jmyz0455
        13
    jmyz0455  
       Jun 23, 2020
    终于来了。
    renyiqiu
        14
    renyiqiu  
       Jun 23, 2020
    还需努力
    unicloud
        15
    unicloud  
       Jun 24, 2020
    希望 WebP 能尽快普及,Safari 不支持 WebP 要做好多额外工作,不然,我也不会没事儿写这个图片格式转换工具了 https://www.dute.org/image-converter
    NewIPIsComing
        16
    NewIPIsComing  
       Jun 24, 2020 via Android   ❤️ 1
    WordPress 不用插件的話也可以編輯 function.php 實現支持 webp

    //** *From https://mariushosting.com/how-to-upload-webp-files-on-wordpress/*/
    //** *Enable upload for webp image files.*/
    function webp_upload_mimes($existing_mimes) {
    $existing_mimes['webp'] = 'image/webp';
    return $existing_mimes;
    }
    add_filter('mime_types', 'webp_upload_mimes');

    //** * Enable preview / thumbnail for webp image files.*/
    function webp_is_displayable($result, $path) {
    if ($result === false) {
    $displayable_image_types = array( IMAGETYPE_WEBP );
    $info = @getimagesize( $path );

    if (empty($info)) {
    $result = false;
    } elseif (!in_array($info[2], $displayable_image_types)) {
    $result = false;
    } else {
    $result = true;
    }
    }

    return $result;
    }
    add_filter('file_is_displayable_image', 'webp_is_displayable', 10, 2);
    magicdawn
        17
    magicdawn  
       Jul 4, 2023 via Android
    2023 safari 支持 avif 了,但是花屏
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1015 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 63ms · UTC 22:09 · PVG 06:09 · LAX 15:09 · JFK 18:09
    ♥ Do have faith in what you're doing.