Copy link to clipboard
Copied
I've been having an issue, when I crop an image to a 1x1 ratio, the image does not result in a square, there's an extra pixel in either the width or the height. Does anyone know why this happens and if so, how to make it stop? Thanks!!
Copy link to clipboard
Copied
I would thing that could be the result of a mathematical rounding the nearest pixel. If you are using crop to set to 1:1 and this is happenings. You could create a action that would have an interactive 1:1 aspect ratio crop. Once the crop is committed by you the action could rum a script that would check to see if t the document width px equals the document height px and if not use canvas size to set both width and height to the lower number of px. How are you cropping to 1:1 aspect ratio. I have see this 1 pixel off type result in some of my scripts when I calculate the width, height for a resize or crop. I either miss this happens, ignore it happened or putout a message that it happened. Here is an Script I use for adding canvas to a document's canvas to make its canvas have some aspect ratio. I have seem its encounter a rounding problem. I do not remember it ever failing for a 1:1 aspect ratio it should mot. The script uses a function I coded to be able to do any aspect ratio. The Script main line would be a single line "CanvasAR(1/1);" or "CanvasAR(1);" The script would add canvas not crop. The script compares the document current Aspect Ratio to the target Aspect Ration to see if canvas needs to be add to the width or height. Using the known good side number of pixels and target target aspect ration the other side is calculated. I would expect and aspect ratio of 1 to always result is the width and height being equal however with other Aspect Ratios I have seen some rounding. How would Photoshop round a half of a pixel a third of a pixel, two thirds etc.
Copy link to clipboard
Copied
I've tried to replicate this in CC2017 but couldn't with the settings below.
Every time I got a square image size.
Could you tell us what version of Photoshop. What the starting size of the image was and confirm the crop settings with a snapshot
Dave
Copy link to clipboard
Copied
They did not write what they are using to crop to square or how or show a screen shot.Tool, Action, Script or Plug-in....
Find more inspiration, events, and resources on the new Adobe Community
Explore Now