Is there a way to change the preference "Choose Preserve Image Dimensions When Relinking" from scripting? This setting is accessible in the user interface ( in the Edit menu / Preferences / File Handling tab ).
I am not sure but try:
app.imagePreferences.preserveBounds = true;
// If true, preserve image bounds when relinking.
That's the one! Thank you!