Quantcast
Channel: Adobe Community : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 238792

Exporting to JPEG

$
0
0

Hi all ,

 

I am using following code to convert AI file to JPEG

 

exportFileToJPEG('~/Desktop/Harsh/1.jpg');
 
function exportFileToJPEG (dest) {
if ( app.documents.length > 0 ) {
var exportOptions = new ExportOptionsJPEG();
var type = ExportType.JPEG;
var fileSpec = new File(dest);
exportOptions.antiAliasing = false;
exportOptions.qualitySetting = 70;
app.activeDocument.exportFile( fileSpec, type, exportOptions );
}
}

 

 

but ir crope the document to the size of the image and resize the ArtBoard to the size of Image.

 

I want to convert the Existing ArtBoard Area only , i dont want to crope the image.

 

Please help me out.

 

Thanks

Harsh S


Viewing all articles
Browse latest Browse all 238792

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>