Retourner au contenu associé (entrée de forum : renommer les fichier par script en nom_dossier_jour.jpg)
Posté par gotcha5832 le 08 janvier 2010 à 14:08. En réponse au message renommer les fichier par script en nom_dossier_jour.jpg. Évalué à 1.
identify -format '%w' $image $width identify -format '%h' $image $height ratio=$(($width / $height)) if [ratio...
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
[^] # Re: suite
Posté par gotcha5832 . En réponse au message renommer les fichier par script en nom_dossier_jour.jpg. Évalué à 1.
j'ai trouver la fonction identify
qui permet de récupérer l'information que l'on veux sur un fichier
j'ai donc fais:
identify -format '%w' $image $width
identify -format '%h' $image $height
ratio=$(($width / $height))
if [ratio...
mais à chaque fois il me renvoie bien le résultat des identify mais les variable width et height reste vite.
j'arrive pas à trouver la bonne syntaxe.