I'm using latex for years, never seen something like this. The png appears like cut, don't even know how to explain.

This is the original image, I mean how it looks when opened by other app (like preview in macos):

enter image description here

And this is what I'm getting on the pdf (when openned by preview or skim):

enter image description here

Interestingly, when I open it in google chrome (also in opera and acrobat reader pro) it looks good.

Not sure if it helps but that image results from a conversion from an hdr image using gdal translate.

Here the code to include the image:


Any insights on how to proceed?

I guess issue might be related to OS-dependent, bad rendering when embedding transparent images, because I have different behavior depending on viewer. It might be related to PDFKit?

Related issued being discussed at https://gis.stackexchange.com/questions/283963/gdal-translate-to-png-looking-bad-when-included-in-latex-document.

  • Welcome to TeX.SX! I can't reproduce your error. Please add a minimal working example (MWE), that illustrates your problem. – Bobyandbob May 23 '18 at 15:47
  • Your document looks just like the image on my installation, opening the pdf with okular or firefox… Oh, and you shared the imageby embedding it in your post: it is the one at i.stack.imgur.com/Bk3ei.png , right? – Clément May 24 '18 at 3:39
  • I'm starting to fill its a macOS PDFKit issue only. So u have access to the original image, MD5 (image.png) = b7c6f5dedab89991833f8f5d1a14ada0? (Sorry for the side question) – KcFnMi May 24 '18 at 3:48
  • I can't reprocue the error with the preview of texmaker, Adobe Reader, Firefox 60 or on other browser. - What happens if you zoom in and out? – Bobyandbob May 24 '18 at 4:43
  • Zoom in/out works normally. Please try with Skim (skim-app.sourceforge.io) or TeXShop. – KcFnMi May 24 '18 at 5:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.