[Gimp-user] determining file type

2006-04-20 Thread [EMAIL PROTECTED]


Hey there.   

I have some image files for which the extension may have been written 
incorrectly, i.e. they say .jpg but i suspect they are really png's.  Can GIMP 
tell me the file type of a file it has opened.  I know it examines the magic 
numbers to determine how to handle it so it must know.  How can I make it tell 
me!!!

Or if you know of an easy way to determine file type, without relying on the 
extension, from a non GIMP technique or tool.

Thank you,
And have a great day!!!



___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] determining file type

2006-04-20 Thread Jeffrey McBeth
I have some image files for which the extension may have been   
written incorrectly, i.e. they say .jpg but i suspect they are   
really png's.  Can GIMP tell me the file type of a file it has   
opened.  I know it examines the magic numbers to determine how to   
handle it so it must know.  How can I make it tell me!!!


Or if you know of an easy way to determine file type, without   
relying on the extension, from a non GIMP technique or tool.


I sent you a message offline about how to do it using a text editor.

But, I forgot some things

If you use Linux or Mac, you can type file filenamehere and it will  
tell you a bunch of information about the file (including the type).


If you use Windows and have GIMP associated with the file, you can  
right click, go to properties, then advanced and it will tell you much  
the same stuff as the file command under Linux and Mac


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] determining file type

2006-04-20 Thread Simon Budig
[EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote:
 Or if you know of an easy way to determine file type, without relying
 on the extension, from a non GIMP technique or tool.

Imagemagick has a commandline tool called identify. The output of this
also contains the file format.

I hope this helps,
Simon
-- 
  [EMAIL PROTECTED]  http://simon.budig.de/

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] determining file type

2006-04-20 Thread Michael Schumacher
Jeffrey McBeth wrote:

 If you use Linux or Mac, you can type file filenamehere and it will
 tell you a bunch of information about the file (including the type).

I would use the file command on Windows as well.
http://gnuwin32.sourceforge.net/packages/file.htm


HTH,
Michael

-- 
The GIMP  http://www.gimp.org  | IRC: irc://irc.gimp.org/gimp
Wiki  http://wiki.gimp.org | .de: http://gimpforum.de
Plug-ins  http://registry.gimp.org |
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] determining file type

2006-04-20 Thread Geoffrey

Jeffrey McBeth wrote:
I have some image files for which the extension may have been  written 
incorrectly, i.e. they say .jpg but i suspect they are  really png's.  
Can GIMP tell me the file type of a file it has  opened.  I know it 
examines the magic numbers to determine how to  handle it so it must 
know.  How can I make it tell me!!!


Or if you know of an easy way to determine file type, without  relying 
on the extension, from a non GIMP technique or tool.


I sent you a message offline about how to do it using a text editor.

But, I forgot some things

If you use Linux or Mac, you can type file filenamehere and it will 
tell you a bunch of information about the file (including the type).


imagemagick comes with identify, which is a great tool, particularily 
for image files.


--
Until later, Geoffrey

Any society that would give up a little liberty to gain a little
security will deserve neither and lose both.  - Benjamin Franklin
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user