Hello,
It is not an bug, actually it is strange intersection of features!
Your sample works fine with first image because it has no EXIF information. So there are no strange side-effects. But the second image has EXIF with thumbnail inside. When you use LosslessJpegTransfrom to modify file - it also copies EXIF data from source image to destination.
On the other hand, ThumbnailListView control checks whether the file contains EXIF thumbnail and uses it if possible. But in your case this causes wrong results - your image is already modified, while thumbnail remains the same.
The simples way to avoid such effects is to remove EXIF thumbnail at all and force ThumbnailListView control to load the whole image. I modified your code to do this (you should import Aurigma.GraphicsMill.Codecs namespace to compile this code):
Code:
Case "jpg", "JPG", "Jpg"
. . .
Dim jpg As New LosslessJpegTransform(_item.Pidl.Path)
If Not IsNothing(jpg.Exif) AndAlso _
jpg.Exif.Contains(ExifDictionary.Thumbnail) Then
jpg.Exif.Remove(ExifDictionary.Thumbnail)
End If
jpg.WriteRotated(tmpFile, RotateFlipType.Rotate270FlipNone)
jpg.Dispose()
. . .
Best wishes, Alex.