Search found 11450 matches

by snibgo
2019-04-20T08:00:57-07:00
Forum: Digital Image Processing
Topic: Detect fire in a fire pit (compare)
Replies: 1
Views: 27

Re: Detect fire in a fire pit (compare)

What version of IM, on what platform? I'll assume IM v7, on Windows BAT. %IMG7%magick ^ "Bldg 2 Fire Pit_2019-Apr-19_20_42_27.png" ^ "Bldg 2 Fire Pit_2019-Apr-19_20_44_51.png" ^ -crop 17x11+1301+782 ^ -format %%[fx:mean]\n ^ info: 0.372995 0.994118 I've cropped a small area from both images, and fou...
by snibgo
2019-04-19T18:08:44-07:00
Forum: Users
Topic: Resize 'blur' option not working on 'wand' library.
Replies: 6
Views: 109

Re: Resize 'blur' option not working on 'wand' library.

Your question is about a Python interface, not the C MagickWand interface, but there is no IM Python forum. I think an old interface to IM had "blur" as a parameter to "resize". But that changed long ago, so now we have "-define filter:blur=n", as an expert setting that is rarely used. See http://ww...
by snibgo
2019-04-19T09:45:48-07:00
Forum: Users
Topic: scripting / processing multiple images
Replies: 9
Views: 254

Re: scripting / processing multiple images

You have removed the keyword "-write", so IM will read those files instead of writing them. Again, you are building the image list.
by snibgo
2019-04-19T09:15:13-07:00
Forum: Users
Topic: Copy a certain CMYK color from one image to another image
Replies: 6
Views: 101

Re: Copy a certain CMYK color from one image to another image

If image2 has only white and some other colour, and you don't want the white copied, then...

Code: Select all

convert in1.jpg ( in2.eps -alpha set -transparent icc-color(cmyk,0,0,0,0) ) -composite out.tiff
I write to tiff instead of jpg because tiff is by default lossless.
by snibgo
2019-04-19T08:16:40-07:00
Forum: Users
Topic: Copy a certain CMYK color from one image to another image
Replies: 6
Views: 101

Re: Copy a certain CMYK color from one image to another image

What version of IM, on what platform?

I suggest you don't use the "composite" command. Instead, use "convert" in v6 or "magick" in v7, with a "-composite" option.

Why are you multiplying pixels?
by snibgo
2019-04-19T06:27:26-07:00
Forum: Users
Topic: scripting / processing multiple images
Replies: 9
Views: 254

Re: scripting / processing multiple images

IM works on lists of images in memory. Each read adds an image to the list. "+delete" removes the last image from the end of the image. (When there is only one image, this leaves the list empty.) It doesn't delete files. See http://www.imagemagick.org/script/comma ... php#delete
by snibgo
2019-04-19T06:03:47-07:00
Forum: Users
Topic: Copy a certain CMYK color from one image to another image
Replies: 6
Views: 101

Re: Copy a certain CMYK color from one image to another image

I think you want to composite the second image over the first, but only after making other colours transparent, like this: magick in1.jpg ( in2.jpg -alpha set -fuzz 0.5% +transparent icc-color(cmyk,0,0,0,0) ) -composite out.jpg The icc-color numbers are in the range 0.0 to 1.0. I'm not sure how you ...
by snibgo
2019-04-19T05:37:09-07:00
Forum: Users
Topic: scripting / processing multiple images
Replies: 9
Views: 254

Re: scripting / processing multiple images

... with test.txt containing this ... On the other thread, I showed a script with "+delete" after each file. If you don't have that, the second "-write" will write two files, the third "-write" will write three files, and so on. A v7 script file can contain any IM options except for "-script" (so s...
by snibgo
2019-04-19T05:32:14-07:00
Forum: Developers
Topic: batch processing / response file support
Replies: 6
Views: 173

Re: batch processing / response file support

00bins wrote:On windows there is a command line length limit of 8k chars.
Yes. The IM script facility has no limit, as far as I can see. I have tested it with long scripts, eg 100KB.
by snibgo
2019-04-18T17:30:28-07:00
Forum: Developers
Topic: batch processing / response file support
Replies: 6
Views: 173

Re: batch processing / response file support

I then have a modified version of convert ... You can do the job in single command, eg: convert \ in1.bmp -resize 64x64! type truecolor -write out1.bmp +delete \ in2.bmp -resize 64x64! type truecolor -write out2.bmp +delete \ in3.bmp -resize 64x64! type truecolor -write out3.bmp +delete \ : in999.b...
by snibgo
2019-04-18T09:33:18-07:00
Forum: Users
Topic: How to convert many tga to dds?
Replies: 4
Views: 149

Re: How to convert many tga to dds?

This does not work. Because the command is wrong. Your "-format dds" would be okay in mogrify, but in convert it sets the format for "info:". So remove that. Your output file is "C:\Img\*.dds". But that won't do what you want. I suggest you use something like "C:\Img\myfile_%d.dds" which will makes...
by snibgo
2019-04-18T08:12:34-07:00
Forum: Users
Topic: How to convert many tga to dds?
Replies: 4
Views: 149

Re: How to convert many tga to dds?

To process all the files in a folder, I suggest you either use "mogrify" instead of "convert", or use a "for" loop.
by snibgo
2019-04-18T08:08:37-07:00
Forum: Developers
Topic: density unit output
Replies: 5
Views: 132

Re: density unit output

Gimp can't process CMYK images, so those are converted to sRGB when they are read. To find the colorspace of the jpg file, I suggest you use exiftool.
by snibgo
2019-04-18T04:49:56-07:00
Forum: Developers
Topic: density unit output
Replies: 5
Views: 132

Re: density unit output

What is wrong with your result?

I guess your nBmpPrm.dpi was 150, and 150 dots per inch is 5.9 dots per millimetre.
by snibgo
2019-04-17T11:30:15-07:00
Forum: Bugs
Topic: Watermark visible in every editor/image viewer except Photoshop
Replies: 2
Views: 195

Re: Watermark visible in every editor/image viewer except Photoshop

As Fred hints, original.tif contains two images. So the OP command ... magick original.tif watermark.png -gravity center -composite result.tif ... reads these two images, then a third image "watermark.png". The "-composite" operation places the second image over the first, using the third as a mask....