Re: [GM-tools] Suppress warning messages
Swiss army knife of image processing
                
                Brought to you by:
                
                    bfriesen
                    
                
            
            
        
        
        
    | 
     
      
      
      From: Frans C. <coe...@gm...> - 2010-11-23 16:37:08
      
     
   | 
Hi Bob, Thanks for your prompt reply. I'm using GM to convert pdf to tif, so in this case I'm assuming Ghostscript is used as the subordinate and is producing the warning messages. I like your suggestion about modifying the source to customize the output. This might be my solution. Many thanks, Frans On 23/11/2010 11:21 AM, Bob Friesenhahn wrote: > On Tue, 23 Nov 2010, Frans Coetzee wrote: >> I was wondering if there is a command line option to suppress warning >> messages or what would be the best way to handle warning messages >> programmatically? Is there always a common identifier in a warning >> message? > > Do you mean warnings from GraphicsMagick itself, or from subordinate > programs like Ghostscript? GraphicsMagick does not produce many > warnings since usually things work or they don't. Ghostscript and > other subordinate programs are likely to produce warning and error > messages. > > I am not aware of any effort to produce a common identifier in warning > messages but GraphicsMagick error messages and warning messages > originate from the same point so if you are willing to build from > source, you can customize the output for your requirements. > > Bob  |