Dear All,
Can someone show me how to read .jpg or .jpeg files by using ReadImage?
The same code can read.gif, .png, etc. with no problem.
I can use WriteImage to create .jpg with no problem.
According to http://www.imagemagick.org/www/formats.html, do I need to install jpeg-6b in order to read .jpg files?
My environment is: XP using Visual Studio 2008.
Any helps would be greatly appreciated.
Best,
--Wo
How to read JPEG files via ReadImage
Re: How to read JPEG files via ReadImage
Does reading JPEG work from the command line? Try this command from the Command Prompt window:
- identify -verbose image.jpg
Re: How to read JPEG files via ReadImage
Yes. I can also: convert image.jpg image.ppm with no problem.
--Wo
--Wo
Re: How to read JPEG files via ReadImage
If ReadImage() fails to return an image it tells why in the exception parameter. Post the severity and reason for the exception here and it should clue us into why the method is failing to read your JPEG image.