Search found 23856 matches

by fmw42
2018-10-18T19:59:04-07:00
Forum: Users
Topic: Get coordinates Top, Left, size of some areas
Replies: 19
Views: 277

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

Here is unix bash shell code to do what you want. Input: http://www.fmwconcepts.com/misc_tests/ccl_object_extract2/input.jpeg But since your input was converted from PNG to JPG you original colors were modified. So I have to start with the black/white extracted image you provided: http://www.fmwconc...
by fmw42
2018-10-18T16:42:55-07:00
Forum: Users
Topic: Applying Logo To Shirt (white halo)
Replies: 19
Views: 23816

Re: Applying Logo To Shirt (white halo)

I do not understand the question. I show above step by step how to process the tshirt to get the lighting and displacement maps. Post your tshirt image and the image you want to put on it. Better, just use my tshirt script at my link below. You will need a unix environment, which could be Linux, Mac...
by fmw42
2018-10-18T16:37:56-07:00
Forum: Bugs
Topic: [convert] -density does not seem to have any effect
Replies: 3
Views: 47

Re: [convert] -density does not seem to have any effect

For PDF files, you need to put the density before reading the PDF file.

Code: Select all

convert -units pixelsperinch -density 1600 foo.pdf foo.png
by fmw42
2018-10-18T12:45:46-07:00
Forum: Bugs
Topic: [convert] -density does not seem to have any effect
Replies: 3
Views: 47

Re: [convert] -density does not seem to have any effect

What is your version of Ghostscript? Perhaps that needs upgrading or downgrading. Please post an example of a PDF that fails for you. You should be able to get the GS version from: gs --version at a terminal window Try specifying the units also convert -units pixelsperinch -density 1600 foo.pdf foo....
by fmw42
2018-10-18T11:54:42-07:00
Forum: Users
Topic: bootlogo colour change impossible :(
Replies: 16
Views: 566

Re: bootlogo colour change impossible :(

I have no other ideas. Perhaps you should discuss this with the organization that made the tool you are using to create the bmp file.
by fmw42
2018-10-18T11:20:05-07:00
Forum: Users
Topic: Making semi-transparent white pixels in an image all a single color
Replies: 3
Views: 48

Re: Making semi-transparent white pixels in an image all a single color

Your alpha channel is the same as your base image. You can see that from comparing the results of convert test.png -alpha off aoff.png http://www.fmwconcepts.com/misc_tests/alpha_threshold/aoff.png convert test.png -alpha extract alpha.png http://www.fmwconcepts.com/misc_tests/alpha_threshold/alpha....
by fmw42
2018-10-18T11:08:49-07:00
Forum: Users
Topic: Unwanted gaps between combined PNG images
Replies: 17
Views: 550

Re: Unwanted gaps between combined PNG images

Try upgrading libpng first. See if that helps.
by fmw42
2018-10-18T11:07:55-07:00
Forum: Users
Topic: How to Manipulate Patterns with Imagemagick Distort
Replies: 25
Views: 6646

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: 3
Views: 61

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: 17
Views: 550

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: 19
Views: 277

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: 19
Views: 277

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: 17
Views: 550

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: 19
Views: 277

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: 19
Views: 277

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...