Rank: Member
Groups: Guest
Joined: 5/4/2006(UTC) Posts: 17
|
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?
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 8/3/2003(UTC) Posts: 1,070
Thanks: 1 times Was thanked: 12 time(s) in 12 post(s)
|
Hello,
We confirm the problem, thanks for your report. This issue will be solved in the next version of Graphics Mill for .NET. |
|
|
|
|
Rank: Newbie
Groups: Guest
Joined: 12/8/2009(UTC) Posts: 3
|
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.
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 3/9/2008(UTC) Posts: 554
Was thanked: 1 time(s) in 1 post(s)
|
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.
|
|
|
|
|
Rank: Newbie
Groups: Guest
Joined: 12/8/2009(UTC) Posts: 3
|
Hi, My code is: Code: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 wrote: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.
Edited by user Saturday, January 9, 2010 6:52:43 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 3/9/2008(UTC) Posts: 554
Was thanked: 1 time(s) in 1 post(s)
|
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.
|
|
|
|
|
Rank: Newbie
Groups: Guest
Joined: 12/8/2009(UTC) Posts: 3
|
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 wrote: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.
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 3/9/2008(UTC) Posts: 554
Was thanked: 1 time(s) in 1 post(s)
|
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.
|
|
|
|
|
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.