Re: imagemagick

Liste des GroupesRevenir à fco unix 
Sujet : Re: imagemagick
De : fantome.forums.tDeContes (at) *nospam* free.fr.invalid (Thomas)
Groupes : fr.comp.os.unix
Date : 20. Oct 2021, 02:14:47
Autres entêtes
Organisation : Guest of ProXad - France
Message-ID : <fantome.forums.tDeContes-F7FF88.02144620102021@news.free.fr>
References : 1 2 3
User-Agent : MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)
In article
<fantome.forums.tDeContes-339A40.00125719102021@news.free.fr>,
 Thomas <fantome.forums.tDeContes@free.fr.invalid> wrote:

In article <it63ieFhgt4U1@mid.individual.net>,
 pehache <pehache.7@gmail.com> wrote:
 
Le 18/10/2021 à 22:02, Thomas a écrit :
 
1)
est-il possible de convertir un paquet d'images en même temps ?
 
avec une opération du genre :
convert *.xpm *.jpg
 
le but étant bien entendu qu'il reprenne le nom de chaque image, pour
fabriquer la nouvelle en ne changeant que l'extension.
 
for file in *.xpm ; do
     convert "$file" $(basename "$file").jpg
done

mais puisque tu m'as donné le script, je vais m'en servir,
merci bien :-)


j'ai trouvé pour le taper sur 1 ligne :
$ for file in *.xpm ; do convert "$file" $(basename "$file").png ; done


2 questions :

1)
$ basename frame_gif.xpm
me donne
frame_gif.xpm
quel est le pb ?

2)
le basename de toutes mes images se termine par "_gif",
puis-je en profiter pour supprimer cette "extension" qui me semble
inutile, avec une formule pas trop compliquée en bash ?

si non, c'est pas grave, je sais le faire en make.

--
RAPID maintainer
http://savannah.nongnu.org/projects/rapid/

Date Sujet#  Auteur
18 Oct 21 * imagemagick26Thomas
18 Oct 21 +* Re: imagemagick24pehache
19 Oct 21 i`* Re: imagemagick23Thomas
19 Oct 21 i +* Re: imagemagick11Nicolas George
19 Oct 21 i i+- Re: imagemagick1Olivier Miakinen
20 Oct 21 i i`* Re: imagemagick9Thomas
20 Oct 21 i i `* Re: imagemagick8pehache
21 Oct 21 i i  `* Re: imagemagick7Thomas
22 Oct 21 i i   `* Re: imagemagick6pehache
30 Nov 21 i i    `* Re: imagemagick5Thomas
30 Nov 21 i i     `* Re: imagemagick4pehache
1 Dec 21 i i      `* Re: imagemagick3Thomas
19 Dec 21 i i       `* Re: imagemagick2Thomas
2 Jan 22 i i        `- Re: imagemagick1pehache
20 Oct 21 i `* Re: imagemagick11Thomas
20 Oct 21 i  +* Re: imagemagick4pehache
20 Oct 21 i  i`* Re: imagemagick3pehache
20 Oct 21 i  i `* Re: imagemagick2Benoit Izac
20 Oct 21 i  i  `- Re: imagemagick1pehache
20 Oct 21 i  `* Re: imagemagick6Benoit Izac
21 Oct 21 i   `* Re: imagemagick5Thomas
22 Oct 21 i    +* Re: imagemagick2Benoit Izac
30 Nov 21 i    i`- Re: imagemagick1Thomas
22 Oct 21 i    `* Re: imagemagick2Alain Ketterlin
30 Nov 21 i     `- Re: imagemagick1Thomas
19 Oct 21 `- Re: imagemagick1Nicolas George

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal