Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > fr.comp.os.unix > #7836

Re: imagemagick

From Thomas <fantome.forums.tDeContes@free.fr.invalid>
Newsgroups fr.comp.os.unix
Subject Re: imagemagick
References <fantome.forums.tDeContes-4DA7F8.22020718102021@news.free.fr> <it63ieFhgt4U1@mid.individual.net> <fantome.forums.tDeContes-339A40.00125719102021@news.free.fr>
Date 2021-10-20 02:14 +0200
Message-ID <fantome.forums.tDeContes-F7FF88.02144620102021@news.free.fr> (permalink)
Organization Guest of ProXad - France

Show all headers | View raw


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/

Back to fr.comp.os.unix | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

imagemagick Thomas <fantome.forums.tDeContes@free.fr.invalid> - 2021-10-18 22:02 +0200
  Re: imagemagick pehache <pehache.7@gmail.com> - 2021-10-18 22:25 +0200
    Re: imagemagick Thomas <fantome.forums.tDeContes@free.fr.invalid> - 2021-10-19 00:12 +0200
      Re: imagemagick Nicolas George <nicolas$george@salle-s.org> - 2021-10-19 10:16 +0000
        Re: imagemagick Olivier Miakinen <om+news@miakinen.net> - 2021-10-19 14:08 +0200
        Re: imagemagick Thomas <fantome.forums.tDeContes@free.fr.invalid> - 2021-10-20 03:12 +0200
          Re: imagemagick pehache <pehache.7@gmail.com> - 2021-10-20 07:50 +0200
            Re: imagemagick Thomas <fantome.forums.tDeContes@free.fr.invalid> - 2021-10-21 22:39 +0200
              Re: imagemagick pehache <pehache.7@gmail.com> - 2021-10-22 16:43 +0000
                Re: imagemagick Thomas <fantome.forums.tDeContes@free.fr.invalid> - 2021-11-30 03:08 +0100
                Re: imagemagick pehache <pehache.7@gmail.com> - 2021-11-30 22:27 +0100
                Re: imagemagick Thomas <fantome.forums.tDeContes@free.fr.invalid> - 2021-12-01 02:25 +0100
                Re: imagemagick Thomas <fantome.forums.tDeContes@free.fr.invalid> - 2021-12-19 15:44 +0100
                Re: imagemagick pehache <pehache.7@gmail.com> - 2022-01-02 13:54 +0100
      Re: imagemagick Thomas <fantome.forums.tDeContes@free.fr.invalid> - 2021-10-20 02:14 +0200
        Re: imagemagick pehache <pehache.7@gmail.com> - 2021-10-20 07:44 +0200
          Re: imagemagick pehache <pehache.7@gmail.com> - 2021-10-20 07:54 +0200
            Re: imagemagick Benoit Izac <use.reply.to@INVALID.ADDRESS> - 2021-10-20 09:20 +0200
              Re: imagemagick pehache <pehache.7@gmail.com> - 2021-10-20 15:24 +0000
        Re: imagemagick Benoit Izac <use.reply.to@INVALID.ADDRESS> - 2021-10-20 07:50 +0200
          Re: imagemagick Thomas <fantome.forums.tDeContes@free.fr.invalid> - 2021-10-21 22:13 +0200
            Re: imagemagick Benoit Izac <use.reply.to@INVALID.ADDRESS> - 2021-10-22 07:56 +0200
              Re: imagemagick Thomas <fantome.forums.tDeContes@free.fr.invalid> - 2021-11-30 01:34 +0100
            Re: imagemagick Alain Ketterlin <alain@universite-de-strasbourg.fr.invalid> - 2021-10-22 10:05 +0200
              Re: imagemagick Thomas <fantome.forums.tDeContes@free.fr.invalid> - 2021-11-30 01:32 +0100
  Re: imagemagick Nicolas George <nicolas$george@salle-s.org> - 2021-10-19 10:14 +0000
  Re: imagemagick khtmhai5 <nospam_khtmhai5@gmail.com.invalid> - 2022-06-21 05:21 -0500

csiph-web