# Plugin for loading tileset

**URL:** <https://discourse.mapeditor.org/t/plugin-for-loading-tileset/2301>\
**Category:** Questions\
**Created:** [April 19, 2017, 8:30am UTC](https://discourse.mapeditor.org/t/plugin-for-loading-tileset/2301 "2017-04-19T08:30:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreas-jonsson](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/andreas-jonsson/32/1170_2.png) [@andreas-jonsson](https://discourse.mapeditor.org/u/andreas-jonsson)\
**Post date:** [April 19, 2017, 8:30am UTC](https://discourse.mapeditor.org/t/plugin-for-loading-tileset/2301/1 "2017-04-19T08:30:05Z")

</div>

Hi!

Is it possible to build a plugin for loading image data (for the tileset) from a non-standard compressed format?

If so, is there any documentation for doing this? Or perhaps some code floating around that does something along this line?

Cheers  
/aj

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [April 19, 2017, 9:18am UTC](https://discourse.mapeditor.org/t/plugin-for-loading-tileset/2301/2 "2017-04-19T09:18:08Z")

</div>

Image format plugins are outside the realm of Tiled, but it is possible to add a Qt plugin that will allow Tiled to read your images. For this you need to implement [QImageIOPlugin](http://doc.qt.io/qt-5/qimageioplugin.html). Maybe [this Qt Quarterly document](https://doc.qt.io/archives/qq/qq17-imageio.html) could also help, but be warned that it will be out of date in some areas since it was written for Qt 4. See the [plugins howto](http://doc.qt.io/qt-5/plugins-howto.html) for more up-to-date information about writing Qt plugins.

---

<div class="post-metadata">

**Author:** ![andreas-jonsson](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/andreas-jonsson/32/1170_2.png) [@andreas-jonsson](https://discourse.mapeditor.org/u/andreas-jonsson)\
**Post date:** [April 19, 2017, 9:33am UTC](https://discourse.mapeditor.org/t/plugin-for-loading-tileset/2301/3 "2017-04-19T09:33:41Z")

</div>

I think that could work.

Thanks!
