Erinevus lehekülje "ImageMagick" redaktsioonide vahel

Allikas: Kuutõrvaja
52. rida: 52. rida:
 
Increase saturation.
 
Increase saturation.
  
convert -modulate 100,130,100 old.png new.png
+
convert -modulate 100,130,100 verevi.jpg verevi_bright.jpg
 +
 
 +
[[Pilt:Verevi bright.jpg]]
  
 
The above increase color saturation by the multiplier 130%. To decrease, use values less than 100.
 
The above increase color saturation by the multiplier 130%. To decrease, use values less than 100.

Redaktsioon: 27. detsember 2011, kell 16:04

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 -fill white -pointsize 36 \
-draw 'text 10,50 "Elva, Verevi"' \
verevi.jpg verevi_tekst.jpg

Verevi tekst.jpg

Convert an image to black & white

convert -type Grayscale verevi.jpg Verevi mustvalge.jpg

Verevi mustvalge.jpg

Scale a image.

convert -scale 50% old.gif new.png

Convert all files from .BMP to. JPG :

FOR %%G IN (*.bmp) DO convert "%%G" -strip -quality 70 -interlace plane "%%~nG.jpg"

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 verevi.jpg verevi_bright.jpg

Verevi bright.jpg

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