Search found 23881 matches

by fmw42
2018-10-19T19:02:34-07:00
Forum: Users
Topic: Get coordinates Top, Left, size of some areas
Replies: 33
Views: 421

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: 33
Views: 421

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: 33
Views: 421

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: 33
Views: 421

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: 634

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: 33
Views: 421

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: 380

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: 380

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: 48

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: 173

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: 44

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.
by fmw42
2018-10-19T12:39:37-07:00
Forum: Users
Topic: Get coordinates Top, Left, size of some areas
Replies: 33
Views: 421

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

You have not said what platform/OS!
by fmw42
2018-10-19T12:38:50-07:00
Forum: Users
Topic: Change picture to transparent and inserting it into other picture at specific location
Replies: 16
Views: 380

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

try this where I resize only according to the height and let the width be in proportion. (note I have written a tmp.png file to show you the height of the resize dress image) magick ./gradiant-grey.jpg \ \( "4060715278916-0.png" -transparent white -trim +repage -gravity center \ -resize x4460 +repag...
by fmw42
2018-10-19T12:30:51-07:00
Forum: Users
Topic: Replace color but only in some regions
Replies: 18
Views: 173

Re: Replace color but only in some regions

Yes that is PNG also.
by fmw42
2018-10-19T12:19:30-07:00
Forum: Bugs
Topic: possible bug annotate with negative rotations
Replies: 0
Views: 14

possible bug annotate with negative rotations

IM 6.9.10.12 Q16 Mac OSX Sierra I tried using negative values for the rotation in -annnotate. It did the rotation but the text was offset badly. -annotate -10x-10+${xoff}+"${off} However, converting to positive rotations works fine as -annotate 350x350+${xoff}+"${off} Compare these two results: conv...