#Windows: Set a JPEG file as folder icon.#
###Pre-requisites###
Ensure that java is added to the PATH variable. Now the script assumes that the ImageJ jar file is in 'C:\Program Files (x86)\ImageJ\ij.jar' directory. If not change line no. 14 appropriately to reflect the location of ij.jar.
###Script Usage###
- Rename your image to poster.jpg and place it in the folder whose icon you want to change.
- Place the script in that folder.
- Open folder in terminal [Shift + Right Click -> Open in Terminal].
- Close all open windows explorer windows.
- Enter
iconify_jpg
in terminal and press enter.
You will see ImageJ open to center and resize the image. Next imagemagick converts the new image to an icon file and the script adds a Desktop.ini file with path of icon and necessary folder attributes.
Step 4 is not necessary but is done so that you see the icon change immediately otherwise you need to wait for windows to rebuild it's thumbnail cache which may require a reboot.