Search found 23884 matches

by fmw42
2018-10-20T12:13:21-07:00
Forum: Users
Topic: Get coordinates Top, Left, size of some areas
Replies: 40
Views: 497

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

@cgkas. I do not think we can help until you post your original input.png (in PNG format). Posting as JPG changes the colors and so your command to process the image won't work.
by fmw42
2018-10-20T12:03:40-07:00
Forum: Users
Topic: Get coordinates Top, Left, size of some areas
Replies: 40
Views: 497

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

snibgo, I changed the code after reading your reply and cgkas reply as I mentioned just above your last post here. I think that also is cleaner code. Here is are examples from a Google search: https://unix.stackexchange.com/questions/78925/how-to-sort-by-multiple-columns/78926 https://stackoverflow....
by fmw42
2018-10-20T11:14:59-07:00
Forum: Users
Topic: Get coordinates Top, Left, size of some areas
Replies: 40
Views: 497

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

I edited my code to use -k 3,3 -k 2,2 (also -k 3 -k 2 works). This produces the same results for me as with -k 3,2. Use whatever works. Thanks snibgo for looking into that on your Cygwin.
by fmw42
2018-10-19T20:44:05-07:00
Forum: Bugs
Topic: [Closed] possible bug -stereo using convert IM 6.9.10.11
Replies: 2
Views: 885

Re: possible bug -stereo using convert IM 6.9.10.11

The bug seems to be fixed in IM 6.9.10.12
by fmw42
2018-10-19T19:02:34-07:00
Forum: Users
Topic: Get coordinates Top, Left, size of some areas
Replies: 40
Views: 497

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

Perhaps your sort does not know about -g. So try -n convert BW.jpeg -threshold 50% -type bilevel \ -define connected-components:verbose=true \ -define connected-components:area-threshold=2000 \ -connected-components 4 \ null: | awk 'NR>2 {print $2}' | sort -n -t "+" -k 3,2 264x40+680+109 423x145+530...
by fmw42
2018-10-19T18:52:10-07:00
Forum: Users
Topic: Get coordinates Top, Left, size of some areas
Replies: 40
Views: 497

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

I suspect your sort is not sorting. Check your sort command and see if it supports the same features. Test my short code above and see if you can modify the sort to give the same order. The -g means compare according to general numerical value (not text order) The -t is the field separator. I use th...
by fmw42
2018-10-19T17:28:29-07:00
Forum: Users
Topic: Get coordinates Top, Left, size of some areas
Replies: 40
Views: 497

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

list="" #create an empty list bboxArr=(`convert BW.jpeg -threshold 50% -type bilevel \ # threshold your BW.jpeg and set its type to bilevel -define connected-components:verbose=true \ # define verbose mode for CCL -define connected-components:area-threshold=2000 \ # define area threshold=2000 for CC...
by fmw42
2018-10-19T17:10:44-07:00
Forum: Users
Topic: Get coordinates Top, Left, size of some areas
Replies: 40
Views: 497

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

My best guess is that your sort does not work the same as mine. Test this: convert BW.jpeg -threshold 50% -type bilevel \ -define connected-components:verbose=true \ -define connected-components:area-threshold=2000 \ -connected-components 4 \ null: | awk 'NR>2 {print $2}' | sort -g -t "+" -k 3,2 It ...
by fmw42
2018-10-19T16:39:29-07:00
Forum: Users
Topic: Unwanted gaps between combined PNG images
Replies: 20
Views: 674

Re: Unwanted gaps between combined PNG images

Please post your PNG file so we can test to see what is the problem.

Have you tried adding +repage after reading all the png files? There could be some virtual canvas offset remaining in your files that need removing.
by fmw42
2018-10-19T16:37:35-07:00
Forum: Users
Topic: Get coordinates Top, Left, size of some areas
Replies: 40
Views: 497

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

Do you have all the unix tools that I used installed such as AWK, sort, cut, wc, eval. If not, then install them. If so, then perhaps Cygwin behaves differently with these tools. I do not use Cygwin, so cannot confirm. Perhaps use snibgo can test my command on his Cygwin, if he has time and interest?
by fmw42
2018-10-19T15:03:02-07:00
Forum: Users
Topic: Change picture to transparent and inserting it into other picture at specific location
Replies: 16
Views: 391

Re: Change picture to transparent and inserting it into other picture at specific location

You need to add an RGB color profile to the second images. This seems to get it closer if not correct. magick gradiant-grey.jpg \ \( 4060715278916-0.png -trim +repage -gravity center -resize x4460 +repage \ -profile /Users/fred/images/profiles/sRGB.icc +write tmp.png \) \ -gravity northwest -geometr...
by fmw42
2018-10-19T13:26:18-07:00
Forum: Users
Topic: Change picture to transparent and inserting it into other picture at specific location
Replies: 16
Views: 391

Re: Change picture to transparent and inserting it into other picture at specific location

Looks fine for me. Post your resulting image so we can see how different it is. What is your exact Imagemagick version and platform/OS? magick -version will show what we need. Also what is your jpg and png versions. You can get those from magick -list format The issue could be in one of those delega...
by fmw42
2018-10-19T12:45:55-07:00
Forum: Users
Topic: rotate zoom - broke after update
Replies: 4
Views: 49

Re: rotate zoom - broke after update

The proper syntax has always been to add +repage after a crop or after a trim. IM 6 is more forgiving or syntax issues. IM 7 is very strict about using proper syntax.
by fmw42
2018-10-19T12:44:20-07:00
Forum: Users
Topic: Replace color but only in some regions
Replies: 18
Views: 179

Re: Replace color but only in some regions

I think that was all he needed so that he or you could properly use his code. But I will defer to him.
by fmw42
2018-10-19T12:43:05-07:00
Forum: Bugs
Topic: Converting Photoshop PDF with Transparency
Replies: 4
Views: 48

Re: Converting Photoshop PDF with Transparency

That indicates to me that it is likely Ghostscript. Try reinstalling at a version less than 9.24. 9.23 was pretty stable, but you could go back to 9.19 as snibgo has shown that it works.

I would suggest you report this to the Ghostscript developers.