Copy link to clipboard
Copied
ciao, ho aperto un nuovo foglio di lavoro in 18x24 e vorrei esportare il disegno in jpeg ma in più formati ma nelle opzioni non ho trovato nulla riguardo al ridimensionamento.
vorrei sapere qual'è la dimensione migliore con la quale iniziare per poi esportare correttamente negli altri formati. grazie
Copy link to clipboard
Copied
Hi, bnbbb.
ExportOptionsJPEG has properties "horizonalScale" and " verticalScale". Is this related?
Copy link to clipboard
Copied
hi, not that. i want to create a file that can be exported in different sizes. i need to print the design in various scales. is that possible?
thank you.
(my english is not that good sorry)
Copy link to clipboard
Copied
No worries. I'm sorry for my poor English, too. You can use the following script to create files of different sizes. Please customize it and use it.
For example:
(function () {
var scales = [
{
horizontalScale: 100,
verticalScale: 100
},
{
horizontalScale: 50,
verticalScale: 50
}
],
i,
max;
function exportFileToJPEG(scale) {
var exportOptions = new ExportOptionsJPEG(),
exportFile = new File(Folder.desktop.fsName + "/" + scale.horizontalScale + "_" + scale.verticalScale + ".jpg"),
exportFormat = ExportType.JPEG;
exportOptions.horizontalScale = scale.horizontalScale;
exportOptions.verticalScale = scale.verticalScale;
exportOptions.artBoardClipping = true;
app.activeDocument.exportFile(exportFile, exportFormat, exportOptions);
}
for (i = 0, max = scales.length; i < max; i += 1) {
exportFileToJPEG(scales);
}
}());
Copy link to clipboard
Copied
For your information, this may be useful if the Illustrator's version is CC 2015.3 or later.
Please navigate menu:
File > Export > Export for Screens...
See also:
Adobe Illustrator’s Export for Screens Saves You Time - Big Time | Adobe Blog