Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically get document width and height #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

xraymemory
Copy link
Contributor

@xraymemory xraymemory commented May 4, 2020

This will automatically get the activeDocument width and height from within the Photoshop script, so you no longer need to manually adjust it in the ps.py file

I found that using the actual provided DPI from activeDocument.resolution did not work so for now I kept the density at 2 (Not sure how that number was derived to begin with). So these numbers may have to be tweaked a bit or set to be configured (rather than just hardcoded), but this worked very well on my setup at any arbitrary width, height, and resolution. Can snap and drop into new files with no changes or adjustments needed

ardemogifreal

This will automatically get the activeDocument width and height from within the photoshop script, so you no longer need to manual adjust it in the `ps.py` file
@cyrildiagne
Copy link
Owner

Amazing, thanks a lot! Will review & try ASAP

@ehtisham99
Copy link

How can i get this app/code whatever?
I like this so much. Please tell me how can i get this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants