bugtex4ht - Bugs: bug #329, Package graphics Error: Division...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #329: Package graphics Error: Division by 0. with tex4ht when using [dvipdfmx]{graphicx}

Submitted by:  Nasser M. Abbasi <nma123>
Submitted on:  Mon Jul 11 13:55:03 2016  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Wed Jul 1 07:43:44 2020, comment #1:

I cannot access the original image that caused this issue, but we fixed some stuff relating image dimensions in the not so distant past, so it is most likely resolved.

Michal Hoftich <michal_h21>
Project Member
Mon Jul 11 13:55:03 2016, original submission:

Copy of this question posted here

http://tex.stackexchange.com/questions/318895/package-graphics-error-division-by-0-with-tex4ht-when-using-dvipdfmxgraphic

This MWE

\documentclass[11pt]{scrbook}%
\usepackage{graphicx}
\begin{document}
\includegraphics[width=0.95\textwidth]{image.png}
\end{document}

when compiled using

make4ht -e main.mk4 foo.tex

gives error

(/usr/local/texlive/2016/texmf-dist/tex/generic/tex4ht/html4-math.4ht))
(./foo.aux)

! Package graphics Error: Division by 0.

See the graphics package documentation for explanation.
Type H <return> for immediate help.
...

l.4 ...ludegraphics[width=0.95\textwidth]{image.png}
?

WIth TL 2016 under linux.

Attached is the png image and the main.mk4 file.

This happens only of few number of files. It compiles OK with pdflatex and lualatex and the image file can be viewed ok on its own.

Removing the width=... clears the error. Also compiling without main.mk4 removes the error.

Nasser M. Abbasi <nma123>

 

Attached Files
file #252:  image.png added by nma123 (5kB - image/png)
file #253:  main.mk4 added by nma123 (1kB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by michal_h21 (Posted a comment)
  • -unavailable- added by nma123 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    3 latest changes follow.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed Jul 1 07:43:44 2020michal_h21Open/ClosedOpen=>Closed
    Mon Jul 11 13:55:03 2016nma123Attached File-=>Added image.png, #252
      Attached File-=>Added main.mk4, #253
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray