char
command[MaxTextExtent],
- density[MaxTextExtent],
+ *density,
filename[MaxTextExtent],
geometry[MaxTextExtent],
- options[MaxTextExtent],
+ *options,
input_filename[MaxTextExtent];
const char
delegate_info=GetDelegateInfo("pcl:color",(char *) NULL,exception);
if (delegate_info == (const DelegateInfo *) NULL)
return((Image *) NULL);
- *options='\0';
if ((page.width == 0) || (page.height == 0))
(void) ParseAbsoluteGeometry(PSPageGeometry,&page);
if (image_info->page != (char *) NULL)
(void) ParseAbsoluteGeometry(image_info->page,&page);
- (void) FormatLocaleString(density,MaxTextExtent,"%gx%g",
- image->resolution.x,image->resolution.y);
+ density=AcquireString("");
+ options=AcquireString("");
+ (void) FormatLocaleString(density,MaxTextExtent,"%gx%g",image->resolution.x,
+ image->resolution.y);
page.width=(size_t) floor(page.width*image->resolution.x/delta.x+0.5);
- page.height=(size_t) floor(page.height*image->resolution.y/delta.y+
- 0.5);
+ page.height=(size_t) floor(page.height*image->resolution.y/delta.y+0.5);
(void) FormatLocaleString(options,MaxTextExtent,"-g%.20gx%.20g ",(double)
page.width,(double) page.height);
image=DestroyImage(image);
read_info->antialias != MagickFalse ? 4 : 1,
read_info->antialias != MagickFalse ? 4 : 1,density,options,
read_info->filename,input_filename);
+ options=DestroyString(options);
+ density=DestroyString(density);
status=ExternalDelegateCommand(MagickFalse,read_info->verbose,command,
(char *) NULL,exception) != 0 ? MagickTrue : MagickFalse;
image=ReadImage(read_info,exception);
char
command[MaxTextExtent],
- density[MaxTextExtent],
+ *density,
filename[MaxTextExtent],
geometry[MaxTextExtent],
input_filename[MaxTextExtent],
message[MaxTextExtent],
- options[MaxTextExtent],
+ *options,
postscript_filename[MaxTextExtent];
const char
image=DestroyImage(image);
return((Image *) NULL);
}
- *options='\0';
+ density=AcquireString("");
+ options=AcquireString("");
(void) FormatLocaleString(density,MaxTextExtent,"%gx%g",image->resolution.x,
image->resolution.y);
if ((image_info->page != (char *) NULL) || (fitPage != MagickFalse))
read_info->antialias != MagickFalse ? 4 : 1,
read_info->antialias != MagickFalse ? 4 : 1,density,options,filename,
postscript_filename,input_filename);
+ options=DestroyString(options);
+ density=DestroyString(density);
*message='\0';
status=InvokePDFDelegate(read_info->verbose,command,message,exception);
(void) RelinquishUniqueFileResource(postscript_filename);
char
command[MaxTextExtent],
- density[MaxTextExtent],
+ *density,
filename[MaxTextExtent],
geometry[MaxTextExtent],
input_filename[MaxTextExtent],
message[MaxTextExtent],
- options[MaxTextExtent],
+ *options,
postscript_filename[MaxTextExtent];
const char
image=DestroyImageList(image);
return((Image *) NULL);
}
- *options='\0';
+ density=AcquireString("");
+ options=AcquireString("");
(void) FormatLocaleString(density,MaxTextExtent,"%gx%g",resolution.x,
resolution.y);
(void) FormatLocaleString(options,MaxTextExtent,"-g%.20gx%.20g ",(double)
read_info->antialias != MagickFalse ? 4 : 1,
read_info->antialias != MagickFalse ? 4 : 1,density,options,filename,
postscript_filename,input_filename);
+ options=DestroyString(options);
+ density=DestroyString(density);
*message='\0';
status=InvokePostscriptDelegate(read_info->verbose,command,message,exception);
(void) InterpretImageFilename(image_info,image,filename,1,
char
background[MaxTextExtent],
command[MaxTextExtent],
- density[MaxTextExtent],
+ *density,
input_filename[MaxTextExtent],
opacity[MaxTextExtent],
output_filename[MaxTextExtent],
status=AcquireUniqueSymbolicLink(image->filename,input_filename);
(void) AcquireUniqueFilename(output_filename);
(void) AcquireUniqueFilename(unique);
+ density=AcquireString("");
(void) FormatLocaleString(density,MaxTextExtent,"%.20g,%.20g",
image->resolution.x,image->resolution.y);
(void) FormatLocaleString(background,MaxTextExtent,
(void) FormatLocaleString(command,MaxTextExtent,GetDelegateCommands(
delegate_info),input_filename,output_filename,density,background,
opacity,unique);
+ density=DestroyString(density);
status=ExternalDelegateCommand(MagickFalse,image_info->verbose,
command,(char *) NULL,exception);
(void) RelinquishUniqueFileResource(unique);
char
command[MaxTextExtent],
- density[MaxTextExtent],
+ *density,
filename[MaxTextExtent],
geometry[MaxTextExtent],
- options[MaxTextExtent],
+ *options,
input_filename[MaxTextExtent];
const char
if ((flags & SigmaValue) == 0)
image->resolution.y=image->resolution.x;
}
- (void) FormatLocaleString(density,MaxTextExtent,"%gx%g",
- image->resolution.x,image->resolution.y);
/*
Determine page geometry from the XPS media box.
*/
delegate_info=GetDelegateInfo("xps:color",(char *) NULL,exception);
if (delegate_info == (const DelegateInfo *) NULL)
return((Image *) NULL);
- *options='\0';
+ density=AcquireString("");
+ options=AcquireString("");
+ (void) FormatLocaleString(density,MaxTextExtent,"%gx%g",
+ image->resolution.x,image->resolution.y);
if ((page.width == 0) || (page.height == 0))
(void) ParseAbsoluteGeometry(PSPageGeometry,&page);
if (image_info->page != (char *) NULL)
read_info->antialias != MagickFalse ? 4 : 1,
read_info->antialias != MagickFalse ? 4 : 1,density,options,
read_info->filename,input_filename);
+ options=DestroyString(options);
+ density=DestroyString(density);
status=ExternalDelegateCommand(MagickFalse,read_info->verbose,command,
(char *) NULL,exception) != 0 ? MagickTrue : MagickFalse;
image=ReadImage(read_info,exception);