In Focus
Kolkata Chapter Developer Day: May 25
C# Corner Delhi Chapter Meet, May-18, 2013 Official Recap
MOBILE: HTML 5 vs. Native Apps
Istanbul Chapter May 2013 2nd Seminar Announced : Learn WinJS, Windows Store, MVC
ANNOUNCEMENT: April 2013 Month Winners
Email :
Password :
Remember me?
Forgot password
Technologies
Monthly Leaders
ASK A QUESTION
C# Programming
Multi-threading
Microsoft Surface
Community Services
Java
.NET General
Office Interoperability
ReFS
Current Affairs
JQuery
Active Directory
Printing
Silverlight 5
Fun and Jokes
JSP
ADO.NET & Database
Project Management
WCF
Job Opportunities
Multimedia, Graphics, Flash
AJAX & Atlas
Remoting
Windows 8
Leadership
PHP
Algorithms & AI
Reporting
Windows Azure
Mac for Windows
Social Networking
Arrays & Collections
Robotics and Hardware
Windows Store Apps
Microsoft Feedback
TypeScript
ASP.NET & Web Development
Security & Cryptography
Workflow Foundation
Open Source Projects
Web Hosting
C# Language
Setup & Deployment
WPF
Operating Systems
Website Management
C# References
Sharepoint
XAML Language
Paid Projects
Windows Azure
CLR & .NET Internals
Speech & Voice Recognition
Site and Forums Feedback
Prizes, Awards, MVP
Windows Phone 7
COM Interoperability
Tablet PC
Announcements
Students & Beginner Projects
Database
Custom Controls
Testing and QA
Author Guidelines
Test Category
Database General
Design and Architecture
Visual Basic .NET
Bugs and Problems
Training & Certification
Oracle
Embedded Development
Visual C++
Forums Feedback
Web Development
SQL
Enterprise Development
Visual Studio 11
Site Feedback & Suggestions
Advertising, Marketing, SEO
SQL Server
Games, DirectX, and XNA
Visual Studio 2010
Site Spams
Android
Products
GDI+ and DirectX
Web Services
Miscellaneous
Cloud Computing
Office 2013
General
Windows Forms
.NET Books
Expression Tools
Products
LINQ
Windows Services
Ask the Author
HTML 5
SharePoint 2013
Migrating to .NET
Cutting-Edge
Career Advice
HTML, JavaScript, CSS
Windows 8
Mobile Development
.NET 5.0
Coffee, Chai Lounge
iPhone, iPad
Forum guidelines
Home
»
GDI+ and DirectX
»
HELP! Detect if a JPG is progressive! REWARD!
Author
Question
info
HELP! Detect if a JPG is progressive! REWARD!
Posted on: 16 Oct 2003
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!!!!
Reply
Quick Reply
Report a Spam
Our Recommended Solutions
Help Technique in Web applications
Introduction to HTMLHelp
How to Make Help File With VB.NET
Memory Game
How to Make Help File With C#
Help Statement in MYSQL Server
Help and Show Commands in MySQL
DATEPART Function in SQL Server 2012
Multinational Corporations Vs. Small Companies
Visual studio and .NET tips and tricks 15
[ + ]
Author
Reply
andrew
0
0
Re: HELP! Detect if a JPG is progressive! REWARD!
Posted on: 16 Oct 2003
You have to use Image.GetEncoderParameterList method. Then you can use one of the enumerations from: EncoderValue RenderNonProgressive and RenderProgressive I have used those for saving, but never tried retrieving the values, which I think GetEncoderParameterList might help.
Reply
Quick Reply
info
0
0
Re: HELP! Detect if a JPG is progressive! REWARD!
Posted on: 17 Oct 2003
Hi Werdna... Thanks for the tip, it sounds like a good lead! However, I am still not sure how to actually call the GetEncoderParameterList method in an asp.net application... it does not seem to appear as a valid method of the image object in the VisualStudio.net IDE. The closest match I could find to your suggestion is the system.imaging.encodervalue enumeration detailed here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdrawingimagingencodervalueclasstopic.asp but still, I don't understand how this could be used to retrieve a value from an encoded image- it appears to be only applicable to retrieving encoder value constants which can then be applied to an existing image for subsequent encoding. If there's any way you could show me a basic usage example in the context of an ASP.NET application, enumerating the GetEncoderParameterList as applicable to an existing image file, that would be very much appreciated. I know your time is valuable and I'll gladly return the favor in any way I can.
Reply
Quick Reply
Quick Reply:
SEARCH ANSWERS
All
C# Programming
Cutting-Edge
Site and Forums Feedback
Miscellaneous
Web Development
Database
Products
Any Word
Exact Word
Our recommended forum posts
Connecting Visual Studio 2010 with Sql server 2012
Vbscript
post on facebook using asp.net c#
3 Tier Architecture
Google API Key
create a excel worksheet in asp.net
Selected row from gridview to dropdown
dropdownlist filling which is palced in gridview
MULTIPLE LOGIN PROBLEM
Which plateform i have to select ??????
HOT QUESTIONS
Import/Export Generic List Objects
C# read xml data information
javascript for submit form without using submit button
Create List accessible for other classes
Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)
mathematical euation
About Textbox
Congratulation Vinod Kumar
If company is giving wrong feedback about Emp then what should we have to do ?
What is sealed class?
SPONSORED BY
DynamicPDF ReportWriter Suite
PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.