Code Comments
Programming Forum and web based access to our favorite programming groups.Hi all.. I tired to read a JPEG and BMP image by using the code - ImageReader fromFile:'path'---- in operating system Linux(Fedora Core 6) in Visual works. eg: (ImageReader fromFile:'/root/image006.jpg')image ( ImageReader fromFile:'/root/image006.bmp')image but i am not getting these images read correctly in Linux , but in Windows Operating system it is reading correctly and working fine. I can read GIF image correctly by using the same code in Linux. Is there any other way for reading JPEG and BMP images in Linux operating system?. HTH Arun.S
Post Follow-up to this message"Ajaya Ghosh A.S" <ajaya.ghosh@ivasystems.co.in> wrote: > but i am not getting these images read correctly in Linux , but in > Windows Operating system it is reading correctly and working fine. I can > read GIF image correctly by using the same code in Linux. > > Is there any other way for reading JPEG and BMP images in Linux operating > system?. The code should work correctly independently of operating system. Is it possible that you transferred the images using a mechanism that is not safe for binaries (such as FTP with ASCII mode)?. Cheers, Hans-Martin --
Post Follow-up to this messageI don't know about BMPs, but the JPG reader apparently support only a fairly constrained set of features of the format which pretty much none of the JPG files that I ran into satisfies. However t here's a bundle in the public repository, called JPEG I think, which seemed to read everything I tried it with. The AP I is slightly different from the ImageReader, you do something like: (JPEG.Reader filename: aFilename) image HTH, Martin Ajaya Ghosh A.S wrote: > Hi all.. > > I tired to read a JPEG and BMP image by using the code - > ImageReader fromFile:'path'---- in operating system Linux(Fedora Core 6) i n > Visual works. > > eg: (ImageReader fromFile:'/root/image006.jpg')image > ( ImageReader fromFile:'/root/image006.bmp')image > > but i am not getting these images read correctly in Linux , but in > Windows Operating system it is reading correctly and working fine. I can > read GIF image correctly by using the same code in Linux. > > Is there any other way for reading JPEG and BMP images in Linux operating > system?. > > HTH > Arun.S > >
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.