Bug 711551 - Crash when converting eps image to png and -density is too small
Summary: Crash when converting eps image to png and -density is too small
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: ImageMagick
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Pavel Alexeev
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-07 18:40 UTC by Susi Lehtola
Modified: 2012-06-12 09:01 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-12 09:01:16 UTC
Type: ---


Attachments (Terms of Use)
Error log from convert (5.42 KB, text/x-log)
2011-06-07 18:40 UTC, Susi Lehtola
no flags Details

Description Susi Lehtola 2011-06-07 18:40:24 UTC
Created attachment 503552 [details]
Error log from convert

Description of problem:
I tried converting a LaTeX equation into png with (max) resolution 153x53 pixels.
The tex2im script crashed in the convert command.

Version-Release number of selected component (if applicable):
ImageMagick-6.6.5.10-19.fc15.x86_64
ghostscript-9.02-1.fc15.x86_64


How reproducible:

Create a LaTeX file containing an equation, e.g.
 \documentclass[12pt]{article}
 \usepackage[dvips]{graphicx}
 \pagestyle{empty}
 \usepackage{color}
 \begin{document}
  \begin{eqnarray*}
   \int x dx = \frac 1 2 x^2 + C
  \end{eqnarray*}
 \end{document}
compile it to DVI with
 $ latex eqn.tex
then convert the DVI to EPS with
 $ dvips -E eqn.dvi -o eqn.eps

Finally, try to convert into png with
$ convert -density 153x53 eqn.eps eqn.png

 
Actual results:
Two pages of error messages.
(Works, though, without the density argument or with a large enough density.)

Expected results:
A converted file, or at least a sane error message.

Additional info:
This is not a problem for me, since I circumvented this by downscaling the image afterhand.

Comment 1 Pavel Alexeev 2011-06-24 04:57:47 UTC
Please try new version - http://koji.fedoraproject.org/koji/taskinfo?taskID=3155538

Comment 2 Pavel Alexeev 2012-06-12 09:01:16 UTC
Assume it works.


Note You need to log in before you can comment on or make changes to this bug.