i have added a button in file menu by using AI SDK , now i want to convert an AI image into a JPEG format.
Can anyone please tell me that how will it be possible??
Will it be possible by using the same SDK API or i will have to run a script file on this button click event.
We export to JPG manually, so its definitely doable in just pure code (though you may need to do some pixel crunching and/or need a 3rd party library).
There are some methods for exporting to Jpeg natively though I haven't used them. AIImageOpitimizatioSuite::AsJEPG() takes an art handle and sends the raw data to an AIDataFilter (presumably as a stream of JPEG bytes you could just write out? I'm not sure). You could try that first, see how that works.
Europe, Middle East and Africa