When is the clipping path needed

How to save a PNG with a clipping path

I want to save a PNG on a white background with an active clipping path.

Whenever I open the file again, the clipping path is gone.

Any suggestions? These files MUST be PNGs.

These are requirements that the customer places on me. They require all submitted images to be PNGs with an active clipping path saved on a solid white background (no transparency).

I suspect someone who doesn't know what they're talking about made these demands. I wanted to be absolutely sure that this was impossible before I go to them and look like an idiot.


You may want to provide background information on why you need a PNG file and why you need an active clipping path. This would help us to give you a more precise answer to your problem.


Which program are you using?

Billy Kerr

Clipping paths or layers in the PNG file format is not supported. I'm sorry.

Gerard Falla

Question: Support PNGs Alpha channel based Transparency - What is the use case for a clipping path with a PNG and in what software? In almost every scenario I can think of, this transparency channel should not only be appropriate but preferable because you already working with a PNG which is a raster image and the fact that you can get a wide range of transparency values ​​in the raster makes the alpha channel seem more appropriate than using a vector clipping path. Can you give us some context here?


That right software is likely Fireworks @GerardFalla. However, no other software can read or write it, only Fireworks. Nothing prevents me from including random data in the PNG stream, but then it is not a standard and may or may not be supported by other software.


You cannot save a PNG with an active clipping path. I would suggest the following.

  1. If all PNGs use the same clipping path, save an additional file that can be used to save a clipping path. If each PNG has its own clipping path, save each image as a PNG and as a file that can be used to save a clipping path.

  2. Save as TIFF with layer file, but this would mean it is not a PNG file.


Thank you for your reply. You're saying exactly what I suspected.