Skip to content

kennedy0/photoshoppy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhotoshopPy

Read, edit, and render Photoshop files. No Photoshop installation required!

Usage

Print File Info

The most straightforward use of photoshoppy is to get information about a Photoshop file

""" Print information about a file. """
from photoshoppy.psd_file import PSDFile

psd = PSDFile("./tests/psd_files/zig_zags.psd")
psd.print_file_info()
output:
>  path: C:/Users/a/git/photoshoppy/tests\psd_files\zig_zags.psd
>  resolution: 400x300
>  channels: 3
>  bits per channel: 8
>  color mode: RGB

Rendering

Photoshoppy's main usefulness is its ability to render PSD files.

""" Render a PSD file to an image. """
from photoshoppy.psd_file import PSDFile
from photoshoppy.psd_render.render import render_psd

psd = PSDFile("./tests/psd_files/zig_zags.psd")
render_psd(psd, "zig_zags.jpg")

readme_zig_zags.jpg

""" Extract PSD layers to a folder. """
from photoshoppy.psd_file import PSDFile
from photoshoppy.psd_render.render import render_layers

psd = PSDFile("./tests/psd_files/zig_zags.psd")
render_layers(psd, "./layers", skip_hidden_layers=False)

readme_layers.jpg

About

Read, edit, and render Photoshop files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages