I need to test for the circumstance where someone has renamed a TIF file with a JPG extension. I have to process large number of image files that are supposed all be JPG files. If I right-click on a file that is really a TIF, windows can show in the properties that it is a TIF even though it has a JPG extention. (In the properties window on the Summary tab under the Image node for File Type the value is “Tagged Information File Format (TIFF)” My questions are: 1- What is the technical term for this property? 2- How can I test for the condition where this property does not equal the file extension in the file name? I am running simple dos commands and a thumbnailer product via command line. But I am open to more exotic methods. Thanks in advance…
Check out James O'Neill's blog http://blogs.technet.com/jamesone/archive/2007/07/13/exploring-photographic-exif-data-using-powershell-of-course.aspx or Scott Hanselman's http://www.hanselman.com/blog/AccessingEXIFPhotoDataFromJPEGsWithPowerShell.aspx HTH Shay http://www.scriptolog.blogspot.com > I need to test for the circumstance where someone has renamed a TIF > file with a JPG extension. I have to process large number of image > files that are supposed all be JPG files. If I right-click on a file > that is really a TIF, windows can show in the properties that it is a > TIF even though it has a JPG extention. (In the properties window on > the Summary tab under the Image node for File Type the value is > Tagged Information File Format (TIFF) > > My questions are: > 1- What is the technical term for this property? > 2- How can I test for the condition where this property does not equal > the > file extension in the file name? > I am running simple dos commands and a thumbnailer product via command > line. But I am open to more exotic methods. > > Thanks in advance >
Thank you Shay, EXIF is the term I was looking for and was guessing the powershell would be the method, but I lacked some key information which you have pointed me to. again, thank you. "Shay Levi" wrote: > Check out James O'Neill's blog > http://blogs.technet.com/jamesone/archive/2007/07/13/exploring-photographic-exif-data-using-powershell-of-course.aspx > > or Scott Hanselman's > http://www.hanselman.com/blog/AccessingEXIFPhotoDataFromJPEGsWithPowerShell.aspx > > > HTH > > Shay > http://www.scriptolog.blogspot.com > > > > > I need to test for the circumstance where someone has renamed a TIF > > file with a JPG extension. I have to process large number of image > > files that are supposed all be JPG files. If I right-click on a file > > that is really a TIF, windows can show in the properties that it is a > > TIF even though it has a JPG extention. (In the properties window on > > the Summary tab under the Image node for File Type the value is > > “Tagged Information File Format (TIFF)” > > > > My questions are: > > 1- What is the technical term for this property? > > 2- How can I test for the condition where this property does not equal > > the > > file extension in the file name? > > I am running simple dos commands and a thumbnailer product via command > > line. But I am open to more exotic methods. > > > > Thanks in advance… > > > > >