Image Compression Tool
Our Image Compression Tool allows you to optimize images by watching a specific directory for new images or a text file containing image URLs. Once detected, the tool will automatically compress and resize the images.
How to Use
Direct File Drop
- Navigate to the shared folder: \\bm-us012\webimage\original
- Drop your image files (JPEG, PNG) into this folder.
- The tool will automatically detect, compress, and resize the images.
- Retrieve the optimized images from: \\bm-us012\webimage\optimised
Drop a Text File with Image path
- Create a text file named
image-list.txt. - Add the Sitecore media paths or direct image URLs, one per line.
Sitecore Media Path: /sitecore/media library/...
Direct Image URL: https://...
- Drop the
image-list.txtfile into the shared folder: \\bm-us012\webimage\original - The tool will process each image URL, compress, and resize them.
- Retrieve the optimized images from: \\bm-us012\webimage\optimised
- The
image-list.txtwill be renamed toimage-list-compressed-[DateTime].txtonce processing is complete.
Retrieving Image Paths
From Sitecore
- Navigate to the desired image in Sitecore.
- Right-click and select "Copy Media Path".
From a Web Browser
- Right-click on the image.
- Select "Copy Image Address" or similar option.
Maintenance
Every Sunday, a script will automatically clean both the original and optimized image folders.
Troubleshooting
If an image URL fails to process, it will be noted in the image-list.txt file. Check the file for any errors or failed URLs.
Last update:
October 17, 2023