NSLU2-Linux
view · edit · print · history

OpenSlug.InstallImageMagick History

Hide minor edits - Show changes to markup

January 14, 2009, at 09:47 AM by RudolfReuter --
Changed lines 6-7 from:

Under SlugOS it was some more work.

to:

Under SlugOS it was some more work.
Back to HowTo

January 04, 2009, at 08:37 AM by RudolfReuter --
January 04, 2009, at 04:27 AM by RudolfReuter --
January 03, 2009, at 04:43 PM by RudolfReuter --
Changed line 36 from:
to:

\\

January 03, 2009, at 04:43 PM by RudolfReuter --
Added line 36:
January 03, 2009, at 04:42 PM by RudolfReuter --
Changed line 35 from:

I will mention that the convertion took 9 s on a 266 MHz? NSLU2. so be careful not to stress the CPU too much.\\

to:

I will mention that the convertion took 9 s on a 266 MHz NSLU2. so be careful not to stress the CPU too much.\\

January 03, 2009, at 04:41 PM by RudolfReuter --
Changed lines 38-40 from:

Attachment:shot.jpg

to:
January 02, 2009, at 07:46 PM by RudolfReuter --
January 02, 2009, at 07:43 PM by RudolfReuter --
Changed line 21 from:

Hence you have to tell the font path' to the program convert.\\

to:

Hence you have to tell the font path to the program convert.\\

Changed line 34 from:

The goal was to give the image a time stamp. Position x=20, Y=230.\\

to:

The goal was to give the image a time stamp. Position X=20, Y=230.\\

January 02, 2009, at 07:43 PM by RudolfReuter --
Changed line 21 from:

Hence you have to tell the 'font path' to the program convert.\\

to:

Hence you have to tell the font path' to the program convert.\\

January 02, 2009, at 07:42 PM by RudolfReuter --
Changed line 21 from:

Hence you have to tell the font path to the program convert.\\

to:

Hence you have to tell the 'font path' to the program convert.\\

Changed line 34 from:

The goal was to give the image a time stamp. Position x=20, Y=230\\

to:

The goal was to give the image a time stamp. Position x=20, Y=230.\\

January 02, 2009, at 07:41 PM by RudolfReuter --
Changed line 34 from:

The goal was to give the image a time stamp.\\

to:

The goal was to give the image a time stamp. Position x=20, Y=230\\

January 02, 2009, at 07:40 PM by RudolfReuter --
Changed line 33 from:

The file source.jpg was 320x240 pixel. The size of the font was given with 20pt.\\

to:

The file source.jpg had 320x240 pixel. The size of the font was given with 20pt.\\

January 02, 2009, at 07:39 PM by RudolfReuter --
Changed line 21 from:

Hence you have to tell the font path to the program convert.\\

to:

Hence you have to tell the font path to the program convert.\\

Changed lines 23-24 from:
  /opt/share/fonts/bitstream-vera/Vera.ttf to the application folder.
to:
  /opt/share/fonts/bitstream-vera/Vera.ttf to the application folder.
January 02, 2009, at 07:38 PM by RudolfReuter --
Changed line 25 from:

(:table border=0 width=100% bgcolor=#ffffff:)

to:

(:table border=1 width=100% bgcolor=#ffffff:)

January 02, 2009, at 07:38 PM by RudolfReuter --
Changed line 8 from:

(:table border=0 width=100% bgcolor=#ffffff:)

to:

(:table border=1 width=100% bgcolor=#ffffff:)

January 02, 2009, at 07:37 PM by RudolfReuter --
Changed lines 1-2 from:

InstallImageMagick

to:

InstallImageMagick, use convert to insert text

January 02, 2009, at 07:37 PM by RudolfReuter --
Changed lines 38-40 from:
to:

Attachment:shot.jpg

January 02, 2009, at 07:22 PM by RudolfReuter --
Added lines 1-40:

InstallImageMagick

The application was to insert text into an already existing JPG image.
The image did come from an USB webcam Logitech E3500. To do that under Ubuntu 0810 was no problem, everything was already installed.
Under SlugOS it was some more work.

(:table border=0 width=100% bgcolor=#ffffff:) Install ImageMagick (:cell:)

 
 $ ipkg-opt update
 $ ipkg-opt install imagemagick
 $ ipkg-opt install ghostscript
 $ ipkg-opt install ttf-bitstream-vera
 $ ipkg install libcairo2

(:tableend:)

I found no way to tell linux where the fonts are located.
Hence you have to tell the font path to the program convert.
For convenience I copied the font Vera.ttf from
/opt/share/fonts/bitstream-vera/Vera.ttf to the application folder.

(:table border=0 width=100% bgcolor=#ffffff:) Example (:cell:)

 
 convert -font Vera.ttf -pointsize 20 -fill red -draw "text 20, 230 '`date`'" source.jpg  target.jpg

(:tableend:)

The file source.jpg was 320x240 pixel. The size of the font was given with 20pt.
The goal was to give the image a time stamp.
I will mention that the convertion took 9 s on a 266 MHz? NSLU2. so be careful not to stress the CPU too much.
Please see the attached image how it looks like.

view · edit · print · history · Last edited by RudolfReuter.
Originally by RudolfReuter.
Page last modified on January 14, 2009, at 09:47 AM