Re: Corrupt JPG Files



On Wed, 11 Apr 2007 16:05:45 -0400, ASAAR <caught@xxxxxx> wrote:

That may be true for windows, but I'd be surprised if all
applications are similarly fooled. Many times I've tried to view
image files (jpg, gif, etc.) using Irfanview and will see a message
stating that the file extension is incorrect and with an offer to
correctly rename the file.

Any image viewer/editor that I've ever seen would be fooled.
Virtually every file type contains header info that identifies the
file as a particular type. The reason that Irfanview and a number of
other programs give an "incorrect extension" message it that they read
the file extension and then compare it against the file's header
information. If the header info does not agree with the file's
extension and the program reading it is designed to identify specific
file types by header info, such as Irfanview, then it will identify
the true file type based on the information found in the file's
header.
If the header info was damaged, which can and does occur, then the
file will not be recognized as the correct file type, regardless of
its extension.
That type of identifier must be built into the program being used. It
is neither accidental nor coincidental.


--
jimbok
.



Relevant Pages

  • Re: About File "types" and Office 12.1 Service Pack and double-clicking
    ... I'm sharing my observations not as an MVP but as someone who does technical support for a living. ... which means they don't want others taking advantage of that file type and allowing a malicious file to launch Word. ... Allow me to save/edit/open a word document with no extension, ... Although Apple deprecated file type and creator codes some time ago, they still haven't removed support for them. ...
    (microsoft.public.mac.office.word)
  • Re: "Use this app to open all documents like this"
    ... Documents with this extension? ... If the document has a creator code, ... matching extension or file type. ... claimed ownership of that extension is used. ...
    (comp.sys.mac.system)
  • Re: Windows File Associations
    ... themselves with the appriate file extension, ... and a description of the file type. ... equate that gets replaced with double quote and all the Windows API ... LOCAL lResult AS LONG ...
    (comp.emulators.apple2)
  • Re: How to trim cell information
    ... To include filenames that might not include a type extension, ... Function reFilename(str As String) As String ... Dim re As Object ... I'm no expert on allowable file type extensions in Windows. ...
    (microsoft.public.excel.programming)
  • Re: Custom Files?
    ... > Private File Type, then I wouldn't worry about it. ... > Of course not registering it, may mean another app would start using it & ... But regarding the custom ... > | file extension? ...
    (microsoft.public.dotnet.languages.vb)