Erinevus lehekülje "ImageMagick" redaktsioonide vahel

Allikas: Kuutõrvaja
33. rida: 33. rida:
  
 
  convert -trim cat.png cat.png
 
  convert -trim cat.png cat.png
 +
 +
Increase brightness.
 +
 +
convert -modulate 150,100,100 old.png new.png
 +
 +
The above increase brightness by the multiplier 150%. To decrease, use values less than 100.
 +
 +
The 3 numbers means: brightness, saturation, hue. They are all interpreted as percentages.
 +
 +
Increase saturation.
 +
 +
convert -modulate 100,130,100 old.png new.png
 +
 +
The above increase color saturation by the multiplier 130%. To decrease, use values less than 100.
  
 
<source lang=bash>
 
<source lang=bash>

Redaktsioon: 3. november 2011, kell 21:55

Sissejuhatus

Originaalne pilt: Vaade Elva Verevi järvele, pildistanud Ragnar Vutt

Vaade verevi 14 hdr.jpg

Resolutsiooni muutmine

# convert -sample 25%x25% input.jpg output.jpg

Pildi pööramine

# convert -rotate 90 input.jpg output.jpg

Formaadi muutmine

# convert input.jpg output.png

Teksti pildile lisamine

# convert -font helvetica -fill white -pointsize 36 \
-draw 'text 10,50 "Elva, VCerevi"' \
pilt.jpg kommenteeritud_pilt.jpg

Convert an image to black & white

convert -type Grayscale main2.jpg main2_bw.jpg

Scale a image.

convert -scale 50% old.gif new.png

Autocrop border

convert -trim cat.png cat.png

Increase brightness.

convert -modulate 150,100,100 old.png new.png

The above increase brightness by the multiplier 150%. To decrease, use values less than 100.

The 3 numbers means: brightness, saturation, hue. They are all interpreted as percentages.

Increase saturation.

convert -modulate 100,130,100 old.png new.png

The above increase color saturation by the multiplier 130%. To decrease, use values less than 100.

#!/bin/sh
for i in `ls kaust`
do
nimi=`echo $i  | awk -F'.' '{ print $1 }'`
echo $nimi
convert asd/$i -resize 75% -quality 80% $nimi.jpg
done

Lingid