12 Replies Latest reply: Dec 16, 2014 7:46 AM by steveo2go RSS

    Trim not working

    KellyD2000 Community Member

      Hello!

       

      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!
      -Kelly

        • 1. Re: Trim not working
          Trevor.Dennis CommunityMVP

          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 Community Member

            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.

             

            -Noel

            • 3. Re: Trim not working
              R_Kelly Community Member

              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 Community Member

                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.

                 

                crop.jpg

                • 5. Re: Trim not working
                  cmgroden

                  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

                    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 Community Member

                      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.

                       

                      -Noel

                      • 8. Re: Trim not working
                        daxmacrog Community Member

                        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 Community Member

                          Apparently still not solved in CC !! 

                          • 10. Re: Trim not working
                            DomiPro Community Member

                            Still not working in v14.2 !

                            Is this soo hard to fix ??

                             

                            • 11. Re: Trim not working
                              Noel Carboni Community Member

                              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.

                               

                              -Noel

                              • 12. Re: Trim not working
                                steveo2go

                                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

                                -SteveO