Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bildgroesse via Commandline ändern
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
photocolor
n00b
n00b


Joined: 17 Feb 2003
Posts: 28

PostPosted: Tue Apr 15, 2003 9:28 am    Post subject: Bildgroesse via Commandline ändern Reply with quote

Hi,

es gibt ein tool mit dem man Bild-dateien (jpg) von der Groesse X auf Y aendern kann.
Leider faellt mir dieser Command nicht merh ein :(

Ich habe das mal fuer die Aenderung des Grub-Images gebraucht. Jetzt braeuchte ich das tool um ein Grafikarchiv auf eine bestimmte groesse zu bringen!

cu
michi
_________________
G'day
Back to top
View user's profile Send private message
photocolor
n00b
n00b


Joined: 17 Feb 2003
Posts: 28

PostPosted: Tue Apr 15, 2003 10:36 am    Post subject: Man sollte nicht so voreilig posten --> Hier die LÖSUNG Reply with quote

Der Befehl heisst convert
zB: "convert -size 800x600 file.jpg -resize 640x480 -colors 15 -profile '*' file.xpm"

Habe dazu ein kleines Script geschrieben, welches ein ganzes Verzeichniss durchnudelt und alle File in der Größe ändert und die Files neu schreibt.

#!/bin/bash
# copyright m.eichinger@gmx.de 2003
#

# Define VARs #################################################################
list=`exec /usr/bin/ls | awk '{print $1}'`
size="400x300"
color="256"
output="output-"
################################################################################

for i in ${list?}; do
`exec /usr/bin/convert ${i?} -resize $size -colors $color -profile ${i?} $output${i?}`
done


exit 0
_________________
G'day
Back to top
View user's profile Send private message
slartibartfasz
Veteran
Veteran


Joined: 29 Oct 2002
Posts: 1462
Location: Vienna, Austria

PostPosted: Tue Apr 15, 2003 9:45 pm    Post subject: Reply with quote

yup - und falls es jemand sucht - das ding ist ein teil von ImageMagick...
_________________
To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum