ImageResourcePackage

JpegRootPackage.ImageResourcePackage property

Gets the Photoshop Image Resource metadata package. Image resource blocks are the basic building unit of Photoshop native file format.

public ImageResourcePackage ImageResourcePackage { get; }

Property Value

The Image Resource metadata package.

Remarks

Learn more

Examples

The code sample below demonstrates how to extract image resource blocks (building blocks of the Photoshop file format) from a JPEG image.

using (Metadata metadata = new Metadata(Constants.JpegWithIrb))
{
    var root = metadata.GetRootPackage<JpegRootPackage>();

    if (root.ImageResourcePackage != null)
    {
        foreach (var block in root.ImageResourcePackage.ToList())
        {
            Console.WriteLine(block.Signature);
            Console.WriteLine(block.ID);
            Console.WriteLine(block.Name);
            Console.WriteLine(block.Data);
        }
    }
}

See Also