Python package that uses linear algebra to give a retro/VHS look to your photos.
Download the repository on your machine and execute the follow command on a terminal line:
python -m pip install -e <repository_path>
Or simply navigate to the folder where the repository is and execute the follow command:
python -m pip install -e ./Retrofy
The simplest way to use the package is as follow:
from retrofy import VHS
retrofier = VHS("YOUR_PHOTO_PATH") #you can use URLs for photos on the web or Pillow Image Objects as well
retrofier.apply_all_effects() #applies all effects that forms the VHS filter
#OR you can do it with inplace = False
resulted_img = retrofier.apply_all_effects(inplace=False)
#OR with some extra effects:
retrofier.apply_all_effects(play_text=True, wave_warp=True) #to apply the VHS "play" text on the image and the wave warp effect on a random row on the image
retrofier.show() #shows the modiefied image so far
retrofier.save(path="YOUR_SAVE_PATH") #saves the modified image on the selected path
Note that all effects used on this example used default values as arguments.
If you want to adjust the arguments values, you can call the effects methods separately.
For more information, look at the examples folder.