Search found 10 matches
- 2019-10-09T04:14:22-07:00
- Forum: Users
- Topic: [Solved] Specifying a maximum width for long caption text while for shorter strings occupying a shorter width?
- Replies: 10
- Views: 187198
Re: Specifying a maximum width for long caption text while for shorter strings occupying a shorter width?
You can insert "+write info:" at any point in the command. Another hint: insert "+write abc.png" anywhere. Very handy for debugging. The format can contain other characters, so we can do things like this Fantastic. I also realized I could use -format "dimens=%w %h" (double percents required for ...
- 2019-10-09T03:20:22-07:00
- Forum: Users
- Topic: [Solved] Specifying a maximum width for long caption text while for shorter strings occupying a shorter width?
- Replies: 10
- Views: 187198
Re: Specifying a maximum width for long caption text while for shorter strings occupying a shorter width?
Just another thing: is it possible to somehow obtain info: output from two different points in the one command? Or some way to store two then output one at the end of the same command? I'd like to be able to check the dimensions result of a command sequence using info: and then check the -format ...
- 2019-10-03T00:24:57-07:00
- Forum: Users
- Topic: [Solved] Specifying a maximum width for long caption text while for shorter strings occupying a shorter width?
- Replies: 10
- Views: 187198
Re: Specifying a maximum width for long caption text while for shorter strings occupying a shorter width?
Figured out an alternative in the meantime (server also seemed to be having HTTPS certificate issues when I checked a few times). The following is a for loop that checks the dimensions of the single line test string against the actual string, as per snibgo's example, then displays the IM info which ...
- 2019-10-02T08:37:47-07:00
- Forum: Users
- Topic: [Solved] Specifying a maximum width for long caption text while for shorter strings occupying a shorter width?
- Replies: 10
- Views: 187198
Re: Specifying a maximum width for long caption text while for shorter strings occupying a shorter width?
The trim line can be more complex, eg adding a border Tested and unfortunately appears even with something like -border 0x2 (affecting just the top/bottom) to not be able to match the whitespace/alignment of the original. We can't have a single command that uses either "label:" or "caption ...
- 2019-10-02T07:41:44-07:00
- Forum: Users
- Topic: [Solved] Specifying a maximum width for long caption text while for shorter strings occupying a shorter width?
- Replies: 10
- Views: 187198
Re: Specifying a maximum width for long caption text while for shorter strings occupying a shorter width?
If the caption image is a single line, you want to trim it. Correct? Kind of. Before you suggested -trim I was thinking I'd have to set a batch variable (eg: text-single-line=1) which would conditionally change -caption to -label instead, if a string wasn't longer than the maximum width (ie: a ...
- 2019-10-02T04:51:09-07:00
- Forum: Users
- Topic: [Solved] Specifying a maximum width for long caption text while for shorter strings occupying a shorter width?
- Replies: 10
- Views: 187198
Re: Specifying a maximum width for long caption text while for shorter strings occupying a shorter width?
What version of IM, on what platform? I suppose you are specifying pointsize. Please always show complete commands, or we need to guess. IM 7.0.7 on Windows. The full label code I'm using is that from the previous topic I linked in the OP (which you graciously helped with, thanks again!) but here ...
- 2019-10-01T20:31:15-07:00
- Forum: Users
- Topic: [Solved] Specifying a maximum width for long caption text while for shorter strings occupying a shorter width?
- Replies: 10
- Views: 187198
[Solved] Specifying a maximum width for long caption text while for shorter strings occupying a shorter width?
Following on from my previous topic about an existing label setup I then began looking into 'caption' which shares the same syntax as 'label' but allows for automatic text wrapping when paired with the -size option. The goal I had was to define a maximum width for a caption to wrap text at, while ...
- 2019-09-16T07:59:58-07:00
- Forum: Users
- Topic: [Solved] Using alpha of programmatically generated image for clipping mask of RGBA background color label?
- Replies: 4
- Views: 13204
Re: Using alpha of programmatically generated image for clipping mask of RGBA background color label?
A simplified version so we don't need to do "label:" and "-splice" etc twice: *snip* Rearranging so we can use alpha directly in the text or background or both: *snip* Very heartily appreciated. I can see now with the first example what you meant with just how much can be simplified, indeed ...
- 2019-09-16T06:01:24-07:00
- Forum: Users
- Topic: [Solved] Using alpha of programmatically generated image for clipping mask of RGBA background color label?
- Replies: 4
- Views: 13204
Re: Using alpha of programmatically generated image for clipping mask of RGBA background color label?
I suggest you split long commands into logical lines. This makes them easier to build, understand, and debug. For example Nice tip, thanks. Had seen such formatting in other posts but not in a Windows console escaped fashion so wasn't aware it was possible to break into new lines. I inserted ...
- 2019-09-15T21:06:04-07:00
- Forum: Users
- Topic: [Solved] Using alpha of programmatically generated image for clipping mask of RGBA background color label?
- Replies: 4
- Views: 13204
[Solved] Using alpha of programmatically generated image for clipping mask of RGBA background color label?
I've been experimenting with an IM label all-in-one command that produces a rounded corner image based on the dimensions of a text label and wanted to use the result as a kind of clipping mask for the subsequent visible text label and RGBA background color (the initial text label is simply used to ...