Copy link to clipboard
Copied
Hello. Please help me solve the problem.
I have a lot of studio photos taken without a tripod, so the horizon is often tilted at different angles.
There is a clear contrast between the wall and the floor.
I need to automatically straighten the horizon in these photos, no change in perspective, no cropping. Just the angle of the slope.
Lightroom, camera raw are not up to the task.
The manual method, using a ruler, is not for me either.
Perhaps there is some Script that can help me solve my problem?
*Sample photo added.
I do not know how to work with java script, but I have some ideas.
If there are people here who understand this, tell me if it is realistic to implement, or am I mistaken)
By @Andrew Bold
Your ideas sound reasonable, but don't forget that we are limited by the runtime environment. Photoshop's scripting environment severely limits our ability to analyze images.
There are several ways to solve your problem, but all of them have some disadvantages and depend heavily on how the rest of the imag
...Hi! Unfortunately, such scripts are not universal and it works well only for solving a specific problem.
Try this one. It works well on the image posted to you, but there may be issues with other images.
I've modified the script so that it tries to find an area in the bottom half of the frame with a big difference in brightness, assuming that's where the floor boundary is. For large images, you can increase the size of the BATCH_SIZE constant (this is the number of consecutive pixels within which
Copy link to clipboard
Copied
Can you make the "after" picture you are looking for manually and post it here please?
Copy link to clipboard
Copied
Hello. The issue has been resolved.
At the beginning of the thread, there are examples, followed by a ready-to-use script.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now