<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://entorb.net//wiki/index.php?action=history&amp;feed=atom&amp;title=ImageMagick</id>
	<title>ImageMagick - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://entorb.net//wiki/index.php?action=history&amp;feed=atom&amp;title=ImageMagick"/>
	<link rel="alternate" type="text/html" href="https://entorb.net//wiki/index.php?title=ImageMagick&amp;action=history"/>
	<updated>2026-05-06T11:30:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://entorb.net//wiki/index.php?title=ImageMagick&amp;diff=4863&amp;oldid=prev</id>
		<title>Torben at 20:27, 30 October 2024</title>
		<link rel="alternate" type="text/html" href="https://entorb.net//wiki/index.php?title=ImageMagick&amp;diff=4863&amp;oldid=prev"/>
		<updated>2024-10-30T20:27:57Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Coding]][[Category:Software]]&lt;br /&gt;
ImageMagick / Image Magick&lt;br /&gt;
&lt;br /&gt;
Increase gamma for all jpgs in ths folder&lt;br /&gt;
 mogrify -gamma 1.45 $(find -name \*.jpg)&lt;br /&gt;
&lt;br /&gt;
Join images on top of each other&lt;br /&gt;
 composite -gravity SouthEast -geometry +20+20 hinzu.jpg quelle.jpg ergebnis.jpg&lt;br /&gt;
 Options:&lt;br /&gt;
 -gravity [NorthWest, North, NorthEast, West, Center, East, SouthWest, South, SouthEast]&lt;br /&gt;
 -geometry [width]x[height][+/-xoffset][+/-yoffset]&lt;br /&gt;
&lt;br /&gt;
Join images besides each other, aligned in a row&lt;br /&gt;
 convert a.png  b.png +append joined.png&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Convert===&lt;br /&gt;
convert creates a new image while mogrify replaces the original&lt;br /&gt;
 convert -size 120x120 cockatoo.jpg -resize 120x120 +profile &amp;quot;*&amp;quot; thumbnail.jpg&lt;br /&gt;
* &amp;#039;-size 120x120&amp;#039; gives a hint to the JPEG decoder that the image is going to be&lt;br /&gt;
downscaled to 120x120, allowing it to run faster by avoiding returning&lt;br /&gt;
full-resolution images to ImageMagick for the subsequent resizing operation.&lt;br /&gt;
* &amp;#039;-resize 120x120&amp;#039; specifies the desired dimensions of the output image.&lt;br /&gt;
It will be scaled so its largest dimension is 120 pixels.&lt;br /&gt;
* &amp;#039;+profile &amp;quot;*&amp;quot;&amp;#039; removes any ICM, EXIF, IPTC, or other profiles that might&lt;br /&gt;
be present in the input and aren&amp;#039;t needed in the thumbnail.&lt;br /&gt;
&lt;br /&gt;
To convert a directory full of JPEG images to thumbnails, use: &lt;br /&gt;
 mogrify -size 120x120 -resize 120x120 *.jpg +profile &amp;quot;*&amp;quot;&lt;br /&gt;
 123x456&lt;br /&gt;
 123x&lt;br /&gt;
 123x456! exact this values&lt;br /&gt;
 123x456&amp;gt; only if greater&lt;br /&gt;
&lt;br /&gt;
add a textbox under the image&lt;br /&gt;
 convert xc:white -resize 1xHEIGHT! BLANK&lt;br /&gt;
 convert -append INFILE BLANK TMPFILE&lt;br /&gt;
 convert TMPFILE -gravity &amp;quot;South&amp;quot; -family FAMILY -pointsize FONTSIZE -draw &amp;quot;text 0,3 &amp;#039;This text is added to the picture&amp;#039;&amp;quot; OUTFILE&lt;br /&gt;
&lt;br /&gt;
transparent color on existing file&lt;br /&gt;
 mogrify -transparent white &amp;lt;FILE.png&amp;gt;&lt;br /&gt;
&lt;br /&gt;
make a negative:&lt;br /&gt;
 mogrify -negate &amp;lt;FILE.png&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Rotate and mirror images&lt;br /&gt;
&lt;br /&gt;
* -flip = waagerecht&lt;br /&gt;
* -flop = senkrecht&lt;br /&gt;
* -transpose = diagonal (linksoben-rechtsunten) &lt;br /&gt;
* -transverse = diagonal (rechtsoben-linksunten) &lt;br /&gt;
&lt;br /&gt;
Trim&lt;br /&gt;
 mogrify -trim&lt;br /&gt;
 mogrify -trim +repage QD-vs-NC.png&lt;br /&gt;
 convert $old -trim +repage -colorspace Gray -type GrayScale $new&lt;br /&gt;
&lt;br /&gt;
PDF -&amp;gt; jpg&lt;br /&gt;
 convert -density 150 a.pdf a-%d.jpg&lt;br /&gt;
 convert a.pdf -colorspace Gray -type GrayScale a-%d.jpg&lt;br /&gt;
&lt;br /&gt;
JPEG Compression&lt;br /&gt;
 convert -quality 85 a.png a.jpg&lt;br /&gt;
&lt;br /&gt;
===Draw===&lt;br /&gt;
 convert FILE -draw &amp;quot;rectangle   0,0  100,100&amp;quot; OUTFILE&lt;br /&gt;
&lt;br /&gt;
 convert FILE -gravity &amp;quot;Center&amp;quot; -family FAMILY -pointsize FONTSIZE -draw &amp;quot;text 0,3 &amp;#039;This text is added to the picture&amp;#039;&amp;quot; OUTFILE&lt;br /&gt;
FAMILY: times,arial,serif,courier,...&lt;br /&gt;
&lt;br /&gt;
# perl function to paint a black frame around an image&lt;br /&gt;
 sub draw_frame {&lt;br /&gt;
   my $file = shift;&lt;br /&gt;
   my $width = shift;&lt;br /&gt;
   my $height= shift;&lt;br /&gt;
   my $thickness = shift;&lt;br /&gt;
   &lt;br /&gt;
   $_ = &amp;quot;convert $file &amp;quot;.&lt;br /&gt;
   &amp;quot;-draw \&amp;quot;rectangle   0,0    &amp;quot;.($width-1).&amp;quot;,  &amp;quot;.($thickness-1).&amp;quot;\&amp;quot; &amp;quot;.&lt;br /&gt;
   &amp;quot;-draw \&amp;quot;rectangle   0,0    &amp;quot;.($thickness-1).&amp;quot; ,&amp;quot;.($height-1).&amp;quot;\&amp;quot; &amp;quot;.&lt;br /&gt;
   &amp;quot;-draw \&amp;quot;rectangle &amp;quot;.($width-1).&amp;quot;,0    &amp;quot;.($width-$thickness).&amp;quot;,&amp;quot;.($height-1).&amp;quot;\&amp;quot; &amp;quot;.&lt;br /&gt;
   &amp;quot;-draw \&amp;quot;rectangle   0,$height  $width,&amp;quot;.($height-$thickness).&amp;quot;\&amp;quot; &amp;quot;.   $file;&lt;br /&gt;
   system($_);&lt;br /&gt;
 }&lt;/div&gt;</summary>
		<author><name>Torben</name></author>
	</entry>
</feed>