Deutsch   English   Français   Italiano  
<tga0am$396$13@ns507557.dodin.fr.nf>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder6.news.weretis.net!i2pn.org!dodin.fr.nf!not-for-mail
From: jdd <jdd@dodin.org>
Newsgroups: fr.rec.photo,fr.comp.infosystemes.www.auteurs
Subject: =?UTF-8?Q?Re=3a_Int=c3=a9gration_de_photos_dans_un_fond_standard?=
Date: Mon, 19 Sep 2022 17:02:46 +0200
Organization: Le serveur de jdd pour fr*
Message-ID: <tga0am$396$13@ns507557.dodin.fr.nf>
References: <tcgmnf$426$1@shakotay.alphanet.ch>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 19 Sep 2022 15:02:46 -0000 (UTC)
Injection-Info: ns507557.dodin.fr.nf; logging-data="3366"; posting-host="kfdTAj6MFKLqourm7LMgXw.user.ns507557.dodin.fr.nf"; mail-complaints-to="abuse@dodin.fr.nf";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.2.2
Cancel-Lock: sha256:xP/Ey9MYNefPuquXEjYVrl18IZKrSuyCGfff4Sh/s7w=
X-Notice: Filtered by postfilter v. 0.9.3
Content-Language: fr
Bytes: 1671
Lines: 25

Le 04/08/2022 à 16:56, "Benoît L." a écrit :

> L'idée est donc d'intégrer automatiquement une photo en la limitant en
> hauteur ou largeur (portrait vs paysage) aux dimensions jugées
> maximales/idéales.

une fois pour toutes, ou avec des photos téléchargées dynamiquement?

j'ai un script à base d'imagemagic, mais il marche mal, donc à réviser. 
Je l'ai fait pour mettre des photos dans un cadre 1200x800

#!/bin/bash
for a ; do
echo $a
mogrify -resize 1200x800 $a
w=`identify -format "%w" $a`
b=$(((1200-$w)/2))
mogrify -bordercolor "#000000" -border "($b)x0"  $a

done
exit

-- 
mon serveur dodin.fr.nf