Search found 39 matches

by djd
2017-07-19T00:16:05-07:00
Forum: Users
Topic: Inconsistent Font Metrics
Replies: 0
Views: 2751

Inconsistent Font Metrics

The convert -debug option offers various font metrics: convert -debug annotate xc: -font Arial -pointsize "30" \ -annotate 0 'A' null: 2>&1 | \ grep Metrics: Using this to extract ascent, descent, height, produces: pointsize=20 ascent=19 descent=-5 height=23 pointsize=24 ascent=22 descent=-6 height=...
by djd
2017-06-30T19:46:36-07:00
Forum: Users
Topic: The effect of + and - before options
Replies: 2
Views: 529

The effect of + and - before options

In another post, snibgo mentioned something of which I was not aware but is useful to know. Snibgo wrote: "Most, if not all, settings have "+" option to set the default value." If this is the case, then maybe `antialias' is an exception as when creating an image, the default behaviour is to antialia...
by djd
2017-06-30T19:28:16-07:00
Forum: Users
Topic: composite, parenthesis, -gravity problems
Replies: 6
Views: 1003

Re: composite, parenthesis, -gravity problems

Thanks GeeMack - that is brilliant!
There is no doubt IM is a powerfull and intriguing bunch of software, but that implies a casual user such as myself will never completely master it.

Thanks again.
by djd
2017-06-30T06:39:12-07:00
Forum: Users
Topic: composite, parenthesis, -gravity problems
Replies: 6
Views: 1003

Re: composite, parenthesis, -gravity problems

# Draw a scale with tick marks given the length and number of divisions Thanks Snibgo for mentioning the +gravity. I have always found gravity somewhat mysterious and +gravity is not mentioned in the IM command options web pages, but I guess I should have thought of it as a possible cure. Yes GeeMac...
by djd
2017-06-29T09:32:50-07:00
Forum: Users
Topic: Locating precise text position
Replies: 5
Views: 1007

Re: Locating precise text position

Thanks for the info GeeMack
by djd
2017-06-29T09:03:21-07:00
Forum: Users
Topic: composite, parenthesis, -gravity problems
Replies: 6
Views: 1003

composite, parenthesis, -gravity problems

The script below places pre-prepared rectangles containing numbers 27-0 along a line (scale50.png) of given length at approximately(1.) equal intervals. It works OK. ###################### script #################################### imgconvert -size 727x20 xc:'white' scale50.png while [ i -le 27 ] d...
by djd
2017-06-28T17:50:18-07:00
Forum: Users
Topic: Locating precise text position
Replies: 5
Views: 1007

Re: Locating precise text position

Thanks to both snibgo and GeeMack.
Removing sed and leaving everything to IM appeals as the more `elegant' way.
I also need to become familiar with `fx'.
by djd
2017-06-28T06:22:44-07:00
Forum: Users
Topic: Locating precise text position
Replies: 5
Views: 1007

Locating precise text position

The following seems to work (at least with two test numerics) but it appears overly complex. Is there a better way? # Given text of arbitary font size inside a box, find the x-position of # the first pixel of the text F=27 imgconvert -size 40x50 xc:none -pointsize 13 -fill black -gravity center \ -a...
by djd
2017-06-28T04:58:23-07:00
Forum: Users
Topic: Metric called `origin' is what?
Replies: 0
Views: 1896

Metric called `origin' is what?

convert -debug annotate xc: -font Arial -pointsize 40 \ -annotate 0 'g' null: 2>&1 |\ grep Metrics: | fmt -w80 Metrics: text: g; width: 20; height: 46; ascent: 37; descent: -9; max advance: 80; bounds: 2,-8 20,21; origin: 22,0; pixels per em: 40,40; underline position: -3.39063; underline thickness:...
by djd
2017-05-01T20:53:31-07:00
Forum: Users
Topic: Extract coordinates of similar features
Replies: 1
Views: 2382

Extract coordinates of similar features

Is there a script available which can extract the pixel coordinates of similar features in an image?
For example, the location of each of 20 bullet holes in a target.
djd
by djd
2013-11-21T21:04:33-07:00
Forum: Users
Topic: A way to get show:/win: working on Windows XP
Replies: 0
Views: 3871

A way to get show:/win: working on Windows XP

Thanks to snibgo and Chris for sharing insights and knowledge guiding the following. The short answer to the "win:" problem is described in the last few lines of this post, the long answer following here, includes how it came to be that. Here is the "win:" line from the original delegates.xml file i...
by djd
2013-11-21T20:46:51-07:00
Forum: Users
Topic: How can "show:", "win:" be made to work
Replies: 12
Views: 3122

Re: How can "show:", "win:" be made to work

Thanks for the help snibgo and chris (who is elsewhere). The use of the batch file myview.bat in delegates.xml does allow "win:" to work. The problem has been around a long time with no `fix' I have seen. So I have created a new post to describe this fix more directly and how it arose. The title is:...
by djd
2013-11-19T17:39:57-07:00
Forum: Users
Topic: How can "show:", "win:" be made to work
Replies: 12
Views: 3122

Re: How can "show:", "win:" be made to work

I remain confused: C:\>cmd /C "C:/myview2.bat" "C:/windows/TEMP/star.gif" The filename, directory name, or volume label syntax is incorrect. C:\>cmd /C C:/myview2.bat "C:/windows/TEMP/star.gif" % Works! C:\>cmd /C "C:/myview2.bat" C:/windows/TEMP/star.gif % Works! C:\>cmd /C C:/myview2.bat C:/window...
by djd
2013-11-19T06:12:55-07:00
Forum: Users
Topic: How can "show:", "win:" be made to work
Replies: 12
Views: 3122

Re: How can "show:", "win:" be made to work

These all work:

C:\>cmd /C myview2.bat star.gif

C:\>cmd /C myview1.bat star.gif

C:\>cmd /C myview2.bat "C:\Documents and Settings\djd\star.gif"

C:\>cmd /C myview1.bat "C:\Documents and Settings\djd\star.gif"
by djd
2013-11-19T00:25:25-07:00
Forum: Users
Topic: How can "show:", "win:" be made to work
Replies: 12
Views: 3122

Re: How can "show:", "win:" be made to work - 1/2way there?

The following batch files work in the XP command shell: myview1.bat: @echo off C:\programs\ifanview\i_view32.exe %~s1 myview2.bat: @echo off C:/WINDOWS/system32/rundll32.exe c:/windows/system32/shimgvw.dll,ImageView_Fullscreen %~s1 i_view32 is a free GUI The second batch file invokes "Windows Pictur...