Mobile app version of vmapp.org
Login or Join
Lengel450

: How do you cut out the centre of an image, bringing the edges closer together? I need to cut a large number of columns out of a PNG image. The area I want to remove is in the centre of

@Lengel450

Posted in: #AdobePhotoshop #Gimp

I need to cut a large number of columns out of a PNG image. The area I want to remove is in the centre of the image; I therefore want the left and right edges to be closer together after the cut.

I can't find an obvious way of doing this in Gimp or Photoshop CS5 (I am very much a beginner). I would really like a tool which lets me say "cut out 100 columns, starting 4 pixels from the left". Any suggestions?

10.04% popularity Vote Up Vote Down


Login to follow query

More posts by @Lengel450

4 Comments

Sorted by latest first Latest Oldest Best

 

@Vandalay110

I know it's an old question, but if this is a simple picture (no layers) like the PNG you mentioned, and if you have SnagIt (I tried with version 11.00), you can use the "Cut Out" functionality that lets you select an area and just collapse it horizontally or vertically.

10% popularity Vote Up Vote Down


 

@Fox8063795

I was looking to do the same type of thing. Easiest way for me to do it was create a new image with the desired dimensions. Copy the contents of the original image, and paste into the new image. Select the pixels on the left side of the original image with an easy to remember width (height of both images will be the same, so it doesn't matter.) Select the same rectangle in new image and paste. Repeat for right side. Worked fine for my simple needs.

10% popularity Vote Up Vote Down


 

@Si6392903

This isn't any better than jhocking's answer, but is a different way...

Double-offset the image, and then crop it.


Duplicate your layer (drag it onto the New Layer icon at the bottom of the Layers palette)
Offset the top layer to the left


Filter > Other > Offset
Set Horizontal to the negative sum of the pixels you are removing and where you want them to be removed from (-104 in your example)
Make sure Undefined areas are set to transparent

Offset the top layer back to the right


Filter > Other > Offset
Set Horizontal positive offset where you wanted the removal to start (+4 in your example)
Make sure Undefined areas are set to transparent

Reduce the canvas size


Image > Canvas Size
Reduce the width by the number of pixels you removed (reduce by 100 in your example)
Make sure you choose an anchor point from the far-left column.

Flatten the layers (Ctrl + E)


You can turn this into an Action if you need to do it to a bunch of images...

10% popularity Vote Up Vote Down


 

@Pope1402555

Maybe someone else will come along with a simpler method, but the simplest method I can think of would be these steps:


Use the Marquee tool to select the middle section that you want to remove.
Select > Inverse to select everything other than that middle section.
Copy and paste. This will create a new layer with an invisible center.
Select the right half and use the Move tool to slide it over so the two halves are aligned.
Hide the background layer/original image.
Image > Trim with the bottom-right pixel.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme