Image Magick

Paint programs, vector editors, 3d modelers, animation editors, etc.
Post Reply
Message
Author
polle
Posts: 11
Joined: Wed 27 Jun 2007, 13:05

Image Magick

#1 Post by polle »

As I had to convert some photos and didn't find a pet package for ImageMagick I compiled it from source, first got an error about fontconfig not found, so I compiled this first, afterwards no problem compilng ImageMagick

Made a pet package of both programs if someone is interested:


http://users.telenet.be/mylinux/fontcon ... 0-i486.pet
http://users.telenet.be/mylinux/ImageMa ... 0-i486.pet

jeffrey
Posts: 168
Joined: Mon 16 Jan 2006, 04:20
Location: Christchurch, New Zealand

#2 Post by jeffrey »

Very useful, thanks. This version has got image statistics included, so it should be relatively easy to compare a sequence of photos to detect significant changes for an intruder detection system. For example,

Code: Select all

convert image1.gif image2.gif -compose difference -composite miff:- | identify -verbose - | awk '$1=="Channel"&&$2=="statistics:"{p++; next} $1=="Alpha:"{exit} p{print}'
will show differences between image1 and image2 on the colour channels. Try comparing two identical photos, two with minor differences, two with slight lighting changes, and two where one has an intruder and the other does not. Then find suitable thresholds for an intruder.
Doubtless this is off-topic, but it may help some poor soul. There are countless other (more common) uses for Image Magick, of course.

KF6SNJ
Posts: 674
Joined: Tue 19 Jun 2007, 05:29
Location: Distressed States of Amerika
Contact:

#3 Post by KF6SNJ »

Doesn't seem off topic to me. Rather it looks like you are consider a new way to make use of Image Magick. Nothing wrong with that. In fact, it could also be useful for detecting a difference between a genuine artwork and cheap forgeries. I would like to hear a little more about that idea.
The only windows I have are those on my home.

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

Re: Image Magick

#4 Post by ttuuxxx »

polle wrote:As I had to convert some photos and didn't find a pet package for ImageMagick I compiled it from source, first got an error about fontconfig not found, so I compiled this first, afterwards no problem compilng ImageMagick

Made a pet package of both programs if someone is interested:


http://users.telenet.be/mylinux/fontcon ... 0-i486.pet
http://users.telenet.be/mylinux/ImageMa ... 0-i486.pet
I was missing fontconfig the other day when I was compiling gimp or could of been transmission, it might be useful to include it in future devx's.
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#5 Post by amigo »

fontconfig should be considered a basic part of any GTK2 environment as many, many programs will require it.

jeffrey
Posts: 168
Joined: Mon 16 Jan 2006, 04:20
Location: Christchurch, New Zealand

Detecting a significant difference between two photos

#6 Post by jeffrey »

KF6SNJ, I really don't know much more than I said yesterday. But last night I threw together a script to start testing for significant differences in photos. I'd like it to give a positive result if someone walks onto my property, but not if it's only a cat, or the sun going behind a cloud. I'll have to test that and it may take me a week or two to get around to it. In the meantime, here's my initial script. It uses Image Magick to compare two images for differences, returning an exit code of 0 if they match (or are reasonably similar), an error code of 2 if the user didn't supply two filenames, or an error code from 5 upwards depending on how different the photographs are. (I used a logarithmic scale to reduce a wide range of numbers down to something more sedate.) The log result is derived from the product of the mean of the alpha and colour channel values (which seemed to give a big number on different photos and a small number on similar ones), and values of 0 (identical photos) to 4 (roughly the same) are treated as having only minor differences, so the script returns 0 in for that range, or 5+ if the photos have more significant differences. I'm sure that this will need tuning, but it's a start. Now I need to get a Web camera and work out how long a USB connection I can run...
Attachments
pixcompare.zip
(772 Bytes) Downloaded 1098 times

User avatar
cklammer
Posts: 28
Joined: Sat 26 Apr 2008, 14:12
Location: Abu Dhabi, United Arab Emirates

libbz2 missing dependency in 4.1.2

#7 Post by cklammer »

Hi all,

When I installed IM on 4.1.2 I received a whole shitload of messages regarding a missing dependency: libbz2.so.1.0.

Turns out that I had a broken symlink with that name in /usr/lib.

Code: Select all

find / -name 'libbz2*' -print | more 2>/dev/null
<... SNIPPED a whole list of found libbz2's ...>

Code: Select all

file /usr/lib/libbz2.so.1.0
<... Got the message about the broken symlink to libbz2.so.1.0.0 >

I fixed it:

Code: Select all

cd /usr/lib
rm libbz2.so.1.0
ln -s libbz2.so.1.0.4 libbz2.so.1.0
I really don't know if this was only my specific installation or a general problem with 4.1.2 - one of the Ueberusers can go and verify maybe, please.

Best of Luck,
cklammer

User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

#8 Post by vtpup »

Darn. The links are broken.

Does anybody else have this?

Thanks.

big_bass
Posts: 1740
Joined: Mon 13 Aug 2007, 12:21

#9 Post by big_bass »

imagemagick-6.4.3.10 I compiled it from source as a *.tgz
http://puppy2.org/slaxer/imagemagick-6. ... 2-slxr.tgz

havent had a need for pets in a long time
easy to convert it

Joe

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#10 Post by aragon »

although not the latest, you could find a pet for imagemagick here:

http://www.murga-linux.com/puppy/viewtopic.php?t=45981

aragon

User avatar
Dingo
Posts: 1437
Joined: Tue 11 Dec 2007, 17:48
Location: somewhere at the end of rainbow...
Contact:

#11 Post by Dingo »

latest image magick available here:

http://dokupuppylinux.co.cc/programs:image_converters
replace .co.cc with .info to get access to stuff I posted in forum
dropbox 2GB free
OpenOffice for Puppy Linux

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

Imagemagick & Xaralx sfs

#12 Post by mikeslr »

Hi all,

For those who prefer an sfs, Mu --I believe-- created a combined Imagemagic + Xaralx sfs. It is available here:

http://puppyisos.org/isos/2008-07-to-12 ... ons-by-MU/

Although it was written for the early 4 series Puppies, it can be easily converted for use with the later 4 and 5 series.

Don't panic when after loading it doesn't show up in your menu, nor can be located by pfind. Its actually a suite of applications you run from the console. If you're interested, you'll find the link to one of them, "convert" --probably all of them, but convert is the only one I've used-- in /usr/bin.

Imagemagick is an essential tool for creating a boot splash. Instructions are given here:
http://diddy.boot-land.net/grub4dos/files/splash.htm

For complete details regarding all the applications provided by Imagemagick, and how to use them, see:

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

mikesLr

Post Reply