Page 1 of 1

resize request

Posted: August 4th, 2019, 4:00 pm
by rfuerman
Hello. So I am reducing the file size for email to friends, social media, whatever; no need to send 8 MB files. Set up a script (very helpful!) to apply some of the automatic transforms, then resize the photo. Transform | Resize | Set pixel width = 1000. This works great for the horizontal images, but no so well for the vertical images. Suggestion: can you add a resize option to set GREATER of pixel width or height to xx pixels? Then this script will handle all images. Thank you!

Re: resize request

Posted: August 4th, 2019, 4:16 pm
by Charles2
Longer side / Shorter side.

Re: resize request

Posted: August 4th, 2019, 5:45 pm
by jsachs
This feature is already implemented in the File/Export command and Transformation/File/Export transformation which can be used in a batch process.

Re: resize request

Posted: August 13th, 2019, 4:56 pm
by rfuerman
Hello. PWP 20 Jul 2019. Got it! (I think) New to scripts; is this correct script to create batch process to resize images?
File | Open multiple. 'Open image file' dialog allows me to select xx images. BUT PW opens only FIRST image selected. NOTE - that the File | Open.. dialog allows me to select xx images, and then opens ALL selected images! If you have only the 'Open..' option, users can open a single OR multiple images - do you need both? File | Open from Default works OK if it is intended to allow multiple file opens.
apply transformations to first image, then
Transformation | File | Export
- browse to select export folder
- Resize [x] : 1000 pixels, long side, xx dpi
- select [File Export options] & turn off metadata & scripts
- select [OK]
Script | SAVE workspace script
File | close all images
Script | Open WS script created above.
- 'Open image' dialog allows me to select a single image - should allow multiple image files for batch;
- No image is saved to the export folder - export needs to execute to create files for batch?
- it would be helpful to have a 'File | close all images' command after last file is saved to prepare for the next batch of images.
thx!

Re: resize request

Posted: August 13th, 2019, 5:29 pm
by jsachs
File Open opens each file in its own top-level image.

File Open Multiple opens all the files into a single top-level image which is then set up for batch processing. It is a shortcut for using File Open on the first image and then adding the remaining images to the list so it is not strictly necessary but it saves a confusing extra step.

You might want to read the Batch.pdf manual as you don't seem to have figured out how to use batch yet.

Re: resize request

Posted: August 23rd, 2019, 10:51 am
by rfuerman
Hello. PW 22-Aug. Got the WS script working, mostly.
File | open . . takes user to the 'Open image file' dialog;
File | open multiple . . takes user to the 'Open image files' dialog where user can in fact select multiple files.
I create the WS script starting with File | open multiple . . command and save script. When I run this script, it takes me to the 'Open image file' dialog where I can select a single image. The batch processing.pdf indicates that I should be able to use this File | open multiple..
command in the batch to open multiple files. How can I get this command to start the WS script?? Thank you! Bob

Re: resize request

Posted: August 23rd, 2019, 11:11 am
by jsachs
I never anticipated batch being used in a script, but what you are trying to do makes perfect sense.

I should be able to make missing files in scripts request one or more files instead of just one, in a future release.

In the meantime, what you need to do is select the first file, then double click on the File Open and select the rest of the files, and then start the batch operation.

Re: resize request - batch

Posted: August 25th, 2019, 2:53 pm
by rfuerman
Hello. Could you look at one more item, please? When the batch is complete, I select the 'trash' icon to delete the images from the list. The images are deleted but the batch leaves an empty image on the workspace. Probably the workspace should be empty after deleting all files from the batch list? Thx, Bob