multiplatform-markdown-renderer icon indicating copy to clipboard operation
multiplatform-markdown-renderer copied to clipboard

Markdown Images Cut on Android

Open StarMobileDev opened this issue 1 year ago • 2 comments

About this issue

We are experiencing an issue with the library on Android, where it is cutting off the top of images that it is supposed to render. Despite our extensive efforts to troubleshoot and resolve the problem, we have not been successful. We have ensured that our use of the library aligns with the guidance provided in the Usage section of the README.md.

Steps to Reproduce

  1. Integrate the library into an Android project as per the instructions in the README.md.
  2. Attempt to render images using a Coil3 ImageTransformer, which is passed to the imageTransformer parameter. The ImageTransformer object utilizes coil3.compose.rememberAsyncImagePainter, and the painter is applied to the ImageData returned by the ImageTransformer.
  3. Observe that the top of the images is consistently cut off.

Expected Behavior

The images should be rendered in full without any cropping or cutoff at the top.

Versions

We are currently using Coil3 version 3.0.0-alpha06

Below is an example of images being cut by the library.

Screenshot 2024-08-30 at 10 37 13 AM

Any help would be greatly appreciated.

Details

  • [x] Used library version
  • [x] Used platform

Checklist

StarMobileDev avatar Aug 30 '24 17:08 StarMobileDev

Can you please provide a code example to reproduce this issue?

mikepenz avatar Aug 30 '24 19:08 mikepenz

Alternative please also compare with v0.26.0 or v0.27.0-b01

mikepenz avatar Sep 13 '24 16:09 mikepenz

Closing due to inactivity. please re-open if still relevant

mikepenz avatar Nov 01 '24 09:11 mikepenz