I am working on reading text from an image through OCR. It only supports TIFF format images.
So, I need to convert other formats to TIFF format. Can it be done? Please help by providing some references.
While PNG, GIF, TIFF, and JPEG files are all raster formats, understanding the difference between raster and vector graphics will likely influence what file format to choose for your projects.
Convert JPG format files to TIFF in a few simple steps. A resolution of 300 dpi or more is required for printing. Choose File and select Save As. Select the TIFF format and click Save. for the output file you want.
If you create an Image
object in .NET, you can save it as a TIFF. It is one of the many ImageFormat choices at your disposal.
Example:
var png = Image.FromFile("some.png");
png.Save("a.tiff", ImageFormat.Tiff);
You'll need to include the System.Drawing
assembly in your project. That assembly will give you a lot of image manipulation capabilities. Hope that helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With