%w, not %w% and magick instead of convert for v 7 functionality.
Not sure it does what you want, but at least no errors for me.
Search found 64 matches
- 2018-05-05T17:02:20-07:00
- Forum: Users
- Topic: Variable argument in a string
- Replies: 3
- Views: 3282
- 2018-05-04T07:53:49-07:00
- Forum: Users
- Topic: How Can I Determine The Visual, Background Color?
- Replies: 2
- Views: 3450
Re: How Can I Determine The Visual, Background Color?
You could get the histogram data from identify, manipulate the text a bit, then sort it to get the max. Everything after the use of identify would use some other tool.
- 2018-04-29T10:32:55-07:00
- Forum: Users
- Topic: No matter what, second parameter of convert always invalid.
- Replies: 15
- Views: 50257
Re: No matter what, second parameter of convert always invalid.
IM 7 uses magick. When you use convert, it is actually running the legacy IM 6. So if you really want the new features of IM 7, then use magick, not convert. This is good to know since IM's behavior on this seems a bit misleading. That is, on my High Sierra system, I get the following identical out...
- 2018-04-22T14:49:07-07:00
- Forum: Users
- Topic: miff mpr - what to use?
- Replies: 10
- Views: 7405
Re: miff mpr - what to use?
Miff is a file format, so writing "abc.miff" writes to disk, so the image is available for subsequent commands. Mpr is a memory location, so writing "mpr:abc" clones the image to memory, so it is available for subsequent operations within that command (by reading from "mpr:...
- 2018-04-22T08:11:51-07:00
- Forum: Users
- Topic: miff mpr - what to use?
- Replies: 10
- Views: 7405
Re: miff mpr - what to use?
convert a.tiff b.tiff -compose Minus_Src -composite mpr:c d.tiff -compose Divide_Src -composite final.tiff That won't work because "mpr:c" is a request to read mpr:c, but it hasn't been written. It could be "+write mpr:c". But there is no point in writing to mpr:c if it is never...
- 2018-04-22T06:38:00-07:00
- Forum: Users
- Topic: miff mpr - what to use?
- Replies: 10
- Views: 7405
Re: miff mpr - what to use?
Why convert to miff at all? Just compose the tiff files into mpr: (so they stay in memory and never get written out) and then only write the final product: convert a.tiff b.tiff -compose Minus_Src -composite mpr:c d.tiff -compose Divide_Src -composite final.tiff (That might have to be divide_dst in ...
- 2018-04-19T16:59:01-07:00
- Forum: Users
- Topic: Do math with -set variables?
- Replies: 6
- Views: 7376
Re: Do math with -set variables?
There's more going on in my command, but it's that bit at the end that I'd like to do by adding a border instead of using extent, as here. I'm basically trimming down a file, making it black and then adding a white border on the top, so I need to know how big the border should be, hence the desire ...
- 2018-04-19T12:02:12-07:00
- Forum: Users
- Topic: Do math with -set variables?
- Replies: 6
- Views: 7376
Re: Do math with -set variables?
[In my much longer command, if I use extent to get the bigger image the entire resulting image is white, instead of retaining the black, so something else is going on there which leads me to try border. PS In this simplified command, I get a white border on the left of the final image, in addition ...
- 2018-04-19T08:40:59-07:00
- Forum: Users
- Topic: Do math with -set variables?
- Replies: 6
- Views: 7376
Re: Do math with -set variables?
I'm saving an image height with `-set ht '%h'` and then using it later when I need to restore the image to its original height. What I tried to do was to add a border to the image where the height of the border is the difference between the original height and the current height. So I was hoping I ...
- 2018-04-19T06:47:34-07:00
- Forum: Users
- Topic: Do math with -set variables?
- Replies: 6
- Views: 7376
Do math with -set variables?
I'm saving an image height with `-set ht '%h'` and then using it later when I need to restore the image to its original height. What I tried to do was to add a border to the image where the height of the border is the difference between the original height and the current height. So I was hoping I c...
- 2018-04-08T09:33:20-07:00
- Forum: Users
- Topic: Style on IM Usage pages
- Replies: 1
- Views: 2157
Style on IM Usage pages
I love the Usage section of the website. It's an enormous help. Its style though make it a little hard to read. How can one suggest changes? For example, the following in the body css would make it much more readable: background-color: eee; font-family: sans-serif; line-height: 120%; I'd also throw ...
- 2018-03-18T19:53:15-07:00
- Forum: Users
- Topic: Can we extract as an image blocks of text?
- Replies: 2
- Views: 4047
Re: Can we extract as an image blocks of text?
Isn't this what tesseract does? That is, it finds the text in images. it will output box coordinates, too. Look at the man page and especially the hocr output.
- 2018-03-18T19:46:44-07:00
- Forum: Users
- Topic: Expand a stack of files to equal size
- Replies: 29
- Views: 16811
Re: Expand a stack of files to equal size
There was someone who had volunteered to rewrite the documents page into some form like that which would be searchable. But it has been a year or more and I have not heard anything further. Have you thought about putting them on GitHub and just taking PRs? I love them, but they could use a little T...
- 2018-03-18T10:52:59-07:00
- Forum: Users
- Topic: Expand a stack of files to equal size
- Replies: 29
- Views: 16811
Re: Expand a stack of files to equal size
Such a thing could be a wiki, perhaps. Good idea. A place where users could post solutions to problems they've encountered. And users could ask for advice on solving problems, and other users could answer. It could be a forum, of course. Oh, hang on... No, not that actually. :-) A forum is where pe...
- 2018-03-18T08:47:08-07:00
- Forum: Users
- Topic: Expand a stack of files to equal size
- Replies: 29
- Views: 16811
Re: Expand a stack of files to equal size
I would suggest making a list of your files and process with my layers trim-bounds. Then write a script loop over the same files to extend them using -extent WxH where WxH is the dimensions found from the trim-bounds command. That's certainly more convenient than having to find the max of all width...