Page 1 of 1
% escapes in API's
Posted: 2012-10-14T07:53:25-07:00
by Alan Hadley
Is there any way to switch on, or a function that will expand % escapes in the Magick Core. They do not work in the PreviewImage() function the caption on the centre image shows them as literal text. I would also like them to be available in MontageImageList() or when assigning a Label to an Image.
Alan
Re: % escapes in API's
Posted: 2012-10-17T21:15:18-07:00
by fmw42
Sorry I know little about APIs. But I think more information would be helpful. What version of IM? What platform? What is the command you are trying to use. % escapes likely only work in IM 7 with -format, -set, -define or with -distort. see
http://www.imagemagick.org/script/escape.php
http://www.imagemagick.org/Usage/basics/#arg_percent
http://www.imagemagick.org/Usage/distor ... ol_escapes
http://www.imagemagick.org/Usage/basics/#set
In IM 7, it is anticipated that they will be more globally allowed.
Re: % escapes in API's
Posted: 2012-10-17T21:36:22-07:00
by anthony
Only more globally in the sheel and scripting API's.
Basically other API's should have access to the appropriate function.
In MagickCore the function to expand percent escapes is InterpretImageProperties(...). In IMv6 this has to include a specific image.