Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Clipping Path in PNG File?

Community Beginner ,
Dec 16, 2020 Dec 16, 2020

Hi All,

When I save a Jpeg with a clipping path as a PNG file in Photoshop, why doesn't the clipping path save as well?
(when I open the PNG file the clipping path has disappeared)

Thanks

5.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 16, 2020 Dec 16, 2020

What is happening is exactly what’s expected. Each file format like PNG and JPEG handles its own specific list of features, no more and no less, regardless of what software you use to make them.

 

What clients want is a subject with the background cut out. There is more than one way to hide the background. You can apply a mask, which turns into a transparent alpha channel when you save. Or you can draw a clipping path around the subject.

 

The JPEG file format can store a clipping path, but cann

...
Translate
Adobe
Community Expert ,
Dec 16, 2020 Dec 16, 2020

Not all file formats support everything that’s possible in Photoshop. 

 

Why do you need a Clipping Path in a png?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 16, 2020 Dec 16, 2020

Interesting to hear that.
A client has asked for images to be cut out and supplied as PNG files.
It would be helpful to explain to her why there is no clipping path along with the image.
cheers

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 16, 2020 Dec 16, 2020

png supports Transparency (preferably png-24, I guess), so what do they need the Path for once the Layer is clipped? 

 

In any case you should keep the original layered file in a less limited format like psd or tif. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 16, 2020 Dec 16, 2020

Adding to what c.pfaff said, I'm curious as to why she needs the clipping path as well. Future modification would be my guess, but you never know.  xD

 

If she's OK with it, just give her the PSD or TIFF (with layers) if she still wants it. If supplied with a PNG, she could also use Photoshop's shortcuts to select a layer's content up to the pixel edges for a particular layer. (Like Ctrl/Cmd + clicking on a layer's thumbnail. She can then store that selection as an alpha channel via the Channels panel to bring back up on command later.)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 16, 2020 Dec 16, 2020

Thanks for the advice folks.

Still doesn't answer the question 'why there is no clipping path along with the image' on a PNG file?

There is a path on the original jpeg but it seems really odd that it disappears when saved as a PNG.

Maybe I'm missing something.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 16, 2020 Dec 16, 2020

JPEGs can have clipping paths if saved in the proper manner. (e.g., Using Photoshop's "Save As" but *not* "Save for Web".) PNGs simply don't have that luxury.

 

Technically, if you save an image as a PNG with transparency, it already has a "clipping path" anyway that you can easily create and select.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 22, 2022 Jun 22, 2022
LATEST
quote

JPEGs can have clipping paths if saved in the proper manner. (e.g., Using Photoshop's "Save As" but *not* "Save for Web".) PNGs simply don't have that luxury.

 

By @War Unicorn

 

I only discovered that in the last year or so, and was both surprised and pleased.  It meant it was easy to supply image files to this forum complete with clipping paths which has been super useful at times.  My experience with PBG files that have transparency is that you can't copy them from the web using the usual right click method.  Least ways you can, but you lose the transparency.  I find I have to right click and save for transparency to work.  ISTR Dag (I think) questioning that, so my workflow might have been flawed.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 16, 2020 Dec 16, 2020

What is happening is exactly what’s expected. Each file format like PNG and JPEG handles its own specific list of features, no more and no less, regardless of what software you use to make them.

 

What clients want is a subject with the background cut out. There is more than one way to hide the background. You can apply a mask, which turns into a transparent alpha channel when you save. Or you can draw a clipping path around the subject.

 

The JPEG file format can store a clipping path, but cannot store a transparency mask (an alpha channel).

The PNG file format is the opposite: It can store a transparency mask as an alpha channel, but it doesn’t provide any way to store a clipping path.

 

This is not a problem in Photoshop, because whichever way you cut out the background, you can convert it to an alpha channel or a clipping path before exporting the file to the file format the client asked for.

 

For example, if I’m cutting out a background for your client and I used the Pen tool to create a clipping path, and the client is asking for PNG, then I know that when I’m done drawing the cut-out path, I must choose Layer > Vector Mask > Current Path to convert the path into a transparency mask, which PNG is able to store as an alpha channel. Then, when exporting as PNG, I must make sure that transparency is enabled in the Export settings.

 

Again, this is because of the capabilities of file formats, not anything to do with Photoshop, so all of this would still be true even if you were using a different photo editor by another company.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 17, 2020 Dec 17, 2020

Thank you Conrad!

Exactly what I was looking for.

I appreciate you taking the time to explain this clearly.

This is a great help to me and also when getting back to my client, who is probably being advised by her inexperienced designer.

have a good Xmas everybody,

Iain

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 22, 2022 Jun 22, 2022

You cannot save a PNG with an active clipping path,I would suggest to save clipping path in jpg , psd or tiff format

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines