Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
bilder drehen, kuickshow
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
pieter_parker
Veteran
Veteran


Joined: 07 Aug 2006
Posts: 1488
Location: 127.0.0.1

PostPosted: Thu May 31, 2007 6:07 pm    Post subject: bilder drehen, kuickshow Reply with quote

hallo
da sind einige .jpg bilddateien die von der aufloesung und mb zahl kleiner gemacht werden sollen
die bilder sollen auch um 90 grad nach links gedreht werden

mit kuickshow hatte ich eben ein bild richtig gedreht gehabt (taste 7 auf den num pad) und verkleinert, gespeichert .. aber beim erneuten betrachten ist mir aufgefallen das es zwar richtig gedreht und kleiner ist, aber sehr plat gedrueckt aussieht
kuickshow macht da beim speichern wohl irgendwas falsch?

gibts in der konsole einen befehl um .jpg dateien zuverkleinern auf etwa 50% der orginal groesse und sie alle auch um 90 grad nach links zu drehen?


Last edited by pieter_parker on Thu May 31, 2007 8:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Thu May 31, 2007 7:46 pm    Post subject: Reply with quote

Na klar: imagemagick installieren und
Code:
convert -resize 50% -rotate 270 Bild.jpg Gedreht-und-kleiner.jpg

_________________
KDE
Back to top
View user's profile Send private message
pieter_parker
Veteran
Veteran


Joined: 07 Aug 2006
Posts: 1488
Location: 127.0.0.1

PostPosted: Thu May 31, 2007 8:47 pm    Post subject: Reply with quote

danke, funktioniert super
musste es garnicht installieren, war schon installiert :)


..hab da aber noch eine frage
jetzt sind es nur 4 dateien, spaeter einmal aber vielleicht ein paar dutzend

Code:

for i in `ls -1 *.JPG`; do convert -resize 50% -rotate 180 $i $i; done

so funktioniert es, er nimmt alle dateien und bearbeitet sie wie es sein soll, nur leider werden die alten orginal dateien dabei ueberschrieben

ich wuerde gerne das er die neuen veraenderten dateien irgendwie anders benennt

Code:

for i in `ls -1 *.JPG`; do "convert -resize 50% -rotate 180 $i $i_neu"; done
bash: convert -resize 50% -rotate 180 100_0833.JPG : command not found
bash: convert -resize 50% -rotate 180 100_0838.JPG : command not found
bash: convert -resize 50% -rotate 180 100_0839.JPG : command not found
bash: convert -resize 50% -rotate 180 100_0840.JPG : command not found

und
Code:

for i in `ls -1 *.JPG`; do convert -resize 50% -rotate 180 $i $i_neu; done
convert: missing an image filename `100_0833.JPG'.
convert: missing an image filename `100_0838.JPG'.
convert: missing an image filename `100_0839.JPG'.
convert: missing an image filename `100_0840.JPG'.


passt ihm irgendwie nicht ganz.. ich mache etwas falsch, nur was..
wuerde gerne das die neu erstellten dateien z.b. "_neu" an dem orgianl namen stehen haben (egal ob vor dem ".jpg" oder danach)
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Thu May 31, 2007 9:17 pm    Post subject: Reply with quote

Bei "convert ..." mit Anführungsstrichen versucht bash, den gesamten Ausdruck als ein Befehl (Dateiname) zu interpretieren - das schlägt fehl. Bei $i_neu wird das _neu hinter das .jpeg angehängt, also dateiname.jpg_neu, und imagemagick weiß nicht, welches Dateiformat es benutzen soll. Folgendes geht:
Code:
for file in *.jpg
do
  convert -resize 50% -rotate 180 "${file}" "${file%.jpg}_neu.jpg"
done

Durch den Verzicht auf 'ls -1 ...' und die Anführungsstriche um die Dateinamen klappt das so auch für Dateien mit Leerzeichen im Dateinamen.
_________________
KDE
Back to top
View user's profile Send private message
pieter_parker
Veteran
Veteran


Joined: 07 Aug 2006
Posts: 1488
Location: 127.0.0.1

PostPosted: Thu May 31, 2007 9:26 pm    Post subject: Reply with quote

cool .. super
funktioniert (:
Back to top
View user's profile Send private message
slick
Bodhisattva
Bodhisattva


Joined: 20 Apr 2003
Posts: 3495

PostPosted: Fri Jun 01, 2007 9:12 am    Post subject: Reply with quote

Vollständigkeitshalber weil es paßt: https://forums.gentoo.org/viewtopic-t-442336.html
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