OVH Cloud OVH Cloud

convertir chaine en gif

25 réponses
Avatar
mikeomike
Comment peut-on convertir un fichier qui contien une simple chaine de
caracteres en fichier gif. J'ai essaye ImageMagick et j'optiens:
sh: line 1: gs: command not found

Ya-t-il quelque chose d'autre ? Preferablement une solution en Aqua
mais je suis pret a utiliser le terminal.

5 réponses

1 2 3
Avatar
langmc
Une bévue wrote:

wrote:

sudo /usr/local/bin/convert -size 500x100 xc:none -draw 'text
100,100 "Mon texte!"' fichier.png


chez moi, ça marche impec :
<http://81.57.96.20/~yvon/convert/fichier.png>

MAIS, bizarrement GraphicConverter 5.7 Beta X m'affiche :
<http://81.57.96.20/~yvon/convert/Image-fichier.png>
càd un fond noir ???


le 5.7.3 finale est sortie....

--
Le sage montre la lune, l'imbécile regarde le doigt.


Avatar
pere.noel
michel langlois wrote:

le 5.7.3 finale est sortie....


ok, merci, ça donne la même chose...
--
une bévue

Avatar
Olivier Croquette
wrote:

Essaie:

convert -size 500x100 xc:none -draw 'text 100,100 "Mon texte!"' fichier.png


J'optiens:

$:~ m1$ convert -size 500x100 xc:none -draw 'text 100,100 "Mon texte!"'
fichier.png
-bash: convert: command not found
$:~ m1$ sudo /usr/local/bin/convert -size 500x100 xc:none -draw 'text
100,100 "Mon texte!"' fichier.png


1. es-tu sûr que /usr/local/bin/convert est celui d'ImageMagick!?
Pour info, avec une install par Fink, ça donne:

$ type convert
convert is /sw/bin/convert
$ convert -h
Version: ImageMagick 5.5.1 10/15/02 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 2002 ImageMagick Studio LLC

Usage: Magick [options ...] file [ [options ...] file ...] [options ...]
file
[..]

2. Pourquoi tu veux toujours utiliser sudo? Cette action n'a pas besoin
de droits administrateurs.


Avatar
mikeomike
Olivier Croquette wrote:

snip

1. es-tu sûr que /usr/local/bin/convert est celui d'ImageMagick!?
Pour info, avec une install par Fink, ça donne:


Il faut dire que je n'ai pas utilise Fink


$ type convert
convert is /sw/bin/convert
$ convert -h
Version: ImageMagick 5.5.1 10/15/02 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 2002 ImageMagick Studio LLC


$ type convert
-bash: type: convert: not found
$ convert -h
-bash: convert: command not found

2. Pourquoi tu veux toujours utiliser sudo? Cette action n'a pas besoin
de droits administrateurs.


Par precaution inutile.

Avatar
Olivier Croquette
wrote:

Il faut dire que je n'ai pas utilise Fink


Comment l'as-tu installé alors?
Apparament, ton installation n'est pas fonctionelle.

$ type convert
convert is /sw/bin/convert
$ convert -h
Version: ImageMagick 5.5.1 10/15/02 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 2002 ImageMagick Studio LLC



$ type convert
-bash: type: convert: not found
$ convert -h
-bash: convert: command not found


Ben bien sûr, puisque le chemin vers convert (/usr/local/bin) n'est pas
dans ton PATH ! cf mails prédédents.

Pour toi c'est:
/usr/local/bin/convert
et
/usr/local/bin/convert -h

Tu peux tenter:

export PATH=$PATH:/Applications/ghostscript-8.53/bin/:/usr/local/bin
convert -size 500x100 xc:none -draw 'text 100,100 "Mon texte!"' fichier.png

Et si ça marche pas, installe proprement ImageMagick.
Il ne faut pas s'attendre à ce que des logiciels mal installés
fonctionnent correctement!


1 2 3