fmttxt: pixels as formatted text #4515
Replies: 7 comments
-
@snibgo, we of course welcome your contribution, in particular, as we need to improve our support of multi-spectral images. Let us know when you are ready for us to validate fmttxt for inclusion in the ImageMagick distribution. We will likely make some changes such as adding the traditional coder header with you as the author and it will be distributed under the ImageMagick copyright. We reserve the right to change the coder name, although we may not. If you agree to all, post here when your feedback cycle completes. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Before you build, set the PKG_CONFIG_PATH environment variable if ImageMagick is not in your default system path:
|
Beta Was this translation helpful? Give feedback.
-
An alternative to "fmttxt:" might be "ftxt:". Feel free to use any name you want. Feel free to include the header and make any changes you want. I would appreciate a credit, eg to "snibgo (Alan Gibson)". I don't require a credit. I am content that the module works as I want. I have had no feedback, so I consider the feedback cycle completed. The PKG_CONFIG_PATH export doesn't seem to help, but I don't have time right now to investigate further. |
Beta Was this translation helpful? Give feedback.
-
We merged this coder into the master branch as "ftxt:". Thanks for contributing this module. |
Beta Was this translation helpful? Give feedback.
-
Testing fails for ftxt: magick rose: -kmeans 5 -unique-colors -depth 8 -define ftxt:format=\H\n ftxt: Produces
on IM 7.1.0-26. Am I doing something wrong? Is this actually implemented in Imagemagick? But this does produce values:
|
Beta Was this translation helpful? Give feedback.
-
That command works fine for me in Windows CMD. But in bash, it needs to be quoted:
Tested with IM v7.1.0-20. |
Beta Was this translation helpful? Give feedback.
-
To avoid any problems you can always check if ImageMagic support ftxt format! If not, use "awk" fallback..
|
Beta Was this translation helpful? Give feedback.
-
I have written a coder for writing and reading pixels as formatted text. It is flexible enough to read the "txt:", "sparse-color:" and "debug:" formats. The main control is a format string, which works in a similar way to "-format" for images. It works just like any other coder, but it can also read and write meta channels.
Documentation, examples and source code are at Formatted text coder.
I welcome any feedback. Please post any questions, comments or criticisms here.
I formally give permission for developers to incorporate it into ImageMagick under the usual "contributor" conditions. It might be wise to wait for any feedback to be resolved.
Beta Was this translation helpful? Give feedback.
All reactions