# Why don't have a ImageFileFormatManager?

**URL:** <https://forum.juce.com/t/why-dont-have-a-imagefileformatmanager/7619>\
**Category:** General JUCE discussion\
**Created:** [October 26, 2011, 8:10pm UTC](https://forum.juce.com/t/why-dont-have-a-imagefileformatmanager/7619 "2011-10-26T20:10:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![menzi1](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/menzi1/32/170_2.png) [@menzi1](https://forum.juce.com/u/menzi1)\
**Post date:** [October 26, 2011, 8:10pm UTC](https://forum.juce.com/t/why-dont-have-a-imagefileformatmanager/7619/1 "2011-10-26T20:10:56Z")

</div>

just like AudioFormatManager ?  
Because the juce is not complete yet , or I missed something?  
Thanks…

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [October 27, 2011, 8:54am UTC](https://forum.juce.com/t/why-dont-have-a-imagefileformatmanager/7619/2 "2011-10-27T08:54:36Z")

</div>

No particular reason. It’d mean creating a base class for image formats, etc, so would make things a bit more bloaty, and it’s not something I ever got around to. Are you trying to add your own image format?

---

<div class="post-metadata">

**Author:** ![menzi1](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/menzi1/32/170_2.png) [@menzi1](https://forum.juce.com/u/menzi1)\
**Post date:** [October 27, 2011, 3:08pm UTC](https://forum.juce.com/t/why-dont-have-a-imagefileformatmanager/7619/3 "2011-10-27T15:08:29Z")

</div>

> [@jules](#):
>
> No particular reason. It’d mean creating a base class for image formats, etc, so would make things a bit more bloaty, and it’s not something I ever got around to. Are you trying to add your own image format?

eh…not realy,Just curious.  
And …So How to add my own image format?  
THX

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [October 27, 2011, 6:33pm UTC](https://forum.juce.com/t/why-dont-have-a-imagefileformatmanager/7619/4 "2011-10-27T18:33:58Z")

</div>

Actually, here’s a slightly better answer than my first one:

With audio files, you need to provide the client with an AudioFormatReader object that it can keep hold of, which dynamically interacts with your audio file. With images, there’s no need for a client to even get anything like that, because it just says “load” and gets an image back. So I didn’t bother creating a set of virtual classes to handle each image format, as they don’t really need to ever be exposed to the client code.

This doesn’t allow adding your own format though, but since it’s probably your own code that does the loading anyway, just write your own image load function that can handle your special format.
