Welcome Guest! You need to login or register to make posts.



Go to last post Go to first unread
Todd Kneib  
#1 Posted : Tuesday, May 1, 2007 5:03:14 AM(UTC)
Todd Kneib

Rank: Advanced Member

Groups: Member
Joined: 5/10/2006(UTC)
Posts: 32

Thanks: 6 times
I am using the Jpeg2 encoder and it is running very slow. It is literally taking minutes to convert an image to jp2, whereas in Photoshop, it saves in seconds.
I tried this:
bitmap.Save(saveFileDialog1.FileName, new Aurigma.GraphicsMill.Codecs.Jpeg2kEncoderOptions(0.1f));

Ive also tried the following with all the different progressionorders.
using (Aurigma.GraphicsMill.Bitmap bitmap = 
            new Aurigma.GraphicsMill.Bitmap(img))
   using (Aurigma.GraphicsMill.Codecs.Jpeg2kWriter writer = 
               new Aurigma.GraphicsMill.Codecs.Jpeg2kWriter())
      writer.Progress += new Aurigma.GraphicsMill.ProgressEventHandler(aurBitmap_Progress);

      using (Aurigma.GraphicsMill.Codecs.Jpeg2kFrame frame = 
                  new Aurigma.GraphicsMill.Codecs.Jpeg2kFrame())
         frame.Rate = rateOfCompZeroToOneScale;
         frame.Compression = Aurigma.GraphicsMill.Codecs.CompressionType.WaveletLossy;
         frame.ProgressionOrder = Aurigma.GraphicsMill.Codecs.Jpeg2kProgressionOrder.Pcrl;


I am running version 3.5.405.0 of the Aurigma.GraphicsMill assembly (.net 1.1)
Any ideas on how to speed this up. These conversion times are unexceptable to my client, so I'm feeling some heat :(

Edited by user Tuesday, December 18, 2007 3:28:26 AM(UTC)  | Reason: Not specified

Alex Kon  
#2 Posted : Tuesday, May 1, 2007 1:01:10 PM(UTC)
Alex Kon

Rank: Advanced Member

Joined: 1/31/2005(UTC)
Posts: 458

Was thanked: 5 time(s) in 5 post(s)
Hello Todd,

Unfortunatelly we have to confirm this problem with our Jpeg2000 encoder. We are going to fix this issue in future releases.
#3 Posted : Tuesday, May 29, 2007 2:02:34 PM(UTC)

Rank: Member

Joined: 5/29/2007(UTC)
Posts: 1

I found the same thing, but I noticed that it only seems to happen for higher-resolution images.

I have found that a safe level seems to be any image where Width * Height < 2600000

In one of my apps I have been checking the resolution and saving to JPEG2000 only if the resolution is low enough for the saving speed to be fast, like this:

				if (MyBitmap.Width * MyBitmap.Height <= 2600000)
					// Compress with JPEG 2000
					MyBitmap.Save(stream, new Aurigma.GraphicsMill.Codecs.Jpeg2kEncoderOptions(0.07f));
					// Compress with standard JPEG
					MyBitmap.Save(stream, new Aurigma.GraphicsMill.Codecs.JpegEncoderOptions());

Edited by user Tuesday, December 18, 2007 3:31:16 AM(UTC)  | Reason: Not specified

Users browsing this topic
Forum Jump  
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.