Skip to main content
Inspiring
April 24, 2024
Question

ExportOptionsJPEG.horizontalScale max value?

  • April 24, 2024
  • 1 reply
  • 239 views

Hi,

How can I find the maximum value that we could supply on horizontalScale?

I checked with Adobe scripting guide but there is no definite answer.

https://ai-scripting.docsforadobe.dev/jsobjref/ExportOptionsJPEG.html

 

I tried inputing horizontalScale=300, it's working fine but when I input 800 then I an error message will appear:

Error 1239: Specified value greater than maximum allowed value

 

Thanks in advance.

This topic has been closed for replies.

1 reply

pixxxelschubser
Community Expert
Community Expert
April 24, 2024

 

Hi @maria hannad92609693

You have to look a little deeper:

https://ai-scripting.docsforadobe.dev/jsobjref/ExportOptionsJPEG.html?highlight=exportoptionsjpeg#exporting-to-jpeg-format

ExportOptionsJPEG.verticalScale

exportOptionsJPEG.verticalScale

Description

The vertical scaling factor to apply to the exported image. Range: 0.0 to 776.19. Default: 100.0.

Type

Number (double)

Inspiring
April 29, 2024

Hi @pixxxelschubser 

I think thats for verticalScale.

I am asking for horizontalScale

ExportOptionsJPEG.horizontalScale

exportOptionsJPEG.horizontalScale

Description

The horizontal scaling factor to apply to the exported image, where 100.0 is 100%. Default: 100.0.

There is no max value specified in the documentation, or is it the same with verticalScale which has 776.19 as max value?

Thanks,