How to limit the JPG file size within 300 Kb?
For example
Limite the size of the JPG file that use SaveForWeb function maked.
For example
Limite the size of the JPG file that use SaveForWeb function maked.
Sorry
I made an error in the function EnregWeb
Replace by
function EnregWeb(filename, qualit)
{
var options = new ExportOptionsSaveForWeb();
options.quality = qualit; // Start with highest quality (biggest file).
options.format = SaveDocumentType.JPEG; // Or it'll default to GIF.
docRef.exportDocument(File( filename), ExportType.SAVEFORWEB, options);
}
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.