# Batch Export selected Texture2Ds using export\_to\_disk doesn't work as expected

**URL:** <https://forums.unrealengine.com/t/batch-export-selected-texture2ds-using-export-to-disk-doesnt-work-as-expected/1212552>\
**Category:** Editor Scripting\
**Tags:** unreal-engine, question\
**Created:** [June 27, 2023, 4:55pm UTC](https://forums.unrealengine.com/t/batch-export-selected-texture2ds-using-export-to-disk-doesnt-work-as-expected/1212552 "2023-06-27T16:55:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![defaux](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@defaux](https://forums.unrealengine.com/u/defaux)\
**Post date:** [June 27, 2023, 4:55pm UTC](https://forums.unrealengine.com/t/batch-export-selected-texture2ds-using-export-to-disk-doesnt-work-as-expected/1212552/1 "2023-06-27T16:55:17Z")

</div>

Hello there! I’m currently attempting to utilize the `.export_to_disk` function of a Python object in order to export specific textures. However, in order to utilize this feature, I must modify the compression type of the texture. To avoid altering the original texture, I have scripted the duplication of all selected textures to a temporary folder and changed their compression type to UserInterface2D (RGBA). So far, everything has been going smoothly. However, when I attempt to list all the texture objects in this temporary folder and export them using `export_to_disk` , it doesn’t behave as I anticipated. Instead, it exports a significantly smaller-sized texture to the file. From my understanding, I might need to load the textures into memory or perform a similar action. Does anyone know how to make it work? Thanks
