Skip to main content
Participant
Oct 22, 2026 8:29 AM UTC
Answered

Remove transparent pixels after rotating

After rotating an image on all 4 sides it creates transparent pixels. In the past I used to know how to remove those transparent pixels (  I think it had something to do with CTRL-click the thumbnail and then use TRIM, but I can't get it to work). 

Can somebody help me how to remove those transparent pixels?

    D Fosse
    D FosseCorrect answer
    Community Expert
    Oct 22, 2026 11:39 AM UTC

    Maybe I misunderstand you, but a canvas can’t be slanted.

    So you have only two options to get rid of the transparency:

    • crop the image so that the transparent areas are cropped out
    • fill the transparent areas with pixel content of some kind.

    That’s it.

    6 replies

    CORCTON34033231
    Community Expert
    Community Expert
    Oct 22, 2026 12:15 PM UTC

    Thanks for testing it, marc_3925 — that result actually makes sense in this case. Trim can only remove a strip that is transparent across the entire width or height of the canvas. After rotating, your image still touches all four edges (at the corners of the rotated image), so there is no fully transparent strip for Trim to cut away — that is why nothing visibly happens. The transparent triangles sit inside the rectangle, so the only ways to remove them are the two D Fosse mentioned: crop in past them, or fill them (for example, select a triangle and use Edit > Content-Aware Fill) if you want to keep the full canvas size.

    Translate
    D Fosse
    Community Expert
    Community Expert
    Oct 22, 2026 11:10 AM UTC

    Just use the crop tool, don’t overcomplicate this. Hold Shift to maintain proportions.

    If, however, you need to keep those transparent areas, but fill them seamlessly with pixel content, it depends on what those edge areas look like.

    Translate
    marc_3925Author
    Participant
    Oct 22, 2026 11:26 AM UTC

    I understand what you mean, but I don't want to use these options. I really want to rotate/transform the image and then delete the transparant pixels. Thanks anyway.

    Translate
    D Fosse
    Community Expert
    D FosseCommunity ExpertCorrect answer
    Community Expert
    Oct 22, 2026 11:39 AM UTC

    Maybe I misunderstand you, but a canvas can’t be slanted.

    So you have only two options to get rid of the transparency:

    • crop the image so that the transparent areas are cropped out
    • fill the transparent areas with pixel content of some kind.

    That’s it.

    Translate
    CORCTON34033231
    Community Expert
    Community Expert
    Oct 22, 2026 8:59 AM UTC

    Hi marc_3925,

     

    You were close — you don't need the Ctrl-click for this one:

     

    1. Choose Image > Trim.

    2. In the Trim dialog, select Transparent pixels.

    3. Make sure Top, Bottom, Left and Right are all checked under Trim Away, then click OK.

     

    Photoshop will then crop the canvas to remove the transparent areas at the edges.

     

    Official doc (see 'Trim transparent or background pixels'): https://helpx.adobe.com/photoshop/desktop/crop-resize-transform/resize-adjust-resolution/crop-and-straighten-images.html

    Translate
    marc_3925Author
    Participant
    Oct 22, 2026 9:59 AM UTC

    You see, I thought it was like this,….but it doesn't work…. Nothing happens when I choose TRIM - Transparent pixels (and all 4 options are checked). Very strange. 

    Translate