Thanks for reporting this bug!
Correct if condition in loading function should be
to swap only RGB images and images got from TiffLib RGBA interface (ifUnknown format).
Saving is the same but without the DataFormat check.
I'll update SVN repository with this fix in few hours.
Correct if condition in loading function should be
Code Select
if (Photometric = PHOTOMETRIC_RGB) or (DataFormat = ifUnknown) then
SwapChannels(Images[Idx], ChannelRed, ChannelBlue);
to swap only RGB images and images got from TiffLib RGBA interface (ifUnknown format).
Saving is the same but without the DataFormat check.
I'll update SVN repository with this fix in few hours.