{{newin|[[0.9.0]]|090|type=function}}
Determines whether a file can be loaded as [[CompressedImageData]].
== Function ==
=== Synopsis ===
<source lang="lua">
compressed = love.image.isCompressed( filename )
</source>
=== Arguments ===
{{param|string|filename|The filename of the potentially compressed image file.}}
=== Returns ===
{{param|boolean|compressed|Whether the file can be loaded as [[CompressedImageData]] or not.}}
== Function ==
=== Synopsis ===
<source lang="lua">
compressed = love.image.isCompressed( fileData )
</source>
=== Arguments ===
{{param|FileData|fileData|A FileData potentially containing a compressed image.}}
=== Returns ===
{{param|boolean|compressed|Whether the FileData can be loaded as [[CompressedImageData]] or not.}}
== See Also ==
* [[parent::love.image]]
* [[love.image.newCompressedData]]
[[Category:Functions]]
{{#set:Description=Determines whether a file can be loaded as [[CompressedImageData]].}}
== Other Languages ==
{{i18n|love.image.isCompressed}}