0

If I place a png file that has intentional transparent space surrounding the image into a photoshop document photoshop seems to remove that surrounding space. This wouldn't bother me too much, except that what tends to happen is that if I resize the placed png after it has been placed I end up with hard edges where photoshop has not antialiased beyond the edge of the now cropped image, resulting in an ugly hard edge.

I end up having to work around this by, for example, adding an almost totally transparent pixel beyond the visible edge of the image I'm placing, within the source document, to force photoshop not to crop to the visible pixels, and thus include the antialiasing on the edge as it does everywhere else (to make the resized image look nice). This creates new problems though, such as causing photoshop to include that almost invisible pixel when applying effects such as glow/shadow etc.

Is there a way to prevent this phenomenon when placing PNG files?

enter image description here

Edit: Source PNG added by request (however it was created purely to illustrate my point. This happens with any placed image with transparency)

enter image description here

12
  • Can you share the source PNG? – Billy Kerr Feb 25 at 13:18
  • The source png was just an example to illustrate the point. It happens with ANY placed png file (maybe other formats too but usually use png files). It's just a simple red circle saved as a png in photoshop. I have added it anyway. – MrVimes Feb 25 at 14:07
  • 1
    The problem is I can't replicate your issue. When I Place a similar PNG, it looks fine, no chopped off pixels. See example. Are you rescaling the PNG after placing? That might cause issues. – Billy Kerr Feb 25 at 14:20
  • 1
    Note the PNG you shared has a pixel above the circle, so this isn't your source PNG. Looks like the one you modified? – Billy Kerr Feb 25 at 14:40
  • 1
    I've ran into this before and used the same fix as you. Pad the image with transparent pixels all around. The problem is photoshop doesn't want to go beyond your desired size even just to antialiase. What I do not get is your second part of problems. Usually outlines and shadows only apply to opaque pixels and transparent padding doesn't matter. – Miro Feb 27 at 6:22
1

Based on the comments here it seems like something isn't working properly for you. Whenever I place an image with transparent padding it is placed with the same padding as the original. No trimming. Even if the entire png is a blank 200x200 image, it will place as 200x200.

Here's what a logo looks like with padding before placing:

svelte logo

Can you try to place this same .png logo and take screenshot right before confirming placing?

4
  • Apologies for the delay responding. I have just tried at home. Before place the padding remains, but after place it shows a bounding box as if cropped (i.stack.imgur.com/zzYQR.jpg) However, I cannot replicate the problem I've been having. I would try at work (where I use PS most for this type of work) but where I live just went into coronavirus lockdown so I won't be able to go back there for at least 3 weeks! Anyway it might be an issue with that copy of PS, or the gfx card or drivers. – MrVimes Mar 3 at 19:34
  • p.s. I have moved on from worrying about this as suggested by @BillyKer , but I wanted to do you the courtesy of responding. – MrVimes Mar 3 at 19:37
  • Edit... It seems hit and miss. I did try resizing your logo again, and did get a hard edge. I guess I am just being very anal about it though. – MrVimes Mar 3 at 19:45
  • Sometimes it is a real problem. I am working with a logo, it has actually resulted in the bottom of some text being chopped off. I don't think it's too anal to want my 'o' s to be complete circles. The source png file has LOADS of space below the 'woodford' but photoshop chops it off because there are no pixels.. i.stack.imgur.com/9GVxE.jpg – MrVimes Apr 28 at 9:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.