FR: Support more image formats

This would greatly help with moving forward on supporting standard web and game image formats. As of this post, PNG, JPEG, and (sort of) GIF are supported by JUCE.

The following formats would be desirable:

Also, could you expose the DefaultImageFormats so users can add their own formats. Then ImageFileFormat::loadFrom will be able to use custom formats.

2 Likes

That’s one of the reasons I have my own ImageFormatManager. Not an ideal situation, for sure.

Can I extend this FR for tiff and 16 bit per colour image format?

In the project of my client, all is done on a bespoke image class, just because no 16-bit image exists. This would require a PixelARGB64 alongside PixelARGB (and unfortunately a Colour64 as well? IDK)

1 Like

I’ve done a BMPImageFormat if you need it. https://github.com/FigBug/Gin/blob/master/modules/gin/images/bmpimageformat.h

I’m pretty sure I have TGA and TIFF code lying around. TGA I recall is pretty simple, but TIFF is giant & complicated.

1 Like

Oh sweet! Just finished looking at the code - nice job!

I have TGA code lying around, too. That is relatively straightforward, similarly to BMP. TIFF is definitely huge…