Is there any way that I could get the supported image formats that the ImageIO.write() function can export ?
            Asked
            
        
        
            Active
            
        
            Viewed 555 times
        
    -1
            
            
        - 
                    did you just ask a question and answer it? – ItamarG3 Oct 28 '16 at 15:41
- 
                    Read [the javax.imageio package documentation](http://docs.oracle.com/javase/8/docs/api/javax/imageio/package-summary.html#package.description). – VGR Oct 28 '16 at 19:58
- 
                    1@ItamarGreen it is a good practice to answer your own question and it is encouraged by the stackexchange community. For more information you can check this link [here](https://stackoverflow.blog/2011/07/its-ok-to-ask-and-answer-your-own-questions/). – pgmank Oct 29 '16 at 16:55
- 
                    I still do not understand the negative voting. There are many questions in stackoverflow that have a simple answer, so simple that someone can see it in the documentation. Nevertheless, these questions have positive votes (for example this [one](http://stackoverflow.com/questions/5585779/converting-string-to-int-in-java) has many positive votes). – pgmank Oct 29 '16 at 17:03
1 Answers
2
            
            
        Use the ImageIO.getWriterFormatNames() method.
Description of the method from the official javadocs:
Returns an array of Strings listing all of the informal format names understood by the current set of registered writers.
 
    
    
        pgmank
        
- 5,303
- 5
- 36
- 52