Having discovered that my Pixel 3a sometimes takes photos in Multi-Picture mode, resulting in enormous sizes (up to 20-30MB), I’d like to know if it is feasible to automate reducing them to a reasonable size.
Using FastStone, I took one 29MB file, reduced it to 1600x1200 and 702KB, and can barely tell the difference. That is, PXL_20201004_235229663.**MP.**jpg saved as PXL_20201004_235229663.jpg.
With a text file list of all the Multi-Picture photos, it seems I should be able to automate this process. Can PowerShell invoke FastStone to do the resizing? If not, how do I accomplish that?
If FastStone has an API or some command line options to accomplish this it should be easy to automate this.
But there are other (easier) options I think. IrfanView has the ability to do batch jobs for converting and/or renaming. There you can do size conversions as well. So no need to do any scripting at all.
This shouldn’t really be a question - it’s been meant as more food for thought. If you have a particular file type you can set up a file type filter in IrfanView. This way you don’t need to create a list of the files in advance.
My photos are on a locally mapped drive so I had to do some research to find that cd didn’t work but H: does.
Why shouldn’t that work? You just have to do it right. The proper command is
The trailing backslash is important in this case.
But actually you don’t need a command line at all. You can do everything from the IrfanView GUI.
It’s possible from the Irfanview GUI but the command line options are more limited as far as I can tell. There’s no option to do a replace-text rename which can be done under the batch rename options in the GUI, and it doesn’t look like it’s possible to overwrite files when using the command line either.
You can find the full list of options in the i_options.txt file in the Irfanview installation folder.
No reason why you can’t combine PowerShell and Irfanview for the task though.