Show
Ignore:
Timestamp:
09/24/09 20:18:25 (6 months ago)
Author:
cristy
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ImageMagick/trunk/coders/ept.c

    r1 r199  
    352352static MagickBooleanType WriteEPTImage(const ImageInfo *image_info,Image *image) 
    353353{ 
     354  char 
     355     filename[MaxTextExtent]; 
     356 
    354357  EPTInfo 
    355358    ept_info; 
     
    398401  write_info=CloneImageInfo(image_info); 
    399402  (void) CopyMagickString(write_info->magick,"TIFF",MaxTextExtent); 
    400   (void) FormatMagickString(write_info->filename,MaxTextExtent,"tiff:%.1024s", 
     403  (void) FormatMagickString(filename,MaxTextExtent,"tiff:%.1024s", 
    401404    write_info->filename);  
     405  (void) CopyMagickString(write_info->filename,filename,MaxTextExtent); 
    402406  (void) TransformImage(&write_image,(char *) NULL,"512x512>"); 
    403407  if ((write_image->storage_class == DirectClass) || 
     
    429433    Write EPT image. 
    430434  */ 
    431   (void) WriteBlobLSBLong(image,ept_info.magick); 
     435  (void) WriteBlobLSBLong(image,(unsigned int) ept_info.magick); 
    432436  (void) WriteBlobLSBLong(image,30); 
    433   (void) WriteBlobLSBLong(image,(unsigned long) ept_info.postscript_length); 
     437  (void) WriteBlobLSBLong(image,(unsigned int) ept_info.postscript_length); 
    434438  (void) WriteBlobLSBLong(image,0); 
    435439  (void) WriteBlobLSBLong(image,0); 
    436   (void) WriteBlobLSBLong(image,(unsigned long) ept_info.postscript_length+30); 
    437   (void) WriteBlobLSBLong(image,(unsigned long) ept_info.tiff_length); 
     440  (void) WriteBlobLSBLong(image,(unsigned int) ept_info.postscript_length+30); 
     441  (void) WriteBlobLSBLong(image,(unsigned int) ept_info.tiff_length); 
    438442  (void) WriteBlobLSBShort(image,0xffff); 
    439443  (void) WriteBlob(image,ept_info.postscript_length,ept_info.postscript);