{{newin|[[0.9.0]]|090|type=function}}
Create a new [[CompressedImageData]] object from a compressed image file. LÖVE supports several compressed texture formats, enumerated in the [[CompressedImageFormat]] page.
{{newobjectnotice}}
== Function ==
=== Synopsis ===
<source lang="lua">
compressedImageData = love.image.newCompressedData( filename )
</source>
=== Arguments ===
{{param|string|filename|The filename of the compressed image file.}}
=== Returns ===
{{param|CompressedImageData|compressedImageData|The new CompressedImageData object.}}
== Function ==
=== Synopsis ===
<source lang="lua">
compressedImageData = love.image.newCompressedData( fileData )
</source>
=== Arguments ===
{{param|FileData|fileData|A FileData containing a compressed image.}}
=== Returns ===
{{param|CompressedImageData|compressedImageData|The new CompressedImageData object.}}
== See Also ==
* [[parent::love.image]]
* [[love.image.isCompressed]]
* [[love.graphics.newImage]]
* [[Constructs::CompressedImageData]]
[[Category:Functions]]
{{#set:Description=Create a new [[CompressedImageData]] object from a compressed image file.}}
== Other Languages ==
{{i18n|love.image.newCompressedData}}