Thanks for this great script, it's a huge time saver! I found a mistake in the "do no enlarge" functionality, it was being triggered by the width without checking for docHeight > targetHeight. I have fixed it in the attached version. I also made a "Flip Vertical" version, as these days images may be viewed on mobile displays which can be used vertically or horizontally I wanted to be able to fit images into a max frame size either horizontally or vertically. This version of the script will exchange targetWidth with targetHeight for vertical images. I tried to add a check box to the interface for this behavior but that was too much for me at this point.
Cheers,
Thanks for this great script, it's a huge time saver! I found a mistake in the "do no enlarge" functionality, it was being triggered by the width without checking for docHeight > targetHeight. I have fixed it in the attached version. I also made a "Flip Vertical" version, as these days images may be viewed on mobile displays which can be used vertically or horizontally I wanted to be able to fit images into a max frame size either horizontally or vertically. This version of the script will exchange targetWidth with targetHeight for vertical images. I tried to add a check box to the interface for this behavior but that was too much for me at this point.
Cheers,
OK, not as smart as i thought I was ;). "Do not Enlarge" was not working in all cases. Corrected versions of both scripts attached! (I think)
OK, not as smart as i thought I was ;). "Do not Enlarge" was not working in all cases. Corrected versions of both scripts attached! (I think)