I was able to extract the desired pointsize and it worked.
Yes, underscore may be different size than space. But I'm not that picky, I do not need 1000% exact perfect match.
I just ran my program about 80 times and the result was perfect each time.
In my case, debug result matched the label ...
Search found 14 matches
- 2016-05-11T07:12:58-07:00
- Forum: Users
- Topic: Label interword-spacing fit, but multiple spaces in text
- Replies: 5
- Views: 6163
- 2016-05-11T03:54:18-07:00
- Forum: Users
- Topic: Label interword-spacing fit, but multiple spaces in text
- Replies: 5
- Views: 6163
Re: Label interword-spacing fit, but multiple spaces in text
Where did you get that pointsize value of 32.25 ?
I forgot to mention: I batch process many images.
Every time there's a different random font, I have about 800 fonts.
So, each font will have a different final pointsize.
I just put my workaround together and it seems to work perfectly.
I use ...
I forgot to mention: I batch process many images.
Every time there's a different random font, I have about 800 fonts.
So, each font will have a different final pointsize.
I just put my workaround together and it seems to work perfectly.
I use ...
- 2016-05-11T00:39:36-07:00
- Forum: Users
- Topic: Label interword-spacing fit, but multiple spaces in text
- Replies: 5
- Views: 6163
Label interword-spacing fit, but multiple spaces in text
I need to fit (justify) a text to the bottom of an image.
I use label interword-spacing fit, and it's great when there's just one single space in the text: "www.google.com (555)123-4567"
But, now I have multiple spaces: "www.google.com CALL (555) 123-4567"
I need the final text to be stretched like ...
I use label interword-spacing fit, and it's great when there's just one single space in the text: "www.google.com (555)123-4567"
But, now I have multiple spaces: "www.google.com CALL (555) 123-4567"
I need the final text to be stretched like ...
- 2016-05-03T03:42:52-07:00
- Forum: Users
- Topic: Text stroke + shadow + PNG transparency + label interword-spacing fit
- Replies: 3
- Views: 4325
Re: Text stroke + shadow + PNG transparency + label interword-spacing fit
Holy cow !!! Thanks a lot !!
Yes, I looked at 'shadow', but I was always adding the shadow before '-composite +repage'
The same thing with 'clone', I was adding it before the final step ('-composite +repage')
Thank you very much, problem solved.
Later edit: hmm, one small problem: final image ...
Yes, I looked at 'shadow', but I was always adding the shadow before '-composite +repage'
The same thing with 'clone', I was adding it before the final step ('-composite +repage')
Thank you very much, problem solved.
Later edit: hmm, one small problem: final image ...
- 2016-05-03T02:40:23-07:00
- Forum: Users
- Topic: Text stroke + shadow + PNG transparency + label interword-spacing fit
- Replies: 3
- Views: 4325
Text stroke + shadow + PNG transparency + label interword-spacing fit
Final image is like this (used as watermark for video):
- transparent PNG, 1920x1080, text at bottom
- text is automatically fit to image width, using 'label' and 'interword-spacing'
- text is offset from border, using 'bordercolor transparent' and 'border'
- text has stroke
- text also needs to ...
- transparent PNG, 1920x1080, text at bottom
- text is automatically fit to image width, using 'label' and 'interword-spacing'
- text is offset from border, using 'bordercolor transparent' and 'border'
- text has stroke
- text also needs to ...
- 2015-02-04T06:38:22-07:00
- Forum: Users
- Topic: Compare subimage-search
- Replies: 11
- Views: 9020
Re: Compare subimage-search
No worries, looks like processing time is the same.
Thanks for pointing me in the right direction.
Thanks for pointing me in the right direction.
- 2015-02-04T06:06:13-07:00
- Forum: Users
- Topic: Compare subimage-search
- Replies: 11
- Views: 9020
Re: Compare subimage-search
Yes, after about 5 minutes I get the same result: 141,471
I have newer version:
Version: ImageMagick 6.9.0-3 Q16 x64 2014-12-30 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
Features: DPC Modules OpenMP
Delegates (built-in): bzlib cairo freetype jbig jng jp2 ...
I have newer version:
Version: ImageMagick 6.9.0-3 Q16 x64 2014-12-30 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
Features: DPC Modules OpenMP
Delegates (built-in): bzlib cairo freetype jbig jng jp2 ...
- 2015-02-04T03:16:15-07:00
- Forum: Users
- Topic: Compare subimage-search
- Replies: 11
- Views: 9020
Re: Compare subimage-search
Try it for yourself: https://www.dropbox.com/s/1tunak0ilqfvm ... s.ZIP?dl=0
- 2015-02-03T05:30:30-07:00
- Forum: Users
- Topic: Compare subimage-search
- Replies: 11
- Views: 9020
Re: Compare subimage-search
Managed to run the script.
But got result: 20 3
Top left corner, which is pretty much what I got using the standard imagemagick command.
But got result: 20 3
Top left corner, which is pretty much what I got using the standard imagemagick command.
- 2015-02-01T09:31:41-07:00
- Forum: Users
- Topic: Compare subimage-search
- Replies: 11
- Views: 9020
Re: Compare subimage-search
I will try and let you know.
- 2015-02-01T04:23:43-07:00
- Forum: Users
- Topic: Compare subimage-search
- Replies: 11
- Views: 9020
Re: Compare subimage-search
Metric - tried all.
"-similarity-threshold 0 -dissimilarity-threshold 1" - I will try this.
So far, tried -similarity-threshold from 0.2 to 0.99
Images are at different scales - no, they are not.
Small image is exracted from large image.
No resize was done on either image after extraction.
Images ...
"-similarity-threshold 0 -dissimilarity-threshold 1" - I will try this.
So far, tried -similarity-threshold from 0.2 to 0.99
Images are at different scales - no, they are not.
Small image is exracted from large image.
No resize was done on either image after extraction.
Images ...
- 2015-01-30T06:36:05-07:00
- Forum: Users
- Topic: Compare subimage-search
- Replies: 11
- Views: 9020
Compare subimage-search
Tried several things, metrics, a BAT script (don't remember the link right now), image crop, different similarity thresholds (some very low)... nothing helped.
The best result I got is a complete mismatch - it says found match at 0,4, which is obiously wrong.
The other results are taking too long or ...
The best result I got is a complete mismatch - it says found match at 0,4, which is obiously wrong.
The other results are taking too long or ...
- 2014-02-14T09:57:42-07:00
- Forum: Users
- Topic: Windows batch file - width / height operations
- Replies: 2
- Views: 2621
Re: Windows batch file - width / height operations
Great, THANKS !!
Second one worked like a charm (with fx).
Thanks again !
Second one worked like a charm (with fx).
Thanks again !
- 2014-02-14T09:20:33-07:00
- Forum: Users
- Topic: Windows batch file - width / height operations
- Replies: 2
- Views: 2621
Windows batch file - width / height operations
I use ImageMagick 6.8.2-8 2013-02-09 Q16 under Windows 7 x64 SP1 Ultimate.
I 'm trying to apply Perspective distort, but I need to use width / height coordinates.
This works OK:
convert out_textured.jpg -alpha set -virtual-pixel transparent -distort Perspective 0,0,9,95,0,"%%h",0,"%%h","%%w","%%h ...
I 'm trying to apply Perspective distort, but I need to use width / height coordinates.
This works OK:
convert out_textured.jpg -alpha set -virtual-pixel transparent -distort Perspective 0,0,9,95,0,"%%h",0,"%%h","%%w","%%h ...