Skip to content
Extraits de code Groupes Projets
Valider 48e687c5 rédigé par marcimat's avatar marcimat
Parcourir les fichiers

Réparer `[(#CHEMIN{image.svg}|image_recadre{3:2,+,center,transparent})]`

qui buggue sur des images à recadrer à cause du `transparent` qui forcait des images en PNG,
même dans le cas de SVG.
parent fe79d12d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -385,7 +385,9 @@ function image_recadre($im, $width, $height='-', $position = 'center', $backgrou
if ($background_color === 'transparent') {
if ($width > $x_i or $height > $y_i) {
$forcer_format = 'png';
if ($image['format_source'] !== 'svg') {
$forcer_format = 'png';
}
$image = _image_valeurs_trans($im, "recadre-$width-$height-$position-$background_color", $forcer_format, $fonction, false, _SVG_SUPPORTED);
}
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter