Skip to content

ImageMagick 7 incompatibilities (was Rotation of an included graphics leads to error in latexmlpost #934

Description

@asmaier

A simple example document with an included graphic like

\documentclass[12pt,a4paper,twoside]{book}
\usepackage{graphicx}
\begin{document}
\begin{figure}[t]
	\includegraphics[angle=90,width=0.7\linewidth]{some.eps}
\end{figure}
\end{document}

leads to an error in the latexml post processing

$ latexml testgraphics.tex --dest=testgraphics.xml
...
Conversion complete: No obvious problems.
$ latexmlpost --format=html5 --dest=testgraphics.html testgraphics.xml
...
(Graphics testgraphics.html processing...
Error:imageprocessing:Rotate Image processing operation Rotate (degrees, -90, color, #FFFFFF) returned Exception 410: unrecognized option `color' @ error/Q16HDRI.xs/XS_Image__Magick__Q16HDRI_Mogrify/7807
	In Post::Graphics[@0x7fb0e3bca0f8] ->transformGraphic

Warning:expected:image Couldn't get usable image for some.eps
	In Post::Graphics[@0x7fb0e3bca0f8] ->transformGraphic
 0.75 sec)
(XSLT[using LaTeXML-html5.xsl] testgraphics.html processing... 0.02 sec)

The message Exception 410: unrecognized option `color' seems harmless to me. Maybe the error handling is a bit too strict. I think the processing of the image should not be aborted, because of this issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions