From 9d65212dda80493539a3b4ee7cb1b96207d77ce4 Mon Sep 17 00:00:00 2001 From: Vitor Eltz <107409234+VitorAEltz@users.noreply.github.com> Date: Thu, 3 Oct 2024 16:51:39 -0300 Subject: [PATCH] Update image-processor.mdx (#1218) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update image-processor.mdx * Update image-processor.mdx * Update src/content/docs/en/pages/main-menu/reference/build/edge-application/image-processor.mdx Co-authored-by: Mariana Bellorín Aguilera <89138244+MarianaAguilera@users.noreply.github.com> --------- Co-authored-by: Guilherme Afonso Oliveira Co-authored-by: Mariana Bellorín Aguilera <89138244+MarianaAguilera@users.noreply.github.com> --- .../build/edge-application/image-processor.mdx | 11 ++--------- .../build/edge-application/image-processor.mdx | 11 ++--------- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/src/content/docs/en/pages/main-menu/reference/build/edge-application/image-processor.mdx b/src/content/docs/en/pages/main-menu/reference/build/edge-application/image-processor.mdx index 0a37829fd1..9edbf2570f 100644 --- a/src/content/docs/en/pages/main-menu/reference/build/edge-application/image-processor.mdx +++ b/src/content/docs/en/pages/main-menu/reference/build/edge-application/image-processor.mdx @@ -175,18 +175,11 @@ Therefore, the PNG image `http://yourdomain.com/image.png?ims=filters:format(gif

[![Image_Processor_1](/assets/docs/images/image-processor/Image_Processor_1.png?ims=filters:format(gif))](/assets/docs/images/image-processor/Image_Processor_1.png?ims=filters:format(gif))

:::caution -To convert an image to WEBP, you must send the header `Accept: image/webp` in the request. +To convert an image to AVIF, you must send the header `Accept: image/avif` in the request. ::: :::caution -By default, the Image Processor uses the WEBP format for automatic image conversion. To make the AVIF format the default format delivery format, you need to create a rule in the Rules Engine of the Edge Application filtering `Accept: image/avif`. - -In the Rules Engine tab of the edge application, add or edit a Request rule for one or more image paths. -In the Criteria section, select the variable to indicate the path of the images in your source: - -`If matches Accept: image/avif` - -To convert an image to AVIF, you must send the header `Accept: image/avif` in the request. +To convert an image to WEBP, you must send the header `Accept: image/webp` in the request. ::: --- diff --git a/src/content/docs/pt-br/pages/menu-principal/referencia/build/edge-application/image-processor.mdx b/src/content/docs/pt-br/pages/menu-principal/referencia/build/edge-application/image-processor.mdx index 0f2aa75fa7..49b6220119 100644 --- a/src/content/docs/pt-br/pages/menu-principal/referencia/build/edge-application/image-processor.mdx +++ b/src/content/docs/pt-br/pages/menu-principal/referencia/build/edge-application/image-processor.mdx @@ -185,18 +185,11 @@ Portanto, a imagem PNG `http://yourdomain.com/image.png?ims=filters:format(gif)`

[![Image_Processor_1](/assets/docs/images/image-processor/Image_Processor_1.png?ims=filters:format(gif))](/assets/docs/images/image-processor/Image_Processor_1.png?ims=filters:format(gif))

:::caution -Para converter uma imagem em WEBP, você deve enviar o cabeçalho `Accept: image/webp` na requisição. +Para converter uma imagem em AVIF, você deve enviar o cabeçalho `Accept: image/avif` na requisição. ::: :::caution -Por padrão, o Image Processor utiliza o formato WEBP para conversão automática das imagens. Para tornar o formato AVIF como padrão de entrega de formato, é necessário criar uma regra no Rules Engine no Edge Application filtrando o `Accept: image/avif`. - -Na aba Rules Engine da edge application, adicione ou edite uma regra Request para um ou mais caminhos de imagem. -Na seção Criteria, selecione a variável para indicar o caminho das imagens na sua origem: - -`If matches Accept: image/avif` - -Para converter uma imagem em AVIF, você deve enviar o cabeçalho `Accept: image/avif` na requisição. +Para converter uma imagem em WEBP, você deve enviar o cabeçalho `Accept: image/webp` na requisição. ::: ---