Skip to main content
Mattmcquiff
Inspiring
August 21, 2013
Question

Find Visual Centre of an image

  • August 21, 2013
  • 1 reply
  • 2979 views

Not sure if this is possible, maybe with some maths? So possibly via applescript.

I have a layer that is this is neck piece that you see, and you can see that the extension change makes the centre, 'off centre' or at least visually?

How might I achieve this?

I need to expand the canvas afterwards to create a border where the image is framed correctly as part of an automation.

This topic has been closed for replies.

1 reply

Mattmcquiff
Inspiring
August 21, 2013

the nearest I think I could get,

Copy to clipboard the entire layer

Crop the vertical by half, with anchor point bottom centre,

Trim based on transparent pixels

From this you should have the centre point of the bottom half of the image, then some how replace from the infomation in the clipboard.....

Inspiring
August 21, 2013

Is the part that throws off the centering always at the top of the image? Is the necklace on a layer with a mask?

Mattmcquiff
Inspiring
August 21, 2013

Yes it's always the top half of the image.

In terms of of layers from top to bottom.

Main Image

BACKGROUND

Original image (hidden)

The main image holding the necklace isn't a masked layer but can easily be one if that makes it easier.