On Thu, 19 Nov 2026 10:41:21 GMT, Nikita Tsarev <[email protected]> wrote:
> `CImage.Creator.getPlatformImageBytes` always returns TIFF. This patch reuses > `DataTransferer.imageToStandardBytes` for `CF_PNG` and `CF_JPEG` instead of > calling into `getPlatformImageBytes`. JPEG doesn't support transparency, so > images with alpha are blitted onto a white background before conversion. > > > > > --------- > - [X] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). This pull request has now been integrated. Changeset: 7ea63c74 Author: Nikita Tsarev <[email protected]> Committer: Alexey Ushakov <[email protected]> URL: https://git.openjdk.org/jdk/commit/7ea63c74b735111e9db31b43e51dffbb38780bf8 Stats: 318 lines in 3 files changed: 303 ins; 1 del; 14 mod 8313706: [macos] Clipboard#setContents uses TIFF image data for all image content types Reviewed-by: avu, prr ------------- PR: https://git.openjdk.org/jdk/pull/33969
