# Plugin to get this output when exporting?

**URL:** <https://community.aseprite.org/t/plugin-to-get-this-output-when-exporting/14625>\
**Category:** Help\
**Created:** [June 12, 2022, 5:18pm UTC](https://community.aseprite.org/t/plugin-to-get-this-output-when-exporting/14625 "2022-06-12T17:18:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SynthED](https://community.aseprite.org/user_avatar/community.aseprite.org/synthed/32/45_2.png) [@SynthED](https://community.aseprite.org/u/SynthED)\
**Post date:** [June 12, 2022, 5:18pm UTC](https://community.aseprite.org/t/plugin-to-get-this-output-when-exporting/14625/1 "2022-06-12T17:18:29Z")

</div>

Hello, can a plugin be programmed to achieve this type of export?, graphics for amstrad cpc.

That is, I don’t need to export the image itself in png, I need a text file with the color values of the pixels for assembler and the height and width data.

* * *

Hola, ¿se puede programar un plugin que al pulsar en exportar te genere un archivo con los valores de color de los pixeles, el ancho y el alto de la imagen?.  
Tal y como se puede ver aquí:

![Captura](https://community.aseprite.org/uploads/default/original/2X/c/ca049fa65e0908cd90b33fb484d3dd8d6efd4953.png)

Esto son datos para ensamblador para amstrad cpc, cada valor representa dos pixeles a lo ancho, el mode 1 en amstrad.

---

<div class="post-metadata">

**Author:** ![Olga\_Galvanova](https://community.aseprite.org/user_avatar/community.aseprite.org/olga_galvanova/32/3294_2.png) [@Olga\_Galvanova](https://community.aseprite.org/u/Olga_Galvanova)\
**Post date:** [June 12, 2022, 5:27pm UTC](https://community.aseprite.org/t/plugin-to-get-this-output-when-exporting/14625/2 "2022-06-12T17:27:31Z")

</div>

sure! some time ago someone needed something similar - they posted an extension, so maybe that will help: [Exporting indices - #8 by Strupf](https://community.aseprite.org/t/exporting-indices/5295/8)  
in general, you can use lua’s i/o library (file open, read, write, etc.): [Programming in Lua (first edition)](https://www.lua.org/pil/contents.html#21) so it’s just a matter of getting the colour values, storing them in table and then writing content of that table to file.

---

<div class="post-metadata">

**Author:** ![SynthED](https://community.aseprite.org/user_avatar/community.aseprite.org/synthed/32/45_2.png) [@SynthED](https://community.aseprite.org/u/SynthED)\
**Post date:** [June 12, 2022, 5:51pm UTC](https://community.aseprite.org/t/plugin-to-get-this-output-when-exporting/14625/3 "2022-06-12T17:51:27Z")

</div>

Thanks, I’ll check that code as soon as I can.
