[Mono-bugs] [Bug 77270][Maj] New - Unable to save images as ImageFormat.Jpeg

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Jan 15 19:22:42 EST 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by vigs at lycos.com.

http://bugzilla.ximian.com/show_bug.cgi?id=77270

--- shadow/77270	2006-01-15 19:22:42.000000000 -0500
+++ shadow/77270.tmp.3495	2006-01-15 19:22:42.000000000 -0500
@@ -0,0 +1,71 @@
+Bug#: 77270
+Product: Mono: Class Libraries
+Version: 1.1
+OS: other
+OS Details: Ubuntu
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Sys.Drawing.
+AssignedTo: jordi at ximian.com                            
+ReportedBy: vigs at lycos.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Unable to save images as ImageFormat.Jpeg
+
+Description of Problem:
+- Unable to save a (*.gif image as *.jpg) or (*.bmp image as *.jpg) using
+Image.Save() method.
+
+Steps to reproduce the problem:
+- Run the following code -
+
+[code]
+using System;
+using System.Drawing;
+using System.Drawing.Imaging;
+using System.IO;
+
+class test
+{
+    public static void Main(string[] args)
+    {
+        Image img = Image.FromFile(@"/home/tux/in.gif");
+        try
+        {
+            img.Save(@"/home/tux/out.jpg", ImageFormat.Jpeg);
+        }
+        catch (Exception ex)
+        {
+            Console.WriteLine(ex.Message);
+            Console.WriteLine(ex.StackTrace);
+        }
+    }
+}
+[/code]
+
+Actual Results:
+- Invalid Parameter. A null reference or invalid value was found.
+in <0x00084> System.Drawing.GDIPlus:CheckStatus (Status status)
+in <0x00095> System.Drawing.Image:Save (System.String filename,
+System.Drawing.Imaging.ImageCodecInfo encoder,
+System.Drawing.Imaging.EncoderParameters encoderParams)
+in <0x0002c> System.Drawing.Image:Save (System.String filename,
+System.Drawing.Imaging.ImageFormat format)
+in (wrapper remoting-invoke-with-check) System.Drawing.Image:Save
+(string,System.Drawing.Imaging.ImageFormat)
+in <0x00032> test:Main (System.String[] args) 
+
+Expected Results:
+1) gif image should be saved as jpg
+OR (Depending on the code)
+2) bmp image should be saved as jpg
+
+How often does this happen?
+- Always.
+
+Additional Information:
+- Compiled and test under mono-1.1.13


More information about the mono-bugs mailing list