Search found 20496 matches

by fmw42
2017-03-24T15:19:39-07:00
Forum: Users
Topic: How to slice up image of text
Replies: 24
Views: 158

Re: How to slice up image of text

So what exactly are you trying to extract? If you average (-scale) the image to one column and save to txt format, it will show you where the blank lines exist (pure white). You will have sections of dark separated by a few pixels of white. Use the white areas as the y locations to crop your image. ...
by fmw42
2017-03-24T15:14:18-07:00
Forum: Users
Topic: Converting PCD files results in Abort trap: 6
Replies: 14
Views: 142

Re: Converting PCD files results in Abort trap: 6

@fmw42: Your test has used IM to create a PCD. I think IM can create PCD files that contain only one layer, which is always 768x512. IM can't create multiple layered PCDs. A PCD from a Kodak PhotoD or similar has multiple layers (the same image at different sizes). That is likely correct and would ...
by fmw42
2017-03-24T15:09:28-07:00
Forum: Users
Topic: Erasing a region of an image only if it contains more than a certain proportion of a specified colour.
Replies: 14
Views: 135

Re: Erasing a region of an image only if it contains more than a certain proportion of a specified colour.

In windows, just do it manually the first time. Then you can see what is happening and build a .bat file. # run compare on the top part of your image (70 pixel high and full width) compare -metric rmse -subimage-search R2rmWqk.jpg[x70+0+0] template.png null: The results should look like: 58.9598 (0....
by fmw42
2017-03-24T14:59:41-07:00
Forum: Users
Topic: Mac OS 10.12 - Issues reading image
Replies: 3
Views: 38

Re: Mac OS 10.12 - Issues reading image

Did you install ghostscript at the same time as Imagemagick (in the same install command) from Homebrew? Not as two separate installs. Find your delegates.xml file in your installed system. Then open in a text editor and modify the lines where it says gs to be the full path2/gs. I do not know where...
by fmw42
2017-03-24T13:33:44-07:00
Forum: Users
Topic: Mac OS 10.12 - Issues reading image
Replies: 3
Views: 38

Re: Mac OS 10.12 - Issues reading image

I do not think that Imagick works with IM 7, since syntax has changed. But I could be wrong for the latest versions of Imagick. Be sure it says it is compatible with IM 7. Or perhaps Imagemagick/Imagick is not seeing ghostscript. I have seen this issue with Imagick before. Does Imagick work with GIF...
by fmw42
2017-03-24T13:30:06-07:00
Forum: Users
Topic: Converting PCD files results in Abort trap: 6
Replies: 14
Views: 142

Re: Converting PCD files results in Abort trap: 6

I did not know that mogrify allowed layer/page/frame/resolution selection? For both IM 6.9.8.2 and IM 7.0.5.3 Q16, I get an error with the layer selection convert logo: logo.pcd mogrify -path ../test2 -colorspace sRGB -format png *.PCD[5] mogrify: unexpected end-of-file 'logo.PCD': Bad file descript...
by fmw42
2017-03-24T13:16:00-07:00
Forum: Users
Topic: Converting PCD files results in Abort trap: 6
Replies: 14
Views: 142

Re: Converting PCD files results in Abort trap: 6

or my system (macOS 10.12 Sierra) is not compatible with the version of ImageMagick (the binary is for OS X 10.11 El Capitan) That is likely the issue. IM has only one version for Mac. You will need to either get it from MacPorts or Homebrew for your Mac version or install all your delegates and IM...
by fmw42
2017-03-24T13:10:04-07:00
Forum: Users
Topic: Erasing a region of an image only if it contains more than a certain proportion of a specified colour.
Replies: 14
Views: 135

Re: Erasing a region of an image only if it contains more than a certain proportion of a specified colour.

You can recode my commands in Windows bat syntax and use just the top of the image for the compare.
by fmw42
2017-03-24T13:07:25-07:00
Forum: IMagick
Topic: Very slow "writeImages"
Replies: 8
Views: 40

Re: Very slow "writeImages"

GIF compression to 256 colors or fewer is known to be rather slow. See http://www.imagemagick.org/script/quantize.php Your processing is changing the number of colors (due to resampling in the resizing). So you are compressing each frame separately down to 256 colors. You might want to use a common ...
by fmw42
2017-03-24T11:30:58-07:00
Forum: Users
Topic: Converting PCD files results in Abort trap: 6
Replies: 14
Views: 142

Re: Converting PCD files results in Abort trap: 6

From http://www.imagemagick.org/script/formats.php

PCD RW Photo CD The maximum resolution written is 768x512 pixels since larger images require huffman compression (which is not supported).

Is your image larger than that?
by fmw42
2017-03-24T11:25:17-07:00
Forum: Users
Topic: Erasing a region of an image only if it contains more than a certain proportion of a specified colour.
Replies: 14
Views: 135

Re: Erasing a region of an image only if it contains more than a certain proportion of a specified colour.

I can't get the -region command to work, no matter what I try. This is part of why I came here asking for advice. Why -region? Just crop the top of the image as your input. theight=38 thresh=0.01 infile="R2rmWqk.jpg" data=`compare -metric rmse -subimage-search ${infile}[x75+0+0] template.png null: ...
by fmw42
2017-03-24T10:47:33-07:00
Forum: Users
Topic: Erasing a region of an image only if it contains more than a certain proportion of a specified colour.
Replies: 14
Views: 135

Re: Erasing a region of an image only if it contains more than a certain proportion of a specified colour.

If you are on Unix (Linux, Mac OSX, Windows with Cygwin or Windows 10 unix), then you can try my script normcrosscorr or rmsecorr. They are about a hundred times faster. see http://www.fmwconcepts.com/imagemagick/normcrosscorr/index.php or http://www.fmwconcepts.com/imagemagick/rmsecorr/index.php. I...
by fmw42
2017-03-24T10:23:32-07:00
Forum: Users
Topic: Erasing a region of an image only if it contains more than a certain proportion of a specified colour.
Replies: 14
Views: 135

Re: Erasing a region of an image only if it contains more than a certain proportion of a specified colour.

You could create a small image containing those words by cropping from one image. Then use compare to locate that template in your images. If found in a reasonable place and with a good enough metric, you can shave off to the bottom of the match area in height. See the -subimage-search option with c...
by fmw42
2017-03-24T10:19:48-07:00
Forum: Users
Topic: Diffs between convert.exe under ImageMagick 6 and 7
Replies: 5
Views: 80

Re: Diffs between convert.exe under ImageMagick 6 and 7

Post an example BMP input and your different output JPGs. Also not that formally -quality should come after reading the input image and just before writing the JPG. IM 7 is more strict about syntax. So try

Code: Select all

convert backgroundDefault.bmp -quality 100 backgroundDefault.jpg
by fmw42
2017-03-24T10:12:51-07:00
Forum: Users
Topic: Converting PCD files results in Abort trap: 6
Replies: 14
Views: 142

Re: Converting PCD files results in Abort trap: 6

I am not sure you can add [5] to your *PCD in mogrify.