Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114728 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 90667 invoked from network); 4 Jun 2021 14:22:50 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 4 Jun 2021 14:22:50 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4F2D11804CC for ; Fri, 4 Jun 2021 07:36:37 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-14.9 required=5.0 tests=BAYES_50,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-yb1-f173.google.com (mail-yb1-f173.google.com [209.85.219.173]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 4 Jun 2021 07:36:36 -0700 (PDT) Received: by mail-yb1-f173.google.com with SMTP id m9so7524702ybo.5 for ; Fri, 04 Jun 2021 07:36:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=KvpjLZGxysDN1dE6klrJg5IiZ1fyKYvwCq4mXn8FNvA=; b=pEpx9zM6fjedpBj/L71HYGFY9eEhoSRr52lSNeVOk3G0KdgeH2V1hdVbJeWyF++uPf pegqo8moNbmVdj4xV2+TdV1t69XmmkOJheg/iG/WZbmTuxkqcRzPuo16c2z0mH2SxjFO TLF2qYmCEuxDI/1xAtYpXgwRiJBorZ8Kp7TOQnpjX36toqsjViW+mkdJ3JeX2mKLV5Ua i0tyXzQQAcnjdT75TC3Ff8eSLTlry47Qsm8hvqMM50uyTfqtx65Vef4R3S73nZRxLaX8 w4vp4B660QHzTX0dZWofoDILQGGOvuJRpjUqZnQ5EPRkKk2OUwVRjWQyVLD7m4Sn01oY hJvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=KvpjLZGxysDN1dE6klrJg5IiZ1fyKYvwCq4mXn8FNvA=; b=TycAJQ2BJannUDBgzx2W+rTFD9TvmJ6Fur/Drm1MbJe7U0mvAkViAwYrpVBNjCwWT9 12wFr31CJ/QZj67i+jdlANx+MzTt9SeEQko29xdYqDhyzVmF1moPWgPXf9Wus9omnNbW VbqyWxHf8dbQnqeDp6opEDFQS+V9sUpXXELrfkMVx3/K/mUbga+i/cC8OICVjx3pz9db X53FZQlxDr1X+DyK5Kt8AjvUcBnAD3J6Hl32NNvIe3hqkBIFnUiCYCfufB4Pcdb1B8I0 nHvLkPWeOjrL3Q6a9VHGHRr3JKMP5Rf6T9x1cT6Q1foepgc+O0UsqTnPXYo2qx0bGj4q Hoig== X-Gm-Message-State: AOAM5329RBjdw7AiAUJfTRmOWb1hjA8oIcaFJjBlHe0zTF94HhThZuti MQFgHDWN8PWpZswPq3+KiJn4xyTI/mP8h7uuf3+yhA2+Nt1s3XXp X-Google-Smtp-Source: ABdhPJzeN8ru9el//B1H5lCEU2R4ktoe2nO0u6yCdmyG3sg1lKZDbmuWR3bo68yZ8mz0pvegbcsiZkdZ5Tk8upl8zvM= X-Received: by 2002:a25:6185:: with SMTP id v127mr5718572ybb.0.1622817394031; Fri, 04 Jun 2021 07:36:34 -0700 (PDT) MIME-Version: 1.0 Reply-To: Ben Morss Date: Fri, 4 Jun 2021 10:36:18 -0400 Message-ID: To: internals@lists.php.net, "Christoph M. Becker" Content-Type: multipart/alternative; boundary="0000000000004f036705c3f19ea6" Subject: Propagating AVIF support from libgd into PHP's bundled gd From: internals@lists.php.net ("Ben Morss via internals") --0000000000004f036705c3f19ea6 Content-Type: text/plain; charset="UTF-8" Hello, everyone! Earlier this year, I added support for AVIF images to libgd . My ultimate goal was to bring support for this new image format to PHP, so that the world's top CMSs could let sites serve AVIFs. Recently, @Christoph M. Becker and Nikita have kindly been guiding me as I created a PR to propagate libgd's AVIF support into PHP's bundled gd fork. This would create two new PHP functions for systems with gd enabled: imagecreatefromavif() and imageavif(). Additionally it would add AVIF awareness to imagetypes(). This PR now looks ready to go. Christoph advised me to write to this list to ask folks to take a look, and to see if there are any objections to merging it! If the group approves the first PR, my plan is to finish another PR to add AVIF support to the non-gd image function getimagesize() . In the same PR, I plan to add support to PHP's internal _php_image_type() function, which is used in imagecreatefromstring(). Thanks for your help with all of this! All best, Ben Morss --0000000000004f036705c3f19ea6--