Mobile app version of vmapp.org
Login or Join
Angela777

: Method to find coordinates of where image is cropped Here's my problem: I'm working with a tool that automatically crops an image that i supply to it. I need to find out exactly which coordinates

@Angela777

Posted in: #AdobePhotoshop #Imagemagick

Here's my problem: I'm working with a tool that automatically crops an image that i supply to it. I need to find out exactly which coordinates of the image does the tool crop?

Right now i used photoshop to find some estimated coords but since i have about 100 different types of images whos cropping coords i need (And very precisely), that's not very practical.

I can supply an estimated bounding box and the real cropping coords should be within ~10 pixels of the box's edges. The box is small, 100x100 pixels at maximum. I'm thinking something along the lines of applying a different colour to every pixel in a demo image, wondering how i can do that in photoshop or if there's a better way.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Angela777

1 Comments

Sorted by latest first Latest Oldest Best

 

@Dunderdale640

Create the image to the size you want to submit
Make a horizontal "Hue" gradient (with value=100%)
Add a layer, make a vertical black to white color gradient, and set layer mode to "Multiply" or ("Value").
Flatten image


You now have an image where Hue and Value are determined by the position of the pixel in the image you submit.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme