Search
Filters

With the Powershell script PsPsdConvert.ps1 a directory or a directory tree can be searched for Photoshop Psd files, which can then be converted to Jpg or Png files. Parameters influence various factors such as quality, interlaced, compression and maximum pixel dimensions.

In addition, images are converted to the RGB color model if the template is in CMYK. The background layer is also hidden for the output of transparent Png files.

The script can be called Powershell, the command line or task scheduling. In this way, automated scenarios can be mapped very easily. For optimization purposes, checksums of the Photoshop files are stored in a text file, so that only files that have changed are converted.

OneDrive or other cloud drives are supported. Before calling the Photoshop API, the system checks if the PSD file is not blocked.

The script requires Windows, Photoshop CS and Powershell version 5.1. On Windows 10 this Powershell version is 5.1 standard, on older operating systems like Windows 7 or Windows 2012 Powershell 5.1 can be upgraded free of charge.

The script is available in the source code and can be easily extended with Powershell knowledge.

Availability: In stock
SKU: 5527
GTIN: 4014751055277
Manufacturer: EULANDA

The script can be easily adapted via the parameters. The current description of the parameters can be found in the script itself, but only in English.

  • FilePath - The path to the folder containing the psd files to convert. The path must be specified without a final backslash and without asterix or file extension.

- LogPath - The path to the folder containing all output in a logfile. The path must be specified without a final backslash and without asterix or file extension.

  • AddOn - If the instantiation of Photoshop should fail, look in the registry under which addition, this object is otherwise accessible. Just search for "Photoshop.Application". If, for example, Photoshop.Application.130" is also found, the value ".130" can be used as parameter. Unfortunately I have not found a more general way to do this at the moment. Photoshop CS 2019 uses ".130" as AddOn.
  • WebOptimized - The output files are optimized for Webbrowsers, otherwise they are optimized for the desktop publishig.
  • SaveBackPsd - If Background or Cmyk is changed to RGB, the canged psd could be saved back.
  • CreateJpg - The output file is saved in jpg format. This specification can be combined with png as output.
  • CreatePng - The output file is saved in png format. This specification can be combined with jpg as output.
  • Transparency - Works only works with png files and WebOptimized switch.
  • Interlaced - Saves the output file in interlaced mode. These files are slightly larger, but the browser can start to display the image on loading. Works only with WebOptimized switch.
  • Compatibility - This specification only works for jpg files. Without this option small jpg files are created, but they are not always compatible with older applications.
  • Recurse - The folder specified in Filepath is processed recursively and the files found in the subfolders are converted.
  • WhatIf - This is used to set a simulation that does not change any data, but, for example, outputs the statistics at the end.
  • MaxWidth - This specification must be combined with MaxHeight. Together they determine the maximum image size in pixels.
  • MaxHeight - This specification must be combined with MaxWidth. Together they determine the maximum image size in pixels.
  • Quality - This specification can vary values between 0-10 and can be applied to jpg and png files. The higher the value, the better the quality.

The script can be easily adapted via the parameters. The current description of the parameters can be found in the script itself, but only in English.

  • FilePath - The path to the folder containing the psd files to convert. The path must be specified without a final backslash and without asterix or file extension.

- LogPath - The path to the folder containing all output in a logfile. The path must be specified without a final backslash and without asterix or file extension.

  • AddOn - If the instantiation of Photoshop should fail, look in the registry under which addition, this object is otherwise accessible. Just search for "Photoshop.Application". If, for example, Photoshop.Application.130" is also found, the value ".130" can be used as parameter. Unfortunately I have not found a more general way to do this at the moment. Photoshop CS 2019 uses ".130" as AddOn.
  • WebOptimized - The output files are optimized for Webbrowsers, otherwise they are optimized for the desktop publishig.
  • SaveBackPsd - If Background or Cmyk is changed to RGB, the canged psd could be saved back.
  • CreateJpg - The output file is saved in jpg format. This specification can be combined with png as output.
  • CreatePng - The output file is saved in png format. This specification can be combined with jpg as output.
  • Transparency - Works only works with png files and WebOptimized switch.
  • Interlaced - Saves the output file in interlaced mode. These files are slightly larger, but the browser can start to display the image on loading. Works only with WebOptimized switch.
  • Compatibility - This specification only works for jpg files. Without this option small jpg files are created, but they are not always compatible with older applications.
  • Recurse - The folder specified in Filepath is processed recursively and the files found in the subfolders are converted.
  • WhatIf - This is used to set a simulation that does not change any data, but, for example, outputs the statistics at the end.
  • MaxWidth - This specification must be combined with MaxHeight. Together they determine the maximum image size in pixels.
  • MaxHeight - This specification must be combined with MaxWidth. Together they determine the maximum image size in pixels.
  • Quality - This specification can vary values between 0-10 and can be applied to jpg and png files. The higher the value, the better the quality.
Write your own review
  • Only registered users can write reviews
*
*
  • Bad
  • Excellent
*
*
*