private bool AutoRotateImageIfRequired(MediaItem item) { if (item.MediaType.Classification == MediaClassification.Image) { if (GraphicsUtils.AutoRotateIfRequired(item.FilePath)) { // auto-rotated so refresh the thumbnail... item.ThumbnailImageSource = null; item.LastChanged = DateTime.UtcNow.Ticks; _metaDataProducer.Add(item); return(true); } } return(false); }