Ernst Bunders wrote:
2 Due to an apperant change in java (1.4.1) specifications it is no longer
possible to pass characters outside the ascii set to imagemagick. This makes

I still don't understand this. I'm now testing on Windows and Linux and in both situations it is possible to print characters like "e with acute". For the people who seem to have this problem, there might be a solution. ImageMagick has the feature of reading the text to be printed on the image from a textfile.


From http://www.imagemagick.org/www/ImageMagick.html: If the first character of string is @, the text is read from a file titled by the remaining characters in the string.

My idea would be to extend the current MMBase syntax:

+text(0,20,'MM Base')

with:

+text(0,20,@mmbase,'MM Base')

If MMBase would detect the @mmbase part it would create a temp file with File.createTempFile("mmbase", null), write the text to this file, and feed the filename to ImageMagick instead of the text.

This makes it also possible to include special characters like % and the single quote. For example, currently the %w would be replaced by the image with.

I don't need this solution for my project now, so I can't spend time to implement this, but maybe someone else having this problem could implement this.

Jaco





Reply via email to