-
Notifications
You must be signed in to change notification settings - Fork 40
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
Borderify Broken Using Newest Templates #10
Comments
could you try changing the value of 'artScaleFactor` in 'excessFunctions' from 100 to 50, then see if that makes a difference? I suspect this is the same bug that causes art to be twice as large when inserted into the card frame. Though if artwork is sized correctly and borderified cards are twice as large as they should be, then I'm not sure what could cause that discrepancy |
Same issue in the classic branch |
The image height and width need to specify pixels. They may be defaulted to inches for most people.
I renamed some variables (swapping image and window) because the current naming was confusing to me but the important part is the addition of .as("px") on the bounds which makes it no longer required in the line:
|
This did it for me. Thanks, Kyle! One thing to note for others looking to fix this: I didn't replace the entire var artScaleFactor = 100;
// ...
var imageHeight = myLayer.bounds[3].as("px") - myLayer.bounds[1].as("px");
var imageWidth = myLayer.bounds[2].as("px") - myLayer.bounds[0].as("px");
var percentageToScale = artScaleFactor * Math.max(windowWidth / imageWidth, windowHeight / imageHeight); |
I created a PR to fix this. #11 |
I pulled the latest changes from the repo and updated the automated templates to match. Using
borderifyAll.jsx
, my borderified output is now looking like this:This is for a render that started like this:
![image](https://user-images.githubusercontent.com/2328035/71682077-951a6e80-2d5c-11ea-8a41-92b0d61757ea.png)
I'm using:
PhotoShop CS6
Windows 10
The text was updated successfully, but these errors were encountered: