Table of Contents

Class ImageSizeProvider

Namespace
Dynamicweb.Imaging.Providers
Assembly
Dynamicweb.Core.dll

Provides image dimensions (width and height) for image files.

public abstract class ImageSizeProvider
Inheritance
ImageSizeProvider
Inherited Members

Methods

GetSizeFromFile(string)

Gets the image dimensions from the image specified in the path.

public abstract Size GetSizeFromFile(string filePath)

Parameters

filePath string

The file path.

Returns

Size

Dimensions for image from the path if exists, otherwise Empty

GetSizeFromStream(Stream, string)

Gets the image dimensions from the image data stream and image file extension.

public abstract Size GetSizeFromStream(Stream stream, string extension)

Parameters

stream Stream

Image file stream

extension string

Image file extension

Returns

Size

Dimensions for image from the stream if possible, otherwise Empty

To top