PNG output shows unwanted lines in PDF output (Overleaf)












0















I'm writing a document in Overleaf.



When I save the document to a PDF, images that look like this on my desktop and editor:



enter image description here



come out looking like this:



enter image description here



One solution:



Open each of these corrupted images in adobe illustrator, make any arbitrary change, and save the document. Viola. The lines disappear. But, I have many corrupted images, and this is a time-consuming solution.



I suspect...



that the issue is with overleaf's compilation engine. I've tried changing it between pdfLaTex, LaTeX, XeLaTeX, and LuaLaTeX and it makes no difference.



Any ideas?










share|improve this question




















  • 3





    This looks like an issue of the pdf viewer which has difficulties with the transition between transparent and white backgrounds. Try another pdf viewer.

    – samcarter
    Jan 4 at 0:04






  • 3





    Stupid question: if you have the image in adobe illustrator, this sounds like they would be vector graphics. Why do you save them as png and not as e.g. pdf?

    – samcarter
    Jan 4 at 0:06











  • Is there any way you could help someone here to reproduce the problem?

    – henry
    Jan 4 at 10:04













  • samcarter : excellent point. I tryed another PDF viewer and found the same issue--but it can't be ruled out. And you're spot on that it's a transparent background, white background issue. @henry, here's a link to one of a file with a combo of transparent and white backgrounds (goo.gl/xUtN5d). As samcarter pointed out, you may not be able to reproduce the issue on Overleaf since this may be a PDF viewer problem. I suspect that exporting the image as PDF to begin with, or as PNG with white background instead of transparent might fix the issue. I'll report back for others with this issue.

    – Rich Pauloo
    Jan 4 at 21:12








  • 1





    There is a significant issue in the way colours have been saved that stops me from suggesting a solution based on Irfanview. The best result is to open in MSpaint and resave However paint is not easily scripted. So I suggest image magix using a command such as convert img1.png -background white -flatten img1-white.png (which oddly was the non working command in this question) stackoverflow.com/questions/2322750/… Seems to be the best option for looping through a set of your files

    – KJO
    Jan 5 at 1:33


















0















I'm writing a document in Overleaf.



When I save the document to a PDF, images that look like this on my desktop and editor:



enter image description here



come out looking like this:



enter image description here



One solution:



Open each of these corrupted images in adobe illustrator, make any arbitrary change, and save the document. Viola. The lines disappear. But, I have many corrupted images, and this is a time-consuming solution.



I suspect...



that the issue is with overleaf's compilation engine. I've tried changing it between pdfLaTex, LaTeX, XeLaTeX, and LuaLaTeX and it makes no difference.



Any ideas?










share|improve this question




















  • 3





    This looks like an issue of the pdf viewer which has difficulties with the transition between transparent and white backgrounds. Try another pdf viewer.

    – samcarter
    Jan 4 at 0:04






  • 3





    Stupid question: if you have the image in adobe illustrator, this sounds like they would be vector graphics. Why do you save them as png and not as e.g. pdf?

    – samcarter
    Jan 4 at 0:06











  • Is there any way you could help someone here to reproduce the problem?

    – henry
    Jan 4 at 10:04













  • samcarter : excellent point. I tryed another PDF viewer and found the same issue--but it can't be ruled out. And you're spot on that it's a transparent background, white background issue. @henry, here's a link to one of a file with a combo of transparent and white backgrounds (goo.gl/xUtN5d). As samcarter pointed out, you may not be able to reproduce the issue on Overleaf since this may be a PDF viewer problem. I suspect that exporting the image as PDF to begin with, or as PNG with white background instead of transparent might fix the issue. I'll report back for others with this issue.

    – Rich Pauloo
    Jan 4 at 21:12








  • 1





    There is a significant issue in the way colours have been saved that stops me from suggesting a solution based on Irfanview. The best result is to open in MSpaint and resave However paint is not easily scripted. So I suggest image magix using a command such as convert img1.png -background white -flatten img1-white.png (which oddly was the non working command in this question) stackoverflow.com/questions/2322750/… Seems to be the best option for looping through a set of your files

    – KJO
    Jan 5 at 1:33
















0












0








0








I'm writing a document in Overleaf.



When I save the document to a PDF, images that look like this on my desktop and editor:



enter image description here



come out looking like this:



enter image description here



One solution:



Open each of these corrupted images in adobe illustrator, make any arbitrary change, and save the document. Viola. The lines disappear. But, I have many corrupted images, and this is a time-consuming solution.



I suspect...



that the issue is with overleaf's compilation engine. I've tried changing it between pdfLaTex, LaTeX, XeLaTeX, and LuaLaTeX and it makes no difference.



Any ideas?










share|improve this question
















I'm writing a document in Overleaf.



When I save the document to a PDF, images that look like this on my desktop and editor:



enter image description here



come out looking like this:



enter image description here



One solution:



Open each of these corrupted images in adobe illustrator, make any arbitrary change, and save the document. Viola. The lines disappear. But, I have many corrupted images, and this is a time-consuming solution.



I suspect...



that the issue is with overleaf's compilation engine. I've tried changing it between pdfLaTex, LaTeX, XeLaTeX, and LuaLaTeX and it makes no difference.



Any ideas?







graphics






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 4 at 7:57









Martin Scharrer

199k45633818




199k45633818










asked Jan 3 at 23:41









Rich PaulooRich Pauloo

1012




1012








  • 3





    This looks like an issue of the pdf viewer which has difficulties with the transition between transparent and white backgrounds. Try another pdf viewer.

    – samcarter
    Jan 4 at 0:04






  • 3





    Stupid question: if you have the image in adobe illustrator, this sounds like they would be vector graphics. Why do you save them as png and not as e.g. pdf?

    – samcarter
    Jan 4 at 0:06











  • Is there any way you could help someone here to reproduce the problem?

    – henry
    Jan 4 at 10:04













  • samcarter : excellent point. I tryed another PDF viewer and found the same issue--but it can't be ruled out. And you're spot on that it's a transparent background, white background issue. @henry, here's a link to one of a file with a combo of transparent and white backgrounds (goo.gl/xUtN5d). As samcarter pointed out, you may not be able to reproduce the issue on Overleaf since this may be a PDF viewer problem. I suspect that exporting the image as PDF to begin with, or as PNG with white background instead of transparent might fix the issue. I'll report back for others with this issue.

    – Rich Pauloo
    Jan 4 at 21:12








  • 1





    There is a significant issue in the way colours have been saved that stops me from suggesting a solution based on Irfanview. The best result is to open in MSpaint and resave However paint is not easily scripted. So I suggest image magix using a command such as convert img1.png -background white -flatten img1-white.png (which oddly was the non working command in this question) stackoverflow.com/questions/2322750/… Seems to be the best option for looping through a set of your files

    – KJO
    Jan 5 at 1:33
















  • 3





    This looks like an issue of the pdf viewer which has difficulties with the transition between transparent and white backgrounds. Try another pdf viewer.

    – samcarter
    Jan 4 at 0:04






  • 3





    Stupid question: if you have the image in adobe illustrator, this sounds like they would be vector graphics. Why do you save them as png and not as e.g. pdf?

    – samcarter
    Jan 4 at 0:06











  • Is there any way you could help someone here to reproduce the problem?

    – henry
    Jan 4 at 10:04













  • samcarter : excellent point. I tryed another PDF viewer and found the same issue--but it can't be ruled out. And you're spot on that it's a transparent background, white background issue. @henry, here's a link to one of a file with a combo of transparent and white backgrounds (goo.gl/xUtN5d). As samcarter pointed out, you may not be able to reproduce the issue on Overleaf since this may be a PDF viewer problem. I suspect that exporting the image as PDF to begin with, or as PNG with white background instead of transparent might fix the issue. I'll report back for others with this issue.

    – Rich Pauloo
    Jan 4 at 21:12








  • 1





    There is a significant issue in the way colours have been saved that stops me from suggesting a solution based on Irfanview. The best result is to open in MSpaint and resave However paint is not easily scripted. So I suggest image magix using a command such as convert img1.png -background white -flatten img1-white.png (which oddly was the non working command in this question) stackoverflow.com/questions/2322750/… Seems to be the best option for looping through a set of your files

    – KJO
    Jan 5 at 1:33










3




3





This looks like an issue of the pdf viewer which has difficulties with the transition between transparent and white backgrounds. Try another pdf viewer.

– samcarter
Jan 4 at 0:04





This looks like an issue of the pdf viewer which has difficulties with the transition between transparent and white backgrounds. Try another pdf viewer.

– samcarter
Jan 4 at 0:04




3




3





Stupid question: if you have the image in adobe illustrator, this sounds like they would be vector graphics. Why do you save them as png and not as e.g. pdf?

– samcarter
Jan 4 at 0:06





Stupid question: if you have the image in adobe illustrator, this sounds like they would be vector graphics. Why do you save them as png and not as e.g. pdf?

– samcarter
Jan 4 at 0:06













Is there any way you could help someone here to reproduce the problem?

– henry
Jan 4 at 10:04







Is there any way you could help someone here to reproduce the problem?

– henry
Jan 4 at 10:04















samcarter : excellent point. I tryed another PDF viewer and found the same issue--but it can't be ruled out. And you're spot on that it's a transparent background, white background issue. @henry, here's a link to one of a file with a combo of transparent and white backgrounds (goo.gl/xUtN5d). As samcarter pointed out, you may not be able to reproduce the issue on Overleaf since this may be a PDF viewer problem. I suspect that exporting the image as PDF to begin with, or as PNG with white background instead of transparent might fix the issue. I'll report back for others with this issue.

– Rich Pauloo
Jan 4 at 21:12







samcarter : excellent point. I tryed another PDF viewer and found the same issue--but it can't be ruled out. And you're spot on that it's a transparent background, white background issue. @henry, here's a link to one of a file with a combo of transparent and white backgrounds (goo.gl/xUtN5d). As samcarter pointed out, you may not be able to reproduce the issue on Overleaf since this may be a PDF viewer problem. I suspect that exporting the image as PDF to begin with, or as PNG with white background instead of transparent might fix the issue. I'll report back for others with this issue.

– Rich Pauloo
Jan 4 at 21:12






1




1





There is a significant issue in the way colours have been saved that stops me from suggesting a solution based on Irfanview. The best result is to open in MSpaint and resave However paint is not easily scripted. So I suggest image magix using a command such as convert img1.png -background white -flatten img1-white.png (which oddly was the non working command in this question) stackoverflow.com/questions/2322750/… Seems to be the best option for looping through a set of your files

– KJO
Jan 5 at 1:33







There is a significant issue in the way colours have been saved that stops me from suggesting a solution based on Irfanview. The best result is to open in MSpaint and resave However paint is not easily scripted. So I suggest image magix using a command such as convert img1.png -background white -flatten img1-white.png (which oddly was the non working command in this question) stackoverflow.com/questions/2322750/… Seems to be the best option for looping through a set of your files

– KJO
Jan 5 at 1:33












0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f468479%2fpng-output-shows-unwanted-lines-in-pdf-output-overleaf%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f468479%2fpng-output-shows-unwanted-lines-in-pdf-output-overleaf%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Can I use Tabulator js library in my java Spring + Thymeleaf project?