Skip to content

bhatuzdaname/windows-jpg-to-icon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

#Windows: Set a JPEG file as folder icon.#

###Pre-requisites###

  1. Java Development Kit
  2. ImageJ
  3. ImageMagick

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###

  1. Rename your image to poster.jpg and place it in the folder whose icon you want to change.
  2. Place the script in that folder.
  3. Open folder in terminal [Shift + Right Click -> Open in Terminal].
  4. Close all open windows explorer windows.
  5. 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.

About

Handy script to set jpeg files as icon for a particular folder.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages