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

Notification

Icon
Error

Options
Go to last post Go to first unread
ChoptimusPrime  
#1 Posted : Friday, January 8, 2016 8:39:52 AM(UTC)
ChoptimusPrime

Rank: Newbie

Groups: Member
Joined: 1/8/2016(UTC)
Posts: 1

Hello,

I am having several issues producing a JPEG compressed tif. My first issue is that no matter what quality I supply for the tiffSettings the file always comes out the same size. My second issue is that the file size for a JPEG compressed tif are a little more than double the comparable JPEG file. I would expect for the same compression level that the files would vary by a small amount to account for tiff tag bytes. Here are some samples that I adapted from the GraphicsMill sample code. I chose a quality of 100 to remove the first issue as a factor (or does it?).

Our scanner produces JPEG compressed tif files at a size consistent with my assumptions above. I'm not sure I have a way to verify the JPEG quality level of the scanner, but I doubt that it is less than 75 or so.

Code:
private static void WriteTiff()
{
    using (Bitmap bitmap = new Bitmap(@"C:\Users\Public\Pictures\Sample Pictures\Penguins.jpg"))
    {
        var tiffSettings = new TiffSettings()
        {
            Compression = CompressionType.Jpeg,
            Quality = 100
        };
 
        bitmap.Save(String.Format("C:/TestImages/file{0}.tif", DateTime.Now.ToString("MM-dd-yyyy-hh-mm-ss")), tiffSettings);
    }
}

private static void ReadAndWriteJpeg()
{
    using (Bitmap bitmap = new Bitmap(@"C:\Users\Public\Pictures\Sample Pictures\Penguins.jpg"))
    {
        var jpegSettings = new JpegSettings()
        {
            Quality = 100,
        };

        bitmap.Save(String.Format("C:/TestImages/file{0}.jpeg", DateTime.Now.ToString("MM-dd-yyyy-hh-mm-ss")), jpegSettings);
    }
}
Fedor  
#2 Posted : Monday, January 11, 2016 2:54:50 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,558

Thanks: 5 times
Was thanked: 62 time(s) in 61 post(s)
Hi,

Thank you for the problem report.

We have successfully reproduced the problem (Aurigma Bug #21631).

We will post a status update in 1-2 days.
Best regards,
Fedor Skvortsov
Fedor  
#3 Posted : Tuesday, January 12, 2016 9:19:58 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,558

Thanks: 5 times
Was thanked: 62 time(s) in 61 post(s)
The JPEG image format supports the RGB and YUV color spaces.

The current version of Graphics Mill saves a JPEG image in the YUV format (the default behavior of the most software) and a TIFF image with JPEG compression in the RGB format. The RGB format improves the quality, but increases the output file size.

We have uniformed the behavior. The upcoming version of the SDK saves TIFF the same way as JPEG.

This feature will be included in the next release (> 8.0.37), which will be available in January 2016.
Best regards,
Fedor Skvortsov
Fedor  
#4 Posted : Wednesday, January 27, 2016 1:22:52 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,558

Thanks: 5 times
Was thanked: 62 time(s) in 61 post(s)
The problem is fixed in the recently released version 8.1.2.
Best regards,
Fedor Skvortsov
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.