Hi All,
I'm using the System.Drawing.Image name space to convert images from
one type to another. In this case I am trying to convert a Tiff to a
JPEG. The code is as simple as the next two lines...
System.Drawing.Image image = Image.FromFile( this.importFilePath );
image.Save( exportFilePath, System.Drawing.Imaging.ImageFormat.Jpeg );
The code almost always seems to work, but some times I receive the
following error...
System.ArgumentException: Invalid parameter used.
at System.Drawing.Image.Save(String filename, ImageCodecInfo
encoder, EncoderParameters encoderParams)
at System.Drawing.Image.Save(String filename, ImageFormat format)
I am 100% sure that the file paths are correct. Has anyone dealt with
this error before?
Any suggestions would be great.
Thanks in advance