Bug 711551

Summary: Crash when converting eps image to png and -density is too small
Product: [Fedora] Fedora Reporter: Susi Lehtola <susi.lehtola>
Component: ImageMagickAssignee: Pavel Alexeev <pahan>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: nmurray, pahan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-12 09:01:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Error log from convert none

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.