# Export JPEG and get file size in UXP

**URL:** <https://forums.creativeclouddeveloper.com/t/export-jpeg-and-get-file-size-in-uxp/2992>\
**Category:** UXP Plugin API\
**Created:** [May 26, 2021, 4:10am UTC](https://forums.creativeclouddeveloper.com/t/export-jpeg-and-get-file-size-in-uxp/2992 "2021-05-26T04:10:08Z")\
**Posts on this page:** 1\
**Showing post:** 23

<div class="post-metadata">

**Author:** ![sttk3](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sttk3](https://forums.creativeclouddeveloper.com/u/sttk3)\
**Post date:** [February 4, 2023, 5:19am UTC](https://forums.creativeclouddeveloper.com/t/export-jpeg-and-get-file-size-in-uxp/2992/23 "2023-02-04T05:19:50Z")

</div>

Can the “export” you are talking about be substituted with “saveAs”?

Here’s an example

- [UXP: document saveAs method is not saving the document as a jpeg/png](http://forums.creativeclouddeveloper.com/t/uxp-document-saveas-method-is-not-saving-the-document-as-a-jpeg-png/5471)

### Document about saveAs

- [https://developer.adobe.com/photoshop/uxp/2022/ps\_reference/classes/document/#saveas](https://developer.adobe.com/photoshop/uxp/2022/ps_reference/classes/document/#saveas)

### Document about save options

- [BMP Save Options](https://developer.adobe.com/photoshop/uxp/2022/ps_reference/objects/saveoptions/bmpsaveoptions/)
- [GIF Save Options](https://developer.adobe.com/photoshop/uxp/2022/ps_reference/objects/saveoptions/gifsaveoptions/)
- [JPEG Save Options](https://developer.adobe.com/photoshop/uxp/2022/ps_reference/objects/saveoptions/jpegsaveoptions/)
- [PNG Save Options](https://developer.adobe.com/photoshop/uxp/2022/ps_reference/objects/saveoptions/pngsaveoptions/)
- [Photoshop Save Options](https://developer.adobe.com/photoshop/uxp/2022/ps_reference/objects/saveoptions/photoshopsaveoptions/)

---

_[View the full topic](https://forums.creativeclouddeveloper.com/t/export-jpeg-and-get-file-size-in-uxp/2992)._
