LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ImageMagick (https://www.linuxquestions.org/questions/linux-software-2/imagemagick-397387/)

tommytomato 12-28-2005 08:10 PM

ImageMagick
 
hi all

I've tried to install ImageMagick and I'm not sure if I got it right.

first thing is I went to see if it was install ok by typing in convert -version and I get the following answer below.

Version: ImageMagick 6.0.7 12/12/04 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2004 ImageMagick Studio LLC


the only file I can find on the system is in /usr/share/man/man1/ImageMagick.1.gz
I cant seem to find any other files :confused:

I'm using tinysofa ( odin )
I'm installing a gallery which needs ImageMagick and the coppermine gallery tells me I need to find the path to convert.exe
I'm alittle lost can any one tell me whats going on please.
this was my install
Code:

[root@rockinghamgateway ~]# apt-get source ImageMagick
Reading Package Lists... Done
Building Dependency Tree... Done
Need to get 5813kB of source archives.
Get:1 ftp://ftp.planetmirror.com extras/server-2.0/i386/tinysofa/extras ImageMagick 6.0.7.1-4ts (srpm) [5813kB]
Fetched 5813kB in 2m13s (43.5kB/s)
  1:ImageMagick            warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
########################################### [100%]
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
W: Duplicate sources.list entry http://tinysofa.mirror.linkinnovations.com releases/server-2.0/i386/tinysofa/all pkglist (/var/state/apt/lists/tinysofa.mirror.linkinnovations.com_releases_server-2.0_i386_tinysofa_base_pkglist.all)
W: Duplicate sources.list entry http://tinysofa.mirror.linkinnovations.com updates/server-2.0/i386/tinysofa/updates pkglist (/var/state/apt/lists/tinysofa.mirror.linkinnovations.com_updates_server-2.0_i386_tinysofa_base_pkglist.updates)
W: Duplicate sources.list entry http://tinysofa.mirror.linkinnovations.com extras/server-2.0/i386/tinysofa/extras pkglist (/var/state/apt/lists/tinysofa.mirror.linkinnovations.com_extras_server-2.0_i386_tinysofa_base_pkglist.extras)
W: Duplicate sources.list entry http://tinysofa.mirror.linkinnovations.com contrib/server-2.0/i386/tinysofa/contrib pkglist (/var/state/apt/lists/tinysofa.mirror.linkinnovations.com_contrib_server-2.0_i386_tinysofa_base_pkglist.contrib)
W: You may want to run apt-get update to correct these problems
[root@rockinghamgateway ~]# apt-get update
Err http://ftp.tas.keypoint.com.au releases/server-2.0/i386/tinysofa release
  403 Forbidden
Err http://ftp.tas.keypoint.com.au updates/server-2.0/i386/tinysofa release
  403 Forbidden
Err http://ftp.tas.keypoint.com.au extras/server-2.0/i386/tinysofa release
  403 Forbidden
Err http://ftp.tas.keypoint.com.au contrib/server-2.0/i386/tinysofa release
  403 Forbidden
Get:1 http://tinysofa.mirror.linkinnovations.com releases/server-2.0/i386/tinysofa release [661B]
Get:2 http://tinysofa.mirror.linkinnovations.com updates/server-2.0/i386/tinysofa release [1051B]
Get:3 http://tinysofa.mirror.linkinnovations.com extras/server-2.0/i386/tinysofa release [679B]
Get:4 http://tinysofa.mirror.linkinnovations.com contrib/server-2.0/i386/tinysofa release [667B]
Get:5 ftp://ftp.planetmirror.com releases/server-2.0/i386/tinysofa release [661B]
Get:6 http://mirrors.sunsite.dk 1.6/generic release [1340B]
Get:7 ftp://ftp.tas.keypoint.com.au releases/server-2.0/i386/tinysofa release
Get:8 ftp://tinysofa.mirror.linkinnovations.com releases/server-2.0/i386/tinysofa release
Err ftp://ftp.tas.keypoint.com.au releases/server-2.0/i386/tinysofa release
  Unable to fetch file, server said '/pub/tinysofa/releases/server-2.0/i386/tinysofa/base/release: Device not configured  '
Err ftp://tinysofa.mirror.linkinnovations.com releases/server-2.0/i386/tinysofa release
  Unable to fetch file, server said '/releases/server-2.0/i386/tinysofa/base/release: No such file or directory  '
Get:9 ftp://ftp.planetmirror.com updates/server-2.0/i386/tinysofa release [1051B]
Get:10 ftp://ftp.tas.keypoint.com.au updates/server-2.0/i386/tinysofa release
Get:11 ftp://tinysofa.mirror.linkinnovations.com updates/server-2.0/i386/tinysofa release
Err ftp://ftp.tas.keypoint.com.au updates/server-2.0/i386/tinysofa release
  Unable to fetch file, server said '/pub/tinysofa/updates/server-2.0/i386/tinysofa/base/release: Device not configured  '
Err ftp://tinysofa.mirror.linkinnovations.com updates/server-2.0/i386/tinysofa release
  Unable to fetch file, server said '/updates/server-2.0/i386/tinysofa/base/release: No such file or directory  '
Get:12 ftp://ftp.tas.keypoint.com.au extras/server-2.0/i386/tinysofa release
Get:13 ftp://ftp.planetmirror.com extras/server-2.0/i386/tinysofa release [679B]
Get:14 ftp://tinysofa.mirror.linkinnovations.com extras/server-2.0/i386/tinysofa release
Err ftp://ftp.tas.keypoint.com.au extras/server-2.0/i386/tinysofa release
  Unable to fetch file, server said '/pub/tinysofa/extras/server-2.0/i386/tinysofa/base/release: Device not configured  '
Err ftp://tinysofa.mirror.linkinnovations.com extras/server-2.0/i386/tinysofa release
  Unable to fetch file, server said '/extras/server-2.0/i386/tinysofa/base/release: No such file or directory  '
Get:15 ftp://ftp.tas.keypoint.com.au contrib/server-2.0/i386/tinysofa release
Get:16 ftp://tinysofa.mirror.linkinnovations.com contrib/server-2.0/i386/tinysofa release
Get:17 ftp://ftp.planetmirror.com contrib/server-2.0/i386/tinysofa release [667B]
Err ftp://ftp.tas.keypoint.com.au contrib/server-2.0/i386/tinysofa release
  Unable to fetch file, server said '/pub/tinysofa/contrib/server-2.0/i386/tinysofa/base/release: Device not configured  '
Err ftp://tinysofa.mirror.linkinnovations.com contrib/server-2.0/i386/tinysofa release
  Unable to fetch file, server said '/contrib/server-2.0/i386/tinysofa/base/release: No such file or directory  '
99% [Connecting to www.planetmirror.com (203.16.234.91)]
99% [Connecting to www.planetmirror.com (203.16.234.91)]

Code:

[root@rockinghamgateway downloads]# ls
ImageMagick-6.0.7.1-4ts.src.rpm
[root@rockinghamgateway downloads]# apt-get install ImageMagick
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  ImageMagick (6.0.7.1-4ts)
0 upgraded, 1 newly installed, 0 removed and 54 not upgraded.
Need to get 2178kB of archives.
After unpacking 7117kB of additional disk space will be used.
Get:1 ftp://ftp.planetmirror.com extras/server-2.0/i386/tinysofa/extras ImageMagick 6.0.7.1-4ts [2178kB]
Fetched 2178kB in 52s (41.1kB/s)
Checking GPG signatures...  ########################################### [100%]
Committing changes...
Preparing...                ########################################### [100%]
  1:ImageMagick            ########################################### [100%]
Done.
[root@rockinghamgateway downloads]# convert -version
Version: ImageMagick 6.0.7 12/12/04 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2004 ImageMagick Studio LLC

[root@rockinghamgateway downloads]#


homey 12-28-2005 08:25 PM

It does look like you have ImageMagick installed although I have a newer version. ImageMagick is a bunch of apps which are used individually, like convert for example.
Run the command: which convert or whereis convert to find out where it is.

tommytomato 12-28-2005 08:30 PM

cheers for that Homey

this is what it comes up with,
Code:

[root@rockinghamgateway ~]# whereis convert
convert: /usr/bin/convert /usr/share/man/man1/convert.1.gz
[root@rockinghamgateway ~]# which convert
/usr/bin/convert

in the long run I wish to put alittle logo on the bottom of our photo's forgotton what its called.
time stamp :confused: or is it called water mark :confused:

TT

homey 12-28-2005 08:46 PM

Been there, done that. :)

This one puts a logo.gif onto the image.
convert -flatten earth.png logo.gif earth1.png

This one puts a logo.gif on different places of the image.
composite -gravity southeast logo.gif earth.png earth1.png

If you want to put text for a logo, check out my other notes.

You will need to play with size and position as I was using a small image.

convert xc:white -resize 100x20! blank.jpg | \
convert -append cows.jpg blank.jpg tmp.jpg | \
convert tmp.jpg -gravity south -font helvetica -pointsize 15 \
-fill blue -draw "text -20+0 Cockatoo" tux1.jpg

convert xc:white -resize 100x20! blank.png | \
convert -append tux.png blank.png tmp.png | \
convert tmp.png -gravity south -font helvetica -pointsize 15 \
-fill red -draw "text -20+0 'Not Now'" tux2.png

convert xc:white -resize 330x20! blank.png | \
convert -append cows.png blank.png tmp.png | \
convert tmp.png -gravity south -font helvetica -pointsize 20 \
-fill blue -draw "text +120-3 Cockatoo" tux1.png

convert tux.png -gravity center -font helvetica -fill blue \
-draw "text 0+5 Cockatoo" tux3.png

convert tux.png -font Helvetica -pointsize 15 -fill red \
-gravity center -draw "text 0+0 'Not Now'" tux4.png

convert cows.png -font Helvetica -pointsize 25 -fill white \
-gravity northwest -draw "text 0-10 'Not Now'" tux4.png

tommytomato 12-28-2005 08:50 PM

Any idea on where I could find some thing about placing a water mark on my photo's

I'm looking through some links now.

http://www.imagemagick.org/script/links.php

edit note, thanks for that, what happens if you have 400 plus images ?

do you have to be in the DIR of the images to try these commands ?

TT

homey 12-28-2005 09:40 PM

Quote:

what happens if you have 400 plus images ?

do you have to be in the DIR of the images to try these commands ?
If you want to do the images individually, then you need to be in that directory. For a lot of images, I would get the logo setup and use a script like this one.
Make a backup and practice on a small test folder.
In this script, the new images are put into a tmp folder and the originals are unchanged, backups are a good idea anyway.
Code:

#!/bin/bash
#Example: ./test images

usage()
{
  echo "Usage: $0 Directory_Name"
  exit 1;
}

test -d "$1" || usage
dir="$1"
mkdir /home/tmp_dir

ls $dir | \
while read i; do

convert "$dir/$i" -font Helvetica -pointsize 25 -fill white \
-gravity northwest -draw "text 0-10 'Not Now'" "$dir/1$i"
mv "$dir/1$i" /home/tmp_dir/"$i"

done


tommytomato 12-28-2005 11:54 PM

this script, is this placed in the /etc folder to run :confused:

had a bunch of kids fighing in the back ground and I got lost for a bit.

I'll look back on the post and try work it all out and let you know how I go.

I haven't uploaded the 400plus yet, I'll only uploaded 6 I think for testing

http://gallery.rockinghamgateway.com/

TT

tommytomato 12-29-2005 12:22 AM

I did one image

I thinking my logo could be a bit bigger and I need to remove the white around the logo.gif
[root@rockinghamgateway ~]# cd /srv/www/subs/gallery/albums/userpics/10001
[root@rockinghamgateway 10001]# ls
dolphin_2.gif normal_third_rock.jpg
dolphin_3.gif Rockingham_Beach_jetty.jpg
dolphin_one.gif second_rock.jpg
foreshore.gif Shoalwater_Bay.jpg
index.html third_rock.jpg
logo.gif thumb_dolphin_2.gif
normal_dolphin_2.gif thumb_dolphin_3.gif
normal_dolphin_3.gif thumb_dolphin_one.gif
normal_dolphin_one.gif thumb_foreshore.gif
normal_foreshore.gif thumb_Rockingham_Beach_jetty.jpg
normal_Rockingham_Beach_jetty.jpg thumb_second_rock.jpg
normal_second_rock.jpg thumb_Shoalwater_Bay.jpg
normal_Shoalwater_Bay.jpg thumb_third_rock.jpg

[root@rockinghamgateway 10001]# composite -gravity southeast logo.gif dolphin_2.gif dolphin_2.gif
click on the link then click on the image to open right up, the logo is on the bottom right

http://gallery.rockinghamgateway.com...m&cat=3&pos=-3

does that look right :confused:

TT

homey 12-29-2005 12:27 AM

I can't tell what the logo is, maybe abit larger.

Quote:

this script, is this placed in the /etc folder to run
I would put in in the /home folder and call it something like test.
You make it executable with the command: chmod +x test
Then you run it like this ...
./test images

Where ./test is the name of the script file and images is the name of my images folder.

tommytomato 12-29-2005 12:29 AM

it's meant to be the one on this page.

www.rockinghamgateway.com

TT

tommytomato 12-29-2005 01:04 AM

Homey

have you got a demo site running with the water mark ?

I got the image bigger, looks like scrap, also need to be off the bottom a bit

TT

tommytomato 12-29-2005 03:09 AM

I dont spose you know how to remove white edges with ImageMagick do you ?

TT

homey 12-29-2005 06:28 AM

I don't have a site and I'm not sure how you got the white line all around the tux. He shows up nice though. :)

tommytomato 12-29-2005 09:30 PM

cheers homey, I haven't given up

had some help from here as well

http://redux.imagemagick.org/discuss...?p=16632#16632

TT


All times are GMT -5. The time now is 04:11 AM.