From 4138f71680ed80455d0b6e29c014ec3e506d738d Mon Sep 17 00:00:00 2001 From: tofulm Date: Tue, 9 Mar 2021 19:03:24 +0100 Subject: [PATCH] on supprime le hash, on le remplace par 3 criteres hauteur / largeur / taille up de z --- bigform_pipelines.php | 4 +++- paquet.xml | 2 +- retailler_img.html | 4 +--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bigform_pipelines.php b/bigform_pipelines.php index a7211f8..c69d2aa 100644 --- a/bigform_pipelines.php +++ b/bigform_pipelines.php @@ -35,7 +35,9 @@ function bigform_post_edition($flux){ ) { $url = generer_url_public("retailler_img", [ "id_document" =>intval($id_document), - "hash" => md5(date("Y-m-d")) + "largeur" => $flux['data']['largeur'], + "hauteur" => $flux['data']['hauteur'], + "taille" => $flux['data']['taille'], ], true, false); $ch = curl_init($url); diff --git a/paquet.xml b/paquet.xml index 4812f3e..ac2b736 100644 --- a/paquet.xml +++ b/paquet.xml @@ -1,7 +1,7 @@ + [(#FICHIER|image_recadre{3072:1800,-,focus}|adaptive_images{3072})] [(#FICHIER|image_recadre{2048:1200,-,focus}|adaptive_images{2048})] [(#FICHIER|image_recadre{1024:600,-,focus}|adaptive_images{1024})]