% escapes in API's

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
Alan Hadley
Posts: 48
Joined: 2010-03-31T12:17:55-07:00
Authentication code: 8675308

% escapes in API's

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: % escapes in API's

Post 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.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: % escapes in API's

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply