LaunchedEffect runs on the main thread using the UI dispatcher, so you are performing file read and encode operations on the image file in the UI thread.
Sergey Y.
04/23/2023, 2:31 PM
You should avoid doing IO and image encoding in the UI thread. Instead, you should use image loading libraries like Coil 3.x, Camel or similar that support desktop.
j
Jan
04/23/2023, 5:30 PM
yea makes sense, found a good image transformation library