17 Replies Latest reply on Oct 5, 2016 2:55 PM by jurriaanf55977948

    Trim not working




      I have a file that I am attempting to use Trim on.  It does not appear to be trimming the picture.  I am perplexed as to what could be causing this problem.  I wish I could send the layered image so you could take a look at it.


      Does anyone have any ideas as to what settings I need to fiddle with to make trim work?


      Thank you for any help you can provide!

        • 1. Re: Trim not working
          Trevor.Dennis Adobe Community Professional (Moderator)

          I wonder if one of your layers has information hidden by a blend mode?  Or active pixels too tiny to see?  Try using the magic wand tool to select the area you are expecting to be trimmed away, and then entering Quick mask.  The added contrast might well show something up.

          • 2. Re: Trim not working
            Noel Carboni Level 7

            Do you have a basic understanding of how Trim works?  Keep in mind all the pixels around the edge have to be EXACTLY the same color.  If there are JPEG compression artifacts or any kind of noise whatsoever that makes pixel values differ even by one level, Trim won't cut the edges off.



            • 3. Re: Trim not working
              R_Kelly Adobe Community Professional

              Are you trying to trim based on pixel color or transparency?


              You can post a screenshot of your photoshop application with the layers panel and image showing.

              • 4. Re: Trim not working
                Bo LeBeau Level 4

                Are you sure you want to trim?

                Or do you really mean you want to crop the picture?


                To crop, use the Crop tool in the tools panel.

                You can also make a selection and then: Image menu, Crop. However, the Crop tool is more versatile.



                • 5. Re: Trim not working

                  Be sure that there are no hidden pixels. I had the same problem. When I used the magic wand to select what I thought was all a transparent area I then filled in the selection with black (use color of your choice). I could see that there were some hidden pixels scattered throughout the image. As soon as I erased the pixels I was able to trim the image.

                  • 6. Re: Trim not working
                    chrisni Level 1

                    I'm having the exact same problem. In fact, I've had the problem in the past but it was never a problem enough to try to find a fix; I could just switch to the crop tool and be done with it.


                    But now I'm in the middle of a huge project cataloging scanned slides -- all of which have a thick black border from the mount being scanned. I need to crop that black out of thousands of high-res scans in TIFF files. It would be nice to be able to do this with a batch operation that trims the black pixels, but the trim isn't working.


                    None of the suggestions here  apply. The border is solid black (000000), there are no layers, it's not a JPG, and there are no hidden or varied pixels.


                    Any more suggestions?

                    • 7. Re: Trim not working
                      Noel Carboni Level 7

                      Are you sure every pixel in the border is solid black?  If even one of them is 000100 or similar it would stop the Trim operation from cutting the pixels off.


                      As a test, toss one or two severe Curves adjustment layers over the top to radically brighten things.  Any pixels that aren't pure black should be visible.



                      • 8. Re: Trim not working
                        daxmacrog Level 1

                        I have the same problem. Trim is definitely not working properly in CS6. I'm running Mac OS X 10.7.4. I've tried to use it on multiple files that definitely have the same exact color or a big area of transparency surrounding an image. The trim will occasionally work along one side, but never fully, even if all the Trim Away options are checked. The problem exists if there is only one basic layer or multiple layers. I even tested it by trying to re-trim an image that I had successfully trimmed in CS5.5. It worked before. It no longer does.


                        Trim offers functionality that crop does not, which is why it exists. Yes, in most instances, you can use crop to accomplish the same results, but it takes longer and is less accurate depending on what you're trying to do. For instance, I often have to trim out excess background around an image with a shadow. Determining exactly where that shadow ends is tedious to do manually. Trim used to accomplish that instantly. It's also useful for centering a composition, which may contain many layers. If the backround surrounding the composition isn't of uniform proportions, I will trim it and then use canvas to expand the background area uniformly.

                        • 9. Re: Trim not working
                          DomiPro Level 1

                          Apparently still not solved in CC !! 

                          • 10. Re: Trim not working
                            DomiPro Level 1

                            Still not working in v14.2 !

                            Is this soo hard to fix ??


                            • 11. Re: Trim not working
                              Noel Carboni Level 7

                              Most images where a Trim problem occurs have some (nearly invisible) contamination.


                              Post an image with which you can reproduce the problem.


                              Also post a screen grab showing what it did(n't) do.



                              • 12. Re: Trim not working

                                All it takes is one pixel with any opacity to mess with the trim. That pixel can be very difficult to find sometimes. This method will help in spotting the lone pixel.


                                1. I add a white layer at the bottom of the document

                                2. Add a curve adjustment layer to the top of document set to multiply mode

                                3. Grab the black end point of the curve and slide it as far as it will go to make any color darker to black

                                4. Duplicate this layer a couple/few times

                                5. If you are still unable to see the bugger then invert the work. Black background, adjustment layer curve to screen mode with the white end point pegged.


                                Hope this helps


                                • 13. Re: Trim not working

                                  I am having the same issue. It's only happening whenever i am trying to trim any white object. Here is the Screenshot. It would a major

                                  help if anyone  can explain how to fix this.



                                  • 14. Re: Trim not working
                                    SteveWeinrebe Adobe Community Professional

                                    Hi - Try Trim with Transparent Pixels checked. With the other options I think Photoshop is seeing white as transparency, or at least not recognizing the white pixels - which is not new to Photoshop CC - though I am not sure why that happens. So with your doc Trim thinks there are no pixels to trim to.


                                    If you introduce any color other than white into your doc, with Top Left Pixel or Bottom Right Pixel checked, Trim will trim to that color but trim out the white.


                                    IAC with Trim to Transparent Pixels you should be fine.



                                    • 15. Re: Trim not working
                                      tuhinm92023367 Level 1

                                      Yes i was using the method lately , but i  was wondering it was working properly but after a recent update that bug appeared so i just want to make sure that it's a photoshop bug or i have some other issues with my computer or the photoshop version i have.

                                      • 16. Re: Trim not working
                                        Trevor.Dennis Adobe Community Professional (Moderator)

                                        That's a new one on me, but I was able to duplicate it.  It only seems to happen with white content, and it is not limited to the background layer.  I appreciate that your example did not have a background layer, so perhaps I should have said it still happens with more than one layer.   I have a feeling that coverage makes a difference — expanding the brush stroke in my example with Free Transform caused Trim to work OK.   I couldn't tell you what threshold of non-transparent pixels triggers the bug though.


                                        And it does appear top be a bug AFAICT

                                        • 17. Re: Trim not working

                                          I have, I think, the same issue. It's only an issue when I open a new document (instead of opening a picture), because it'll create an artboard and once that's done my beloved "Image > Trim", "Image > Image size" and "Image > Canvas size" are useless. When I try to Trim, nothing happens. When I try image size.... well I don't know what happens. It doesn't get smaller if I go to Image size again, but on screen it looks smaller. And last but not least when I try Canvas size the canvas only moves in the document, but it doesn't get smaller....


                                          Is there someone who knows how to fix this? Maybe some artboardsettings I can't find?