🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Script en Bash con Geomtery (ImageMagick)

#6882
From: fernando
Date: Fri, 02 May 2003 17:20
45 lines
2043 bytes
Fallan algunas cosas:

#!/bin/sh
#mkdir thumbnails
for i in *.jpg; do
 convert -geometry 80x80 "$i"  "t_${i}"
 echo "<a href=\"$i\"><img src=\"t_${i}\" width=\"80\"
 #echo "<a href="'"'$i'"'"><img src="'"'t_${i}'"'" width="'"80"'">
height="'"80"'"></a>"
 #cp t_${i} ./thumbnails
done

Para entrecomillar tambien se puede usar el tropel de comillas que es
gracioso... :)


Llamadas al programa:
./programa.sh (si tiene permisos de ejecucion)
sh programa.sh


Un saludo

Marco wrote:
> -----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.
Technical Details
Message-ID: <3eb2a8e8_1@news.arrakis.es>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!out.nntp.be!propagator2-sterling!in.nntp.be!caladan.arrakis.es
References: <b8l8si$av6bt$1@ID-187527.news.dfncis.de>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII-7-bit
X-Google-Thread: f86c8,d1a4290ca0230000
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-05-02 10:20:41 PST
From: "fernando" <null@null.com>
Newsgroups: es.comp.os.linux.programacion
References: <b8l8si$av6bt$1@ID-187527.news.dfncis.de>
Subject: Re: Script en Bash con Geomtery (ImageMagick)
Date: Fri, 2 May 2003 19:20:08 +0200
Lines: 48
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 212.59.212.156
Message-ID: <3eb2a8e8_1@news.arrakis.es>
X-Trace: caladan.arrakis.es 1051896040 212.59.212.156 (2 May 2003 19:20:40 +0100)
Organization: Arrakis Servicios y Comunicaciones SLU
X-Original-NNTP-Posting-Host: 195.5.65.34
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!out.nntp.be!propagator2-sterling!in.nntp.be!caladan.arrakis.es