Search found 23893 matches

by fmw42
2018-10-18T11:07:55-07:00
Forum: Users
Topic: How to Manipulate Patterns with Imagemagick Distort
Replies: 25
Views: 6693

Re: How to Manipulate Patterns with Imagemagick Distort

Sorry, I do not know PHP Imagick. But you can run my script, outfit, using PHP exec(), if that helps.
by fmw42
2018-10-18T11:03:07-07:00
Forum: Bugs
Topic: Problems converting EPS into anything
Replies: 5
Views: 114

Re: Problems converting EPS into anything

Both work fine for me on IM 6.9.10.12 Q16 Mac OSX with GS 9.24. The second gives a message convert 1.eps 1.png convert 2.eps 2.png convert: profile 'icc': 'RGB ': RGB color space not permitted on grayscale PNG `2.png' @ warning/png.c/MagickPNGWarningHandler/1667. But that is expected since it is try...
by fmw42
2018-10-17T23:07:33-07:00
Forum: Users
Topic: Unwanted gaps between combined PNG images
Replies: 29
Views: 811

Re: Unwanted gaps between combined PNG images

What is your version of libpng? convert -list format should tell you that for the line starting with PNG. Look at the end of the line. For me, I have PNG* PNG rw- Portable Network Graphics (libpng 1.6.35 ) If you do not have a current version of libpng, then upgrade. IM 6.9.0.0 is a bit old, too. Cu...
by fmw42
2018-10-17T17:05:30-07:00
Forum: Users
Topic: Get coordinates Top, Left, size of some areas
Replies: 46
Views: 636

Re: Get coordinates Top, Left, size of some areas

P.S. You should be able to use the unix tool, sort, to sort them by the upper left Y and X coordinates so that you can then search linearly for neighboring entries with similar Y values. You may have to make several passes of the box coordinate list. I have not given it too much thought. Perhaps the...
by fmw42
2018-10-17T17:00:14-07:00
Forum: Users
Topic: Get coordinates Top, Left, size of some areas
Replies: 46
Views: 636

Re: Get coordinates Top, Left, size of some areas

You can extract the boxes as you desire, match Y coordinates, then crop each box from the input and join them with a white space between them using +smush +15+0. It is like +append, but allows spacing or overlap. Alternately, you could combined them with montage, as it allows the -geometry +15+0 to ...
by fmw42
2018-10-17T16:04:04-07:00
Forum: Users
Topic: Unwanted gaps between combined PNG images
Replies: 29
Views: 811

Re: Unwanted gaps between combined PNG images

There should not be any gaps with append. So that may be a bug in your version of Imagemagick or if on Linux, a bug in the distribution patch. Your exact append command line would help us to help you. Note that proper IM syntax would read the input images after convert and then apply the append and ...
by fmw42
2018-10-17T15:35:25-07:00
Forum: Users
Topic: Get coordinates Top, Left, size of some areas
Replies: 46
Views: 636

Re: Get coordinates Top, Left, size of some areas

1) No, not directly. You would need to extract the area fields and filter on them 2) Again, you would have to filter on Y coordinate of the extracted bounding boxes, then crop the original image for those boxes, one crop command per box. I am not sure I know what you mean by merge? Do you mean inclu...
by fmw42
2018-10-17T13:40:39-07:00
Forum: Users
Topic: Get coordinates Top, Left, size of some areas
Replies: 46
Views: 636

Re: Get coordinates Top, Left, size of some areas

Your awk command is nice and compact, but it still prints the second field of the header line. (id: 423x355+530+589 422x355+70+589 423x205+530+379 422x205+70+379 423x145+530+203 423x145+70+203 264x40+680+109 You need to skip the first line and the line starting with 0: So use awk 'NR!=1 && !/ 0:/{pr...
by fmw42
2018-10-17T13:12:41-07:00
Forum: Bugs
Topic: Purple haze when converting CR2 into JPG
Replies: 9
Views: 356

Re: Purple haze when converting CR2 into JPG

Please post your original CR2. We can test and see if it is a JPG issue or an Imagemagick issue.
by fmw42
2018-10-17T11:17:48-07:00
Forum: Users
Topic: Get coordinates Top, Left, size of some areas
Replies: 46
Views: 636

Re: Get coordinates Top, Left, size of some areas

I think this gets your 7 boxes where I have tossed out the header line and the largest black region which is the background. I tossed out anything smaller than 2000 pixels in area to throw out the white lines surrounding the black boxes. convert Black_and_White.jpeg -threshold 50% -type bilevel \ -d...
by fmw42
2018-10-17T10:53:48-07:00
Forum: Users
Topic: Get coordinates Top, Left, size of some areas
Replies: 46
Views: 636

Re: Get coordinates Top, Left, size of some areas

Is there a way to mix in a single command the 2 steps below to make it more straight forward? Just concatenate the two commands without the intermediate saved image. convert input.png \ -transparent '#39D6AE' \ -transparent '#9EB629' \ -transparent '#8DA718' \ -transparent '#A47721' \ -transparent ...
by fmw42
2018-10-17T09:31:27-07:00
Forum: Users
Topic: Get coordinates Top, Left, size of some areas
Replies: 46
Views: 636

Re: Get coordinates Top, Left, size of some areas

Perhaps I misunderstand the question. I think cgkas simply wants the coordinates of the black connected components: Yes, I agree with you. Good point. There is no need to fill then with white, since they are surrounded by white. Thus you can find the black rectangles as well as the white one apart ...
by fmw42
2018-10-16T23:43:14-07:00
Forum: Users
Topic: pdf to image problem
Replies: 4
Views: 91

Re: pdf to image problem

Code: Select all

magick -density 288 convert 01.pdf -resize 25% 01.png
Nominal density is 72. So 72*4=288 and thus I resize by the inverse of 4 = 1/4 = 25%
by fmw42
2018-10-16T23:19:03-07:00
Forum: Users
Topic: pdf to image problem
Replies: 4
Views: 91

Re: pdf to image problem

You need to install the Ghostscript delegate into your Imagemagick. Imagemagick cannot find Ghostscript.
by fmw42
2018-10-16T23:17:50-07:00
Forum: Users
Topic: Get coordinates Top, Left, size of some areas
Replies: 46
Views: 636

Re: Get coordinates Top, Left, size of some areas

I am not sure how to do that unless you can color them first so they are filled in. If the lines were separate and did not connect between the box areas AND there were no extended lines, then then could be identified. But the connected components will get the bounding boxes including the extended li...