Skip to content

pdf generation fails after a 'libpng error: Not a PNG file' #6770

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Abdelkrim opened this issue Mar 11, 2020 · 5 comments
Closed

pdf generation fails after a 'libpng error: Not a PNG file' #6770

Abdelkrim opened this issue Mar 11, 2020 · 5 comments
Labels
Support Support question

Comments

@Abdelkrim
Copy link

Details

Building the documentation on my local machine works.

The document contains images such as this one:

Value-Chain-1198x619

Deploying the project documentation on rtfd fails due to a 'libpng error: Not a PNG file' due to the above mentioned image

Expected Result

the build succeeds

Actual Result

an error appears during the build :

/usr/share/texlive/texmf-dist/tex/latex/psnfss/t1pcr.fd)libpng error: Not a PNG file

!pdfTeX error: pdflatex (file ./Value-Chain-1198x619.png): libpng: internal err
or
==> Fatal error occurred, no output PDF file produced!
Latexmk: Index file 'alt-f1-software-architecture.idx' was written
Failure to make 'alt-f1-software-architecture.pdf'
Collected error summary (may duplicate other messages):
pdflatex: Command for 'pdflatex' gave return code 256
Latexmk: Errors, in force_mode: so I tried finishing targets

Thank you in advance for the time you will invest on my issue

@stsewd stsewd added the Support Support question label Mar 11, 2020
@stsewd
Copy link
Member

stsewd commented Mar 12, 2020

@Abdelkrim do you see the same problem when you build your docs locally in a clean environment? If so, this isn't a read the docs problem.

@stsewd stsewd added the Needed: more information A reply from issue author is required label Mar 12, 2020
@Abdelkrim
Copy link
Author

Abdelkrim commented Mar 14, 2020

@stsewd the pdf is generated by sphinx.

  • I have executed the same command line as RTFD on my machine and the PDF was correctly generated

    • latexmk -r latexmkrc -pdf -f -dvi- -ps- -jobname=alt-f1-software-architecture -interaction=nonstopmode
  • the pdf : SoftwareEngineeringByALT-F1.pdf

  • the image generating the error : Michael_Porters_Value_Chain-634x311

  • the logs from sphinx while generating the pdf : generate_pdf.txt

thank you for you support

@no-response no-response bot removed the Needed: more information A reply from issue author is required label Mar 14, 2020
@humitos
Copy link
Member

humitos commented Mar 16, 2020

@Abdelkrim you are using Git LFS in that file (https://bitbucket.org/altf1be/software-architecture/src/master/source/_static/img/business-to-you.com/Value-Chain-1198x619.png) which is not supported for now. See #1846 for more information.

I'm closing this one, but feel free to re-open if you consider.

Thanks!

@humitos humitos closed this as completed Mar 16, 2020
@Abdelkrim
Copy link
Author

@humitos thank you for the support. I didn't think about Git LFS!

@Abdelkrim
Copy link
Author

For those who got the issue, here is THE solution : #1846 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Support Support question
Projects
None yet
Development

No branches or pull requests

3 participants