Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, March 6, 2012 12:22:48 AM(UTC)
wanglighting

Groups: Registered
Posts: 1


I'm new to leadtools so sorry if it's easy question. I have a bunch of jpg images and want an easy way of detecting if a file is progressive jpg or baseline jpg. I'm using C#.
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, March 8, 2012 8:40:07 AM(UTC)

Amin  
Amin

Groups: Manager, Tech Support
Posts: 353


Yes, this is supported in LEADTOOLS. The code looks something like this:
RasterCodecs codecs = new RasterCodecs();
CodecsImageInfo info = codecs.GetInformation(JpegFileName, false);
if (info.Jpeg.IsProgressive)
   MessageBox.Show("file is progressive", JpegFileName);
else
   MessageBox.Show("file is NOT progressive", JpegFileName);

Amin Dodin

Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2019, Yet Another Forum.NET
This page was generated in 0.078 seconds.