Skip to content

Use UIGraphicsImageRenderer in GTMUIImage+Resize. (#541)#572

Merged
thomasvl merged 1 commit intogoogle:mainfrom
kiyun-g:main
Nov 6, 2025
Merged

Use UIGraphicsImageRenderer in GTMUIImage+Resize. (#541)#572
thomasvl merged 1 commit intogoogle:mainfrom
kiyun-g:main

Conversation

@kiyun-g
Copy link
Copy Markdown
Contributor

@kiyun-g kiyun-g commented Nov 6, 2025

This reverts commit d368b17, which was for "Revert the changes to iPhone/GTMUIImage+Resize.m (#552)", but also includes the following additional changes to fix the reason for #552.

Use source image scale in gtm_imageByResizingToSize. This matches the way scale is set in gtm_imageByRotating.

Add tests to verify that image scale is preserved.

This reverts commit d368b17, which was
for "Revert the changes to iPhone/GTMUIImage+Resize.m (google#552)", but also
includes the following additional changes to fix the reason for google#552.

Use source image scale in gtm_imageByResizingToSize. This matches the
way scale is set in gtm_imageByRotating.

Add tests to verify that image scale is preserved.
@kiyun-g
Copy link
Copy Markdown
Contributor Author

kiyun-g commented Nov 6, 2025

PTAL @thomasvl

@thomasvl thomasvl self-requested a review November 6, 2025 02:32
@thomasvl thomasvl merged commit 1ed10f2 into google:main Nov 6, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants