Skip to content

Automatically get document width and height - #9

Open
xraymemory wants to merge 2 commits into
cyrildiagne:masterfrom
xraymemory:autodetect_document_dimensions
Open

Automatically get document width and height#9
xraymemory wants to merge 2 commits into
cyrildiagne:masterfrom
xraymemory:autodetect_document_dimensions

Conversation

@xraymemory

@xraymemory xraymemory commented May 4, 2020

Copy link
Copy Markdown
Contributor

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

xraymemory added 2 commits May 4, 2020 16:11
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
Copy Markdown
Owner

Amazing, thanks a lot! Will review & try ASAP

@ehtisham99

Copy link
Copy Markdown

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