🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #6952

Script en Bash con Geomtery (ImageMagick)

#6952
From: Marco
Date: Tue, 29 Apr 2003 07:16
36 lines
1884 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tengo el siguiente script para poner todas la imagenes jpg de un directorio
en un  lienzo de 250x250, pero me falla, y nu se porque. Lo qtengo echo en
PHP, pero lo necesito para Bash, y como simepre el bash no es lo mio.

#!/bin/sh
for f in $* ;do
 convert -geometry 80x80 $file t_$file
 #echo "<a href=\"$f\"><img src=\"t_$f\" width=\"80\" height=\"80\"></a>"
done
# end of script

Lamada al programa:

./programa *.jpg *.jpg


Thanks.

- -- 
- --
Marco A. Mateos - Linux User: 209189
http://www.lomejordeinternet.net - SIM, S.L.
http://hosting.lomejordeinternet.net/
http://graficas.lomejordeinternet.net/
webmaster@lomejordeinternet.net / ICQ: 172542875
Clave Publica disponible en http://www.lomejordeinternet.net/pgp
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD4DBQE+ribdyEVqTu+tVqsRAlutAJdgXiUDomN4HuqiPHWKgY/eikjuAJ4mJE0U
I+BUHeQ7nl0KdGHuD6BT5w==
=OecA
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <b8l8si$av6bt$1@ID-187527.news.dfncis.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!fu-berlin.de!uni-berlin.de!80-25-130-25.uc.nombres.ttd.ES!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII-7-bit
X-Google-Thread: f86c8,d1a4290ca0230000,start
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-04-29 00:21:49 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!fu-berlin.de!uni-berlin.de!80-25-130-25.uc.nombres.ttd.ES!not-for-mail
From: Marco <marco@lomejordeinternet.net>
Newsgroups: es.comp.os.linux.programacion
Subject: Script en Bash con Geomtery (ImageMagick)
Date: Tue, 29 Apr 2003 09:16:37 +0200
Organization: Soluciones Impresas para Marketing, S.L.
Lines: 36
Message-ID: <b8l8si$av6bt$1@ID-187527.news.dfncis.de>
NNTP-Posting-Host: 80-25-130-25.uc.nombres.ttd.es (80.25.130.25)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
X-Trace: fu-berlin.de 1051600595 11508093 80.25.130.25 (16 [187527])
User-Agent: KNode/0.7.2