}
else
{
+ MagickBooleanType
+ status;
+
delegate_info=GetDelegateInfo(read_info->magick,(char *) NULL,exception);
if (delegate_info == (const DelegateInfo *) NULL)
{
*read_info->filename='\0';
if (GetDelegateThreadSupport(delegate_info) == MagickFalse)
LockSemaphoreInfo(delegate_info->semaphore);
- (void) InvokeDelegate(read_info,image,read_info->magick,(char *) NULL,
+ status=InvokeDelegate(read_info,image,read_info->magick,(char *) NULL,
exception);
if (GetDelegateThreadSupport(delegate_info) == MagickFalse)
UnlockSemaphoreInfo(delegate_info->semaphore);
image=DestroyImageList(image);
read_info->temporary=MagickTrue;
- (void) SetImageInfo(read_info,0,exception);
+ if (status != MagickFalse)
+ (void) SetImageInfo(read_info,0,exception);
magick_info=GetMagickInfo(read_info->magick,exception);
if ((magick_info == (const MagickInfo *) NULL) ||
(GetImageDecoder(magick_info) == (DecodeImageHandler *) NULL))
assert(image->signature == MagickCoreSignature);
if (image->debug != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
-
rights=ExecutePolicyRights;
if (IsRightsAuthorized(DelegatePolicyDomain,rights,decode) == MagickFalse)
{
/*
Precision reset, or it has not been set yet
*/
- magick_precision = MagickPrecision;
+ magick_precision=MagickPrecision;
limit=GetEnvironmentValue("MAGICK_PRECISION");
if (limit == (char *) NULL)
limit=GetPolicyValue("precision");
decode="in_format" encode="out_format"
- specify the rules for converting from in_format to out_format These
- rules may be used to translate directly between formats.
+ specify the rules for converting from in_format to out_format. Use these
+ rules to translate directly between formats.
Commands which specify only
decode="in_format"
specify the rules for converting from in_format to some format that
- ImageMagick will automatically recognize. These rules are used to
- decode formats.
+ ImageMagick automatically recognizes. Use these rules to decode formats.
Commands which specify only
specify the rules for an "encoder" which may accept any input format.
- For delegates other than ps:*, pcl:*, and mpeg:* the substitution rules are
- as follows:
+ The substitution rules are as follows:
%a authentication passphrase
%b image file size in bytes
If stealth="True" the delegate is not listed in user requested
"-list delegate" listings. These are typically special internal delegates.
- If spawn="True" ImageMagick will not wait for the delegate to finish, nor will
- it read any output image.
+ If spawn="True", ImageMagick does not wait for the delegate to finish, nor
+ will it read any output image.
-->
<delegatemap>
<delegate decode="bpg" command=""@BPGDecodeDelegate@" -b 16 -o "%o.png" "%i"; @MVDelegate@ "%o.png" "%o""/>