Annonces Google
Serveur IRC
Serveur : irc.portlane.se
Canal : #AmigaNG
Activité du Site

Pages vues depuis 25/07/2007 : 25 373 258

  • Nb. de membres 187
  • Nb. d'articles 1 271
  • Nb. de forums 19
  • Nb. de sujets 20
  • Nb. de critiques 24

Top 10  Statistiques

Index du forum »»  Logiciels »» ImageMagick et arexx

ImageMagick et arexx#1912

2Contributeur(s)
sinisrusElwood
3 Modérateur(s)
K-LElwoodcorto
sinisrus sinisrusicon_post
Bonjour,

Bon maintenant que j'ai un imagemagick qui marche très bien j'ai un ptit problème de syntaxe avec l'arexx

en Arexx pas ok:
address command 'convert -size 320x100 "xc:lightblue" -font "FONTS:_ttf/comic.ttf" -pointsize 32 -fill blue -draw "text 25,65 'Anthony coucou'"  "ram:text_draw.gif"'

en AmigaDos ok:
convert -size 320x100 "xc:lightblue" -font "FONTS:_ttf/comic.ttf" -pointsize 32 -fill blue -draw "text 25,65 'Anthony coucou'"  "ram:text_draw.gif"

en faite des que je veux mettre un espace dans mon texte ça ne marche pas en arexx :-(
--
Coin coin... amitheme.amiga-ng.org
Sam460 1,15Ghz - OS4.1FE - Radeon Saphir HD7750 R7 250E - 2Go de ram
Elwood Elwoodicon_post
j'ai voulu essayer mais quand je lance la commande dans un shell, j'ai :

Fontconfig error: Cannot load default config file
Fontconfig error: Cannot load default config file
gs: Commande inconnue
gs : erreur code 10
gs: Commande inconnue
gs : erreur code 10
convert: UnableToOpenConfigureFile `type.xml' @ warning/configure.c/GetConfigureOptions/706.
convert: UnableToReadFont `FONTS:_ttf/comic.ttf' @ warning/annotate.c/RenderType/872.
convert: UnableToReadFont `FONTS:_ttf/comic.ttf' @ error/annotate.c/RenderFreetype/1127.
gs: Commande inconnue
gs : erreur code 10
gs: Commande inconnue
gs : erreur code 10
convert: UnableToReadFont `FONTS:_ttf/comic.ttf' @ warning/annotate.c/RenderType/872.
convert: UnableToReadFont `FONTS:_ttf/comic.ttf' @ error/annotate.c/RenderFreetype/1127.
convert: NonconformingDrawingPrimitiveDefinition `text' @ error/draw.c/DrawImage/3192.

:-(
--
Philippe Ferrucci
Avec une Sam460 et AmigaOS 4.1, je suis eco-responsable. Cool !

Message édité par : Elwood / 20-07-2014 12:46
sinisrus sinisrusicon_post
as-tu dans sys:fonts/_ttf/comic.ttf ?
sinon tu copy une police .ttf dans le repertoir ou se trouve la commande convert d'imagemagick et tu remplace FONTS:_ttf/comic.ttf par le nom de ta police.

ce qui donne:

address command 'convert -size 320x100 "xc:lightblue" -font tapolice.ttf -pointsize 32 -fill blue -draw "text 25,65 'Anthony coucou'"  "ram:text_draw.gif"'
--
Coin coin... amitheme.amiga-ng.org
Sam460 1,15Ghz - OS4.1FE - Radeon Saphir HD7750 R7 250E - 2Go de ram
Elwood Elwoodicon_post
Oups, tu as raison. Le message d'erreur est sur-dimensionné. Du coup je me suis fait avoir :-)

Donc la solution c'est qu'il a fallu mettre les guillemets à "la main" : 
address command convert '-size 320x100 xc:lightblue -font FONTS:_truetype/vera.ttf -pointsize 32 -fill blue -draw "text 25,65 ' || d2c(34) || 'Anthony coucou' || d2c(34) || ' image.jpg'
--
Philippe Ferrucci
Avec une Sam460 et AmigaOS 4.1, je suis eco-responsable. Cool !

Message édité par : Elwood / 20-07-2014 14:59
sinisrus sinisrusicon_post
Genial merci elwood :-)

juste pour info '"' marche aussi a la place de  d2c(34) c'est plus court :-)
--
Coin coin... amitheme.amiga-ng.org
Sam460 1,15Ghz - OS4.1FE - Radeon Saphir HD7750 R7 250E - 2Go de ram
Elwood Elwoodicon_post
bien vu
--
Philippe Ferrucci
Avec une Sam460 et AmigaOS 4.1, je suis eco-responsable. Cool !
Petites Annonces

0 annonce(s) publiée(s)

Consulter

AmigaOS 4.1

Laissez-vous tenter par
AmigaOS 4.1
AmiTheme

AmiTheme