info

info

  • 0
  • 4
  • 0

HELP! Detect if a JPG is progressive! REWARD!

Oct 16 2003 4:06 PM
ALL I NEED TO DO IS determine if a JPG file is PROGRESSIVE or BASELINE. I have Scoured the web, read half the MSDN library, posted on numerous .net forums, read every GDI+ article in C# Corner and VB.net heaven... and NOWHERE can I find the answer to this question! I have ASP.NET applications that allow users to upload image files, and I need to reject or re-save PROGRESSIVE (multi-pass) jpegs because they can't be loaded or displayed in Flash Player if the are Progressive. AFAIK there is no built-in property in the system.drawing or system.io namespaces to determine this, (although that would be awesome if there were)... so you would possibly have to open the file as a binary stream or something and find the progressive "marker" in the file. I have seen PHP scripts that can do this, so I am fairly sure that a .NET script should be able to as well. PLEASE HELP! I will gladly compensate you with some graphic design, flash development or .net programming if you can provide me with working code to perform this task. I will worship you as a .NET guru if you can do this for me!!!!

Answers (4)