Search found 16 matches

by joshuafinny
2016-05-09T03:42:43-07:00
Forum: Users
Topic: Find identical images in bulk?
Replies: 9
Views: 13599

Re: Find identical images in bulk?

I think he wants to find images that are actually the same subject, but slightly changed, such as blurred or shifted a little, etc, not actually identical in every way or even duplicates in different directories. Yes, you are correct. Even resolution might differ in some cases but the subject is ...
by joshuafinny
2016-05-03T22:12:48-07:00
Forum: Users
Topic: Find identical images in bulk?
Replies: 9
Views: 13599

Re: Find identical images in bulk?

I've never used it, but hash should do the trick. I understand two identical images should give the same hash value. See http://www.imagemagick.org/script/escape.php Create a loop that calls convert for every image, like this: convert file.ext -format "%%# %%f\n" info: Arrange to write them all out ...
by joshuafinny
2016-05-03T03:26:48-07:00
Forum: Users
Topic: Find identical images in bulk?
Replies: 9
Views: 13599

Find identical images in bulk?

Imagemagick version 6.9.3
Windows Platform

I have a folder with number of images. I want to check if each image in the folder has an identical image in the folder.

I would prefer a text output.
by joshuafinny
2016-04-01T05:04:36-07:00
Forum: Users
Topic: Want to loop this script for all files in a folder
Replies: 2
Views: 4531

Want to loop this script for all files in a folder

Script: convert image.jpg -fuzz 5% -fill #f1f0ee -opaque white -resize 720x1125 -background #f1f0ee -gravity center -extent 720x1125 output.jpg Platform: Windows Imagemagick Version: 6.9.3 How do I loop this script to run on all images in a folder? I want the input and output images to be in ...
by joshuafinny
2016-04-01T03:47:30-07:00
Forum: Users
Topic: Center align object in a image
Replies: 8
Views: 9910

Re: Center align object in a image

Bonzo wrote:Did you try fmw42's example code? If so what was wrong with the result?
That code close crops the images and fills the border with white colour. What I want is to center align the object in the same canvas. The hex code will be the one shown in the second sample.
by joshuafinny
2016-03-31T23:48:27-07:00
Forum: Users
Topic: Center align object in a image
Replies: 8
Views: 9910

Re: Center align object in a image

The image is centered horizontally (from appearance). the only issue is that there is no white at the bottom By center do you mean equal white all around. If so, then trim and pad. So try convert 81v7P6p.jpg -fuzz 10% -trim +repage -bordercolor white -border 20 result.jpg I shared the wrong sample ...
by joshuafinny
2016-03-31T23:17:44-07:00
Forum: Users
Topic: Center align object in a image
Replies: 8
Views: 9910

Center align object in a image

Platform: Windows
Imagemagick version: 6.9.3
Sample Image: http://imgur.com/81v7P6p

I have as set of images which have a object in it and the images are of different dimensions/resolutions. I want o batch process these to center align the objects. How do I do this?
by joshuafinny
2016-03-09T01:36:37-07:00
Forum: Users
Topic: Replace background colour to any hex code
Replies: 5
Views: 10465

Re: Replace background colour to any hex code

fmw42 wrote:Try this:

Code: Select all

convert 4Htli6m.jpg -fuzz 1% -fill "#f1f0ee" -opaque white result.jpg
Great!! Thanks!
by joshuafinny
2016-03-01T05:25:02-07:00
Forum: Users
Topic: Replace background colour to any hex code
Replies: 5
Views: 10465

Re: Replace background colour to any hex code

fmw42 wrote:It might help, if you provide an example image. Also always provide your IM version and platform, since syntax may differ.
IM Version 6.9.4
Windows Platform

Sample Image:
http://i.imgur.com/4Htli6m.jpg
by joshuafinny
2016-02-29T06:05:19-07:00
Forum: Users
Topic: Replace background colour to any hex code
Replies: 5
Views: 10465

Replace background colour to any hex code

I have a set of images in a white or off white background. I want to convert the background to a particular hex value (#f1f0ee). Tried using convert image -fuzz XX% -fill red -opaque white result The problem here is, it will consider everything white, even parts of the product. Also, the edges need ...
by joshuafinny
2016-02-05T11:52:14-07:00
Forum: Users
Topic: How to extract dominant colours from an image?
Replies: 11
Views: 29803

Re: How to extract dominant colours from an image?

Great worked for me! Thanks a lot!
by joshuafinny
2016-01-24T00:56:24-07:00
Forum: Users
Topic: How to extract dominant colours from an image?
Replies: 11
Views: 29803

Re: How to extract dominant colours from an image?

If you want the counts as well as the colours: f:\web\im>"%IM%convert" 1_18.jpg +dither -colors 5 -define histogram:unique-colors=true -format "%c" histogram:info: 88596: ( 84, 75, 86) #544B56 srgb(84,75,86) 142039: (178, 41, 56) #B22938 srgb(178,41,56) 72690: (193, 56, 71) #C13847 srgb(193,56,71 ...
by joshuafinny
2016-01-16T21:47:45-07:00
Forum: Users
Topic: How to extract dominant colours from an image?
Replies: 11
Views: 29803

Re: How to extract dominant colours from an image?

convert 1_18.jpg +dither -colors 5 -unique-colors txt: Then a script can extract the hex digits after "#". I think this is what I need. Can I include identify -verbose in this script to sort the colours in the order of frequency(high to low)? How do i run this in batch for all images in a folder?
by joshuafinny
2016-01-16T06:29:33-07:00
Forum: Users
Topic: How to extract dominant colours from an image?
Replies: 11
Views: 29803

Re: How to extract dominant colours from an image?

convert 1_18.jpg +dither -colors 5 x.png x.png is a simplified verson of the image, reduced to no more than 5 colours. "identify -verbose x.png" tells you the colours and their frequency. The most common is near white. The next is a darkish grayish red. I want the same 5 colours to be extracted to ...