LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-28-2005, 08:10 PM   #1
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

Rep: Reputation: 32
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

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]#
 
Old 12-28-2005, 08:25 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
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.
 
Old 12-28-2005, 08:30 PM   #3
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

Original Poster
Rep: Reputation: 32
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 or is it called water mark

TT
 
Old 12-28-2005, 08:46 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
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
 
Old 12-28-2005, 08:50 PM   #5
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

Original Poster
Rep: Reputation: 32
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

Last edited by tommytomato; 12-28-2005 at 08:52 PM.
 
Old 12-28-2005, 09:40 PM   #6
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
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
 
Old 12-28-2005, 11:54 PM   #7
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

Original Poster
Rep: Reputation: 32
this script, is this placed in the /etc folder to run

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
 
Old 12-29-2005, 12:22 AM   #8
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

Original Poster
Rep: Reputation: 32
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

TT
 
Old 12-29-2005, 12:27 AM   #9
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
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.

Last edited by homey; 12-29-2005 at 12:30 AM.
 
Old 12-29-2005, 12:29 AM   #10
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

Original Poster
Rep: Reputation: 32
it's meant to be the one on this page.

www.rockinghamgateway.com

TT
 
Old 12-29-2005, 01:04 AM   #11
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

Original Poster
Rep: Reputation: 32
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
 
Old 12-29-2005, 03:09 AM   #12
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

Original Poster
Rep: Reputation: 32
I dont spose you know how to remove white edges with ImageMagick do you ?

TT
 
Old 12-29-2005, 06:28 AM   #13
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
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.
 
Old 12-29-2005, 09:30 PM   #14
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

Original Poster
Rep: Reputation: 32
cheers homey, I haven't given up

had some help from here as well

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

TT
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ImageMagick without X jeru Debian 4 08-21-2004 07:29 PM
How to open ImageMagick HULLU Linux - Software 2 03-25-2004 03:19 PM
ImageMagick jasonmcneil0 Linux - Software 2 11-14-2003 06:49 PM
ImageMagick-5.5.6 tailine Linux - Distributions 1 06-12-2003 08:56 AM
ImageMagick! ifm Linux - Software 0 06-20-2002 09:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration