# Imaging API getPixels, alpha data with grayscale images?

**URL:** <https://forums.creativeclouddeveloper.com/t/imaging-api-getpixels-alpha-data-with-grayscale-images/11525>\
**Category:** Photoshop\
**Tags:** uxp, javascript\
**Created:** [November 6, 2025, 5:36pm UTC](https://forums.creativeclouddeveloper.com/t/imaging-api-getpixels-alpha-data-with-grayscale-images/11525 "2025-11-06T17:36:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kayrock](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/kayrock/32/4748_2.png) [@Kayrock](https://forums.creativeclouddeveloper.com/u/Kayrock)\
**Post date:** [November 6, 2025, 5:36pm UTC](https://forums.creativeclouddeveloper.com/t/imaging-api-getpixels-alpha-data-with-grayscale-images/11525/1 "2025-11-06T17:36:13Z")

</div>

Has anybody been able to get alpha data for a grayscale image? hasAlpha is always false and there is only one component. With RGB, if there is alpha I get 4 components and hasAlpha is true. PhotoshopImageData says it supports “GrayscaleAlpha” but maybe it is just not implemented?

---

<div class="post-metadata">

**Author:** ![Jarda](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/jarda/32/1909_2.png) [@Jarda](https://forums.creativeclouddeveloper.com/u/Jarda)\
**Post date:** [November 8, 2025, 9:01am UTC](https://forums.creativeclouddeveloper.com/t/imaging-api-getpixels-alpha-data-with-grayscale-images/11525/2 "2025-11-08T09:01:34Z")

</div>

Maybe @jsbache could know if/how grayscale with alpha is supported?

---

<div class="post-metadata">

**Author:** ![HeyEvgenii](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/heyevgenii/32/4856_2.png) [@HeyEvgenii](https://forums.creativeclouddeveloper.com/u/HeyEvgenii)\
**Post date:** [June 13, 2026, 10:50am UTC](https://forums.creativeclouddeveloper.com/t/imaging-api-getpixels-alpha-data-with-grayscale-images/11525/3 "2026-06-13T10:50:08Z")

</div>

Same issue here, was anyone able to figure it out?
