Exported PDF randomly skips inline images

bug

(Ashish Anand) #1


Bug report

During export as PDF, sometimes both the images are exported properly, sometimes the darker image is partially rendered.

Info

  • Platform: macOS Mojave
  • Platform version: 10.14.3
  • App Version: (3.22.4)

Reproduce

Paste the below markdown as a note and try to save as PDF. If you try to export as PDF three times, in one of the saves the second image is not exported properly.

# Sometimes both the images are exported sometimes the darker image is partially rendered

Next are two images. You should open each one in your browser, copy them and paste through clipboard.

the image doesn't appear properly.

https://www.wired.com/images_blogs/wiredscience/2009/11/seti_code.jpg

![clipboard.png](inkdrop://file:px4deDzxx)

https://www.google.com/search?q=code+image&rlz=1C5CHFA_enIN795IN796&tbm=isch&source=iu&ictx=1&fir=OB13vciDQObGxM%253A%252CAerQudgyuD2wXM%252C_&vet=1&usg=AI4_-kStxMnbsM0V7F_WXMX3SRFT55aJuw&sa=X&ved=2ahUKEwjfyuaekpLhAhXTEHIKHT4aDeMQ9QEwAHoECAcQBA#imgrc=gEP6nTODYBsoRM:&vet=1
![clipboard.png](inkdrop://file:TRap1Ed4t)





## When I export this note as a PDF, first image appears properly, but the second darker image is not rendered properly

(Takuya Matsuyama) #2

Hi Ashish,

Thank you for reporting.
It seems that the app tries to convert html into pdf before finishing loading images in the internal webview.
It will be solved as I’ve fixed it in the new version of the desktop app.
For now, please export the note as html.
Thanks again!

Commit log:


(Kazutaka Watari) #3

Hi Takuya,

I see a similar issue. Markdown preview shows pictures correctly but if I export documents to PDF then I see only upper half of pictures. Any idea to fix it? Thank you.
Kazutaka

Preview:


Exported to PDF:


(Takuya Matsuyama) #4

Hi Kazutaka,

Could you read my previous reply?

Thanks for the report.


(Kazutaka Watari) #5

Ok, thank you. Looking forwards to the new release. (Schedule already fixed?)


(Takuya Matsuyama) #6

I can’t promise when it will be out at the moment but i’m working hard on it right now.
You can check my twitter account to see the development progress here.