C# Class Bloom.Book.ImageUpdater

Show file Open project: BloomBooks/BloomDesktop

Public Methods

Method Description
CompressImage ( string path, IProgress progress ) : void
CompressImages ( string folderPath, IProgress progress ) : void
CopyImageMetadataToWholeBook ( string folderPath, HtmlDom dom, SIL.Windows.Forms.ClearShare.Metadata metadata, IProgress progress ) : void
GetImagePaths ( string folderPath ) : IEnumerable
UpdateAllHtmlDataAttributesForAllImgElements ( string folderPath, HtmlDom dom, IProgress progress ) : void

We mirror several metadata tags in the html for quick access by the UI. This method makes sure they are all up to date.

UpdateImgMetdataAttributesToMatchImage ( string folderPath, XmlElement imgElement, IProgress progress ) : void
UpdateImgMetdataAttributesToMatchImage ( string folderPath, XmlElement imgElement, IProgress progress, SIL.Windows.Forms.ClearShare.Metadata metadata ) : void

Method Details

CompressImage() public static method

public static CompressImage ( string path, IProgress progress ) : void
path string
progress IProgress
return void

CompressImages() public static method

public static CompressImages ( string folderPath, IProgress progress ) : void
folderPath string
progress IProgress
return void

CopyImageMetadataToWholeBook() public static method

public static CopyImageMetadataToWholeBook ( string folderPath, HtmlDom dom, SIL.Windows.Forms.ClearShare.Metadata metadata, IProgress progress ) : void
folderPath string
dom HtmlDom
metadata SIL.Windows.Forms.ClearShare.Metadata
progress IProgress
return void

GetImagePaths() public static method

public static GetImagePaths ( string folderPath ) : IEnumerable
folderPath string
return IEnumerable

UpdateAllHtmlDataAttributesForAllImgElements() public static method

We mirror several metadata tags in the html for quick access by the UI. This method makes sure they are all up to date.
public static UpdateAllHtmlDataAttributesForAllImgElements ( string folderPath, HtmlDom dom, IProgress progress ) : void
folderPath string
dom HtmlDom
progress IProgress
return void

UpdateImgMetdataAttributesToMatchImage() public static method

public static UpdateImgMetdataAttributesToMatchImage ( string folderPath, XmlElement imgElement, IProgress progress ) : void
folderPath string
imgElement System.Xml.XmlElement
progress IProgress
return void

UpdateImgMetdataAttributesToMatchImage() public static method

public static UpdateImgMetdataAttributesToMatchImage ( string folderPath, XmlElement imgElement, IProgress progress, SIL.Windows.Forms.ClearShare.Metadata metadata ) : void
folderPath string
imgElement System.Xml.XmlElement
progress IProgress
metadata SIL.Windows.Forms.ClearShare.Metadata
return void