cropToAspect

actual suspend fun cropToAspect(image: PickedImage, targetAspect: Float): PickedImage

Center-crops image to targetAspect (width / height) on-device and returns the cropped bytes. Real on Android and JVM; a no-op passthrough on iOS/JS/Wasm until a platform image codec is wired there. Returns the original image unchanged if it can't be decoded.

expect suspend fun cropToAspect(image: PickedImage, targetAspect: Float): PickedImage

Center-crops image to targetAspect (width / height) on-device and returns the cropped bytes. Real on Android and JVM; a no-op passthrough on iOS/JS/Wasm until a platform image codec is wired there. Returns the original image unchanged if it can't be decoded.

actual suspend fun cropToAspect(image: PickedImage, targetAspect: Float): PickedImage

Center-crops image to targetAspect (width / height) on-device and returns the cropped bytes. Real on Android and JVM; a no-op passthrough on iOS/JS/Wasm until a platform image codec is wired there. Returns the original image unchanged if it can't be decoded.

actual suspend fun cropToAspect(image: PickedImage, targetAspect: Float): PickedImage

Center-crops image to targetAspect (width / height) on-device and returns the cropped bytes. Real on Android and JVM; a no-op passthrough on iOS/JS/Wasm until a platform image codec is wired there. Returns the original image unchanged if it can't be decoded.

actual suspend fun cropToAspect(image: PickedImage, targetAspect: Float): PickedImage

Center-crops image to targetAspect (width / height) on-device and returns the cropped bytes. Real on Android and JVM; a no-op passthrough on iOS/JS/Wasm until a platform image codec is wired there. Returns the original image unchanged if it can't be decoded.

actual suspend fun cropToAspect(image: PickedImage, targetAspect: Float): PickedImage

Center-crops image to targetAspect (width / height) on-device and returns the cropped bytes. Real on Android and JVM; a no-op passthrough on iOS/JS/Wasm until a platform image codec is wired there. Returns the original image unchanged if it can't be decoded.