Bug 55113

Summary: divide by zero problem
Product: [Retired] Red Hat Linux Reporter: David Mason <dcm>
Component: ImageMagickAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: olivier.baudron
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
URL: http://people.redhat.com/dcm/png2eps
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-10-28 11:11:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Mason 2001-10-25 18:54:41 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.78 [en] (X11; U; Linux 2.4.9-7 i686)

Description of problem:
I have this handy script that our docs dept uses to convert png screenshots
into eps files while providing scaling (to use: $png2eps --width=3
myfile.png) - the scaling is in inches. With the latest ImageMagick I get a
divide by zero error - If I back up to the package in 7.1 it is fine.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.grab my script at the URL provided
2.run it against a png image with scaling ($png2eps --width=3 myfile.png)
3.error
	

Additional info:

Comment 1 Olivier Baudron 2001-10-28 11:11:20 UTC
--- png2eps.old Sun Oct 28 13:05:48 2001
+++ png2eps     Sun Oct 28 13:06:22 2001
@@ -24,7 +24,7 @@
 
 $imagesz = `identify $ARGV[0]`;
 
-($name, $size, $rest) =  split / /, $imagesz, 3;
+($name, $type, $size, $rest) =  split / /, $imagesz, 4;
 #print $name, " ", $size, " ", $rest, "\n";
 #print "imagesz = ",$size,"\n";

Comment 2 Bernhard Rosenkraenzer 2001-10-30 14:00:24 UTC
Perl binding API change - please fix png2eps.