This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Resolution always 72 dpi for CMYK JPEG

When I save a CMYK Bitmap (with or without alpha) to JPEG I always get 72 dpi regardless of what the HorizontalResolution and VerticalResolution properties are set to. Saving RGB or GrayScale Bitmaps works, and saving CMYK Bitmaps as TIFF also works. How can I get CMYK JPEG in another resolution than 72 dpi?
Hello,

We confirm the problem, thanks for your report. This issue will be solved in the next version of Graphics Mill for .NET.
Hi, is this issue resolved in current version of Graphics Mill for .NET? I'm using v.5.5.1.0 and I need to convert JPEGs to CMYK for publishing in 300 DPI.
Hi,

This problem is fixed in Graphics Mill 5.5. If you still experience this issue please post your code here and picture which you try to convert.
Hi,
My code is:

Bitmap img = CropImage(path, width, height); // my method

//Choose LittleCMS color management engine
img.ColorManagement.ColorManagementEngine = ColorManagementEngine.LittleCms;
//Assign input sRGB profile
img.ColorProfile = ColorProfile.FromSrgb();
if (color != 1)
{
	img.ColorAdjustment.Desaturate();
}

//Assing output CMYK profile for conversion
img.ColorManagement.CmykColorProfile = null; //= new Aurigma.GraphicsMill.ColorProfile(@"d:\Downloads\Coldset_DG26_TIL225_K90_ModGB.icc");
//Convert to CMYK
img.ColorManagement.ConvertToContinuous(ColorSpace.Cmyk, false, img.IsExtended);
img.ColorAdjustment.AutoBrightness();
img.ColorAdjustment.AutoContrast();
img.Save(Path.Combine(imgDest, "cropped\\" + imgName));
img.HorizontalResolution = 300;
img.VerticalResolution = 300;
img.Transforms.Resize(width, height, ResizeMode.Resize, InterpolationMode.HighQuality);
JpegEncoderOptions encOpt = new JpegEncoderOptions(80, true);
img.Save(Path.Combine(imgDest, "resize\\" + imgName), encOpt);
SendToFtp(Path.Combine(imgDest, "resize\\" + imgName), GetFtpDir(title));
img.Dispose();


What am I doing wrong?

Tamila
Hi,

This problem is fixed in Graphics Mill 5.5. If you still experience this issue please post your code here and picture which you try to convert.
Hi,

I just tested your code and it worked well. At the end I got the picture with 300 dpi resolution. Probably we did not understand you right. Could you please describe your problem a bit detailed.
Hi, the problem is that after conversion irfanview shows me "print size = 6.4x4.1 inches" for a picture 461x292px to a newspaper. It should be 1.5x1.0 inches. And I have ahother question: how can I remove icc profile after color conversion (in code above)? I don't want to include a profile because it's about 2MB but I have small pictures and I need to send them via net after conversion.


Tamila
Hi,

I just tested your code and it worked well. At the end I got the picture with 300 dpi resolution. Probably we did not understand you right. Could you please describe your problem a bit detailed.
Hi,

Could you please attach to this case test application where we can reproduce your problem. Also attach your source picture and the picture after Graphics Mill processing.