Photoshop: Gradient Overlay don't align to layer automatically, clicking box does nothing.

  • 2
  • Problem
  • Updated 6 years ago
  • (Edited)
Align to layer, under gradients, in effects menu, does not align gradient to layer. Gradient aligns itself to god knows what, and I spend 20 minutes just trying to get the gradient on to my object. Nothing seems to fix this, and I suspect I'll have to completely reinstall Photoshop to get gradients working again, since that's Adobe's only response to their bugs.
Photo of OJ

OJ

  • 19 Posts
  • 1 Reply Like
  • angry and frustrated.

Posted 7 years ago

  • 2
Photo of Chris Cox

Chris Cox

  • 20280 Posts
  • 813 Reply Likes
Are you talking about the gradient overlay in Layer Styles?
Or a gradient fill layer?

And you probably should provide us a picture of your document and layers palette so we know what you mean by "does not align".

Reinstalling is rarely needed, though sometimes resetting preferences will fix mystery bugs (note that reinstalling doesn't touch preferences).
Photo of OJ

OJ

  • 19 Posts
  • 1 Reply Like
Notice that despite the gradient being aligned to layer, it fills that box with just a fraction of the gradient. Adjusting the angle makes no difference. I've reset preferences.

Photo of Chris Cox

Chris Cox

  • 20280 Posts
  • 813 Reply Likes
That looks like there might be more to the layer than the 1 box.

A higher contrast gradient might make it easier to see which way it's going (up or down).

And you might try turning on the move tool's "show transform controls" to see the full bounds of the layer.
Photo of OJ

OJ

  • 19 Posts
  • 1 Reply Like
There's not more than 1 layer to that box. I drew that box for the screenshot. Turning on "show transform controls" proves that there's nothing other than a rectangle.

I know the direction of the gradient, and if it were to apply itself properly, I would be able to see the gradient just fine. I work in an office where we all have the same gradient swatches, no one else has this problem with any gradients, yet I have it with ALL gradients.
Photo of Chris Cox

Chris Cox

  • 20280 Posts
  • 813 Reply Likes
That is weird. The align to layer option uses the bounds of the layer, just like the transform control rectangle.

Ok, have you tried resetting Photoshop's preferences (and before you do, save a copy of your current prefs file!)?
Photo of OJ

OJ

  • 19 Posts
  • 1 Reply Like
I've gone in to preferences and hit the general reset. Doesn't seem to fix it.
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 14132 Posts
  • 1761 Reply Likes
Can you post the PSD somewhere for me to talk a look at?
Photo of OJ

OJ

  • 19 Posts
  • 1 Reply Like
It happens on every file I create. So I created a rectangle for you to check out, and applied a standard white to black gradient overlay at a 90 degree angle. It applies the gradient uncentered, and I have to drag and visually eye up the gradient, which is the problem I'm describing.
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 14132 Posts
  • 1761 Reply Likes
One more thing, can you post a screen shot of what the PSD you posted above looks like on your system? Thanks.
Photo of OJ

OJ

  • 19 Posts
  • 1 Reply Like
Here you go..
Photo of Chris Cox

Chris Cox

  • 20280 Posts
  • 813 Reply Likes
Whatever it is doesn't travel with the document, but with that particular style.

If I save and apply that style to another layer, it has the same problem.

But if I create a new gradient overlay from scratch - it does not have the problem.
Photo of OJ

OJ

  • 19 Posts
  • 1 Reply Like
That style shown is simply the default style for Photoshop. I'm a bit confused as to how this could happen. All my default styles are like this.
Photo of Chris Cox

Chris Cox

  • 20280 Posts
  • 813 Reply Likes
Ah, got it. It is aligning with the layer (and does change when that option turns on and off), but at some point you dragged the gradient upward, so it's offset above the current location. You can drag it down again while the styles dialog is open, or you can just create a new gradient overlay. If you saved a style with the offset, I'd recommend re-creating the style.
Photo of OJ

OJ

  • 19 Posts
  • 1 Reply Like
I think you're missing my point: ALL my gradients, including defaults that come with Photoshop, have this problem.
Photo of Chris Cox

Chris Cox

  • 20280 Posts
  • 813 Reply Likes
Unless you are dragging every single one of them upward, have a corrupt install of Photoshop, or maybe a bad CPU - that should not be possible.

The offset of your gradient was not zero, it was above the center of the layer. That happens when you drag the gradient upward. By default, the offset is zero. And that offset is stored in styles, if you create a style preset from such a setting - the offset will be remembered.
But each style preset, and layer style has it's own independent offset value.

Since they are independent, the only way for *all* of them to be off would be if the Photoshop binary has some other number where it should have zero, or if your CPU has a bad calculation that results in a value other than zero.
Photo of Chris Cox

Chris Cox

  • 20280 Posts
  • 813 Reply Likes
And I double checked the code -- there is no global offset at all. Each style would have to be offset independently, or there would have to be a problem with the application binary (has some other number where it should have zero) or the CPU (there are several floating point calculations for the percentage offset that could cause a repeatable problem).
Photo of OJ

OJ

  • 19 Posts
  • 1 Reply Like
Hmm. So a reinstall may fix it, but I assume I'll have to wipe the old version first? Any suggestions? Is this something that could be caused by a permissions issue that perhaps repairing the disk may solve?
Photo of Chris Cox

Chris Cox

  • 20280 Posts
  • 813 Reply Likes
Yes, removing the old binary would be a good idea since we may be looking at a corrupt file.
I doubt it could be caused by permissions -- literally, a value that should be zero is not, and it only seems to happen on your system.
Photo of OJ

OJ

  • 19 Posts
  • 1 Reply Like
Copied over my user profile to a new laptop, and am still having the same problem. Any suggestions? I've tried a wipe/reinstall before this.
Photo of OJ

OJ

  • 19 Posts
  • 1 Reply Like
So to date, I've uninstalled Photoshop, reinstalled Photoshop, and transfered my profile to an entirely new laptop, and still, the problem persists. This is clearly a bug within Photoshop, and I'm guessing something is embedded in a .plist file somewhere. Any guidance on this would be really helpful.
Photo of OJ

OJ

  • 19 Posts
  • 1 Reply Like
I just solved this problem by holding down cmd + option + shift to reset my .plist files.

Not sure why this wasn't recommended to me before, even when I asked if this might be the problem. I Googled "resetting .plist files" and this hidden command was the 3rd or 4th link on Google.
Photo of achu krishnan

achu krishnan

  • 1 Post
  • 0 Reply Likes
The solution is also good , but if you want to apply Gradient Overlay on a layer you will have to fill the layer with some color then only you can see the gradient overlay you have applied.

I hope this had helped you if you had any problem with it now.