Skip to main content
Participant
June 3, 2011
Question

How to set "embed icc Profile" option to export document as JPEG

  • June 3, 2011
  • 1 reply
  • 2361 views

Hi All,


While exporting the document as jpeg, through File->Export, there is an option "Embed ICC Profile" as figure shows.


How to set it if I am exporting the document through my program in which I rasterize the document and used 

the sAIImage->AsJPEG(raster, jpegDataFilter, params);

I didn't find any option in AIRasterizeSettings or AIImageOptJPEGParams to set this flag.


plz anyone suggest me how to do so.

Thanks,

Rud.

This topic has been closed for replies.

1 reply

Known Participant
June 6, 2011

hi,

plz atleast suggest something regarding this.

I am waiting for reply.

thanks,

A. Patterson
Inspiring
June 6, 2011

Take a look at AISlicing.h -- at the bottom is AIOptimizationSettingsSuite which contains SetOptimizationSettings(). This takes an ASOptimizationSettings object, which contains an ASOptimizationSettingsUnion, which in turn contains ASJPEGSettings. ASJPEGSettings has options for ICC embedding.

I've never used this, so you're on your own that that point. But I suspect this suite works in conjunction with the one you're trying to use.

Known Participant
June 8, 2011

thanks for the reply.

I tried a lot to find the way to use AIOptimizationSettingsSuite suite with AIImageOptSuite or AIRasterizeSuite but I didn't get.

If you have any idea about this plz share. I can make object of ASOptimizationSettings and set the required flags,

but how to use it with AsJPEG(AIArtHandle aiArt,

                                                     AIDataFilter* aiDataFilter,

                                                     AIImageOptJPEGParams& params);

since there is no way to relate  AIImageOptJPEGParams with ASOptimizationSettings.

Could you plz tell me that?

thanks,