Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114745 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 19655 invoked from network); 5 Jun 2021 20:54:42 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 5 Jun 2021 20:54:42 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 571651804BE for ; Sat, 5 Jun 2021 14:08:45 -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=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from forward101o.mail.yandex.net (forward101o.mail.yandex.net [37.140.190.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 5 Jun 2021 14:08:44 -0700 (PDT) Received: from forward100q.mail.yandex.net (forward100q.mail.yandex.net [IPv6:2a02:6b8:c0e:4b:0:640:4012:bb97]) by forward101o.mail.yandex.net (Yandex) with ESMTP id 7184A3C016D0 for ; Sun, 6 Jun 2021 00:08:41 +0300 (MSK) Received: from vla5-8f5c42dab783.qloud-c.yandex.net (vla5-8f5c42dab783.qloud-c.yandex.net [IPv6:2a02:6b8:c18:3512:0:640:8f5c:42da]) by forward100q.mail.yandex.net (Yandex) with ESMTP id 6C8A47080004 for ; Sun, 6 Jun 2021 00:08:41 +0300 (MSK) Received: from vla5-3832771863b8.qloud-c.yandex.net (vla5-3832771863b8.qloud-c.yandex.net [2a02:6b8:c18:3417:0:640:3832:7718]) by vla5-8f5c42dab783.qloud-c.yandex.net (mxback/Yandex) with ESMTP id W1n517w8d5-8fJOUBr7; Sun, 06 Jun 2021 00:08:41 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=php.watch; s=mail; t=1622927321; bh=GC4CHeRyp+oWpTrkL3uBteNLeCVLYm/GgtnP5kQw/l0=; h=To:Subject:From:In-Reply-To:Cc:Message-ID:Date:References; b=0lr3wz6BQZNbvN+kr5Ep/0U6QFShggSseoP12fz3gkKUafcTyW/xmbhyXGtuuSkr3 RBUqLigkArm24ApSwOn68B12Mz4jav4zE/QOj93bh4HAPnetsrN8FnjKNhGW/+6Cru fFqqVpVYeFaO9hDMZpN7tXjlYoixaNz3vZ1ieL/k= Authentication-Results: vla5-8f5c42dab783.qloud-c.yandex.net; dkim=pass header.i=@php.watch Received: by vla5-3832771863b8.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id psBaFP2hKs-8eKC6fQg; Sun, 06 Jun 2021 00:08:40 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Received: by mail-ot1-f49.google.com with SMTP id i14-20020a9d624e0000b029033683c71999so12746747otk.5 for ; Sat, 05 Jun 2021 14:08:40 -0700 (PDT) X-Gm-Message-State: AOAM533XviM690rK4GRUF7Fs9lG/tB03Fici/kTvRjR0F9RsGKYocjhE AgjGFKPpa30icLDq2wKkYBFzp1YPEg4UE6vHI+Q= X-Google-Smtp-Source: ABdhPJwLvFZAUISszi6Jl0r688rX2ju6+9OLy2M0gJqLUrf7F4HOaDuD7pn04p38s+TMKowyIK6qGk2N26ViXKQOytU= X-Received: by 2002:a9d:1927:: with SMTP id j39mr8731808ota.102.1622927318584; Sat, 05 Jun 2021 14:08:38 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sun, 6 Jun 2021 02:38:13 +0530 X-Gmail-Original-Message-ID: Message-ID: To: Ben Morss Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Propagating AVIF support from libgd into PHP's bundled gd From: ayesh@php.watch (Ayesh Karunaratne) Hi Ben, Thank you for opening this PR and the discussion. With the wide availability of AVIF/AV1 support in browsers, I think this will fit nicely. We have the Namespaces in Bundled Extensions RFC (https://wiki.php.net/rfc/namespaces_in_bundled_extensions) passed, so perhaps, the new functions are probably better in the `Gd` namespace? This would mean the new functions would be `\Gd\imagecreatefromavif` and `\Gd\imageavif`. They are inconsistent with the existing functions of course, but I thought to mention it because it's a recent proposal and I don't think we added new functions after that RFC. Some examples are recently renamed PHP classes in IMAP, Pgsql, LDAP, and FTP extensions to follow this new proposal. --- Thank you. Ayesh. On Fri, Jun 4, 2021 at 8:06 PM Ben Morss via internals wrote: > > 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